Difference between revisions of "Template:Variable"
Jump to navigation
Jump to search
(The condition is more visible) |
|||
Line 1: | Line 1: | ||
− | {{#if:{{{2|}}}|<span style="font-size: 0.6em;padding-right:10px;">{{{2}}}</span>|}}'''{{{1}}}'''<noinclude> | + | {{#if:{{{2|}}} |
+ | |<span style="font-size: 0.6em; padding-right:10px;">{{{2}}}</span> | ||
+ | |}}'''{{{1}}}'''<noinclude> | ||
---- | ---- | ||
Revision as of 02:17, 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