Template:Variable: Difference between revisions
Jump to navigation
Jump to search
BathAfrica (talk | contribs) m 1 revision imported: BathAfrica compatibility revisions; retain original imported history |
BathAfrica (talk | contribs) m 1 revision imported: Make tested BathAfrica compatibility revisions current |
||
| (One intermediate revision by the same user not shown) | |||
| Line 61: | Line 61: | ||
[[Category:Administration]] | [[Category:Administration]] | ||
</noinclude> | </noinclude> | ||
<noinclude> | |||
---- | |||
Migrated from [https://wiki.sybma.com/index.php?title=Template:Variable SiteMasterDoc]. Original revision history and imported contributor names are retained. See [[BathAfrica:Template migration]] for compatibility changes and unresolved image dependencies. Legacy examples do not establish current BathAfrica product capabilities. | |||
</noinclude> | |||
Latest revision as of 07:18, 29 October 2026
{{{1}}}
Use this template where you want to show a value or parameter.
Example:
{{Variable|MyAttribute}}: some variable.
Result:
MyAttribute
- some variable.
The second argument is optional, to specify a type to be shown before the variable.
Example:
{{Variable|MyAttribute|Type}}: some variable.
Result:
TypeMyAttribute
- some variable.
The third argument is optional, to specify a second type to be shown after the variable.
{{Variable|MyAttribute|Type|Type2}}: some variable.
Result:
TypeMyAttribute (Type2
)
- some variable.
The fourth argument is optional, to specify a modifier to the first type.
{{Variable|MyAttribute|Type|Type2|Mod1}}: some variable.
{{Variable|MyAttribute|Type||Mod1}}: some variable.
Result:
Type (Mod1)MyAttribute (Type2
)
- some variable.
Type (Mod1)MyAttribute
- some variable.
Migrated from SiteMasterDoc. Original revision history and imported contributor names are retained. See BathAfrica:Template migration for compatibility changes and unresolved image dependencies. Legacy examples do not establish current BathAfrica product capabilities.