Difference between revisions of "Template:Variable"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
---- | ---- | ||
− | Use this template where you want to show a value or parameter | + | Use this template where you want to show a value or parameter. |
− | |||
− | + | Example: | |
− | + | <nowiki> | |
− | <nowiki>{{Variable|MyAttribute | + | {{Variable|MyAttribute}}</nowiki> |
− | + | Result: | |
+ | {{Variable|MyAttribute}} | ||
+ | |||
+ | You can optionally also specify a type to be shown before the variable. | ||
+ | |||
+ | Example: | ||
+ | |||
+ | <nowiki> | ||
+ | {{Variable|MyAttribute|Type}}</nowiki> | ||
+ | |||
+ | Result: | ||
+ | |||
+ | {{Variable|MyAttribute|Type}} | ||
+ | |||
+ | [[Category:Template:Text Format]] | ||
[[Category:Administration]] | [[Category:Administration]] | ||
</noinclude> | </noinclude> |
Revision as of 02:15, 9 December 2018
{{{1}}}
Use this template where you want to show a value or parameter.
Example:
{{Variable|MyAttribute}}
Result:
MyAttribute
You can optionally also specify a type to be shown before the variable.
Example:
{{Variable|MyAttribute|Type}}
Result:
TypeMyAttribute