Template:Tx/doc: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
{{tx|main|Triparic language}} | {{tx|main|Triparic language}} | ||
But if you want to show a named parameter with an equals sign, you need to use {{tx|{{=}}}} to "protect" the equals sign: | |||
<nowiki>{{tx|foo|bar{{=}}baz}}</nowiki> | |||
{{tx|foo|bar{{=}}baz}} |
Revision as of 17:25, 9 April 2016
![]() |
This is a metatemplate; that is, a template that will rarely be used directly in articles, but rather used in other templates which will be used directly. |
This is just a simple way to display a template example in curly braces instead of typing out
<code> ... </code>
Example:
{{tx|stub}}
{{stub}}
You can show up to 10 parameters without worrying about the pipe characters being parsed:
{{tx|main|Triparic language}}
{{main|Triparic language}}
But if you want to show a named parameter with an equals sign, you need to use
{{=}}
to "protect" the equals sign:
{{tx|foo|bar{{=}}baz}}
{{foo|bar=baz}}