Difference between revisions of "Template:InfoboxTierColoriser"
From Istaria Lexica
m |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{InfoboxSimpleLine|name=Tier:|value={{#if:{{{tier|}}}|<span class="InfoboxTierColoriser"><span class="coloriser-color{{{tier}}}">Tier {{{tier}}}</span></span>}}|style={{{style|}}}}}</includeonly><noinclude>{{Clr}}{{documentation}}[[Category:Infobox Templates]]</noinclude><nowiki/> | + | <includeonly>{{InfoboxSimpleLine|name=Tier:|value={{#if:{{{tier|}}}|<span class="InfoboxTierColoriser"><span class="coloriser-color{{{tier}}}">Tier {{{tier}}}</span></span>}}|style={{{style|}}}}}</includeonly><noinclude>{{Clr}}{{documentation}}[[Category:Infobox Templates]][[Category:Non-standalone Templates]]</noinclude><nowiki/> |
Revision as of 10:33, 22 September 2022
Template documentation (for the template shown above, sometimes hidden or invisible)
Description[edit]
Non-standalone template for use in infoboxes. Accepts a tier number (1-6) and colorizes it to the proper tier's color. Also, a category link is wrapped over the text.
- Find pages using this template
- uses Template:InfoboxValues for the output.
- Try out this template in your sandbox
Syntax[edit]
{{InfoboxTierColoriser|tier=}}
Example[edit]
{{InfoboxTierColoriser|tier=4}}
Results in:
Tier: | Tier 4 |
Visit Template:InfoboxTierColoriser/doc to edit this text. (How to: document correctly)