Difference between revisions of "Template:InfoboxTierColoriser"
From Istaria Lexica
imported>Elteria Shadowhand (Revamp of templates, massive updates) |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{InfoboxSimpleLine|name=Tier:|value={{#if:{{{tier|}}}|<span class="InfoboxTierColoriser"><span class="tier{{{tier}}}"><b>[[:Category:Tier {{Dec2rom|{{{tier}}}}}|Tier {{{tier}}}]]</b></span></span>}}|style={{{style|}}}}}</includeonly><noinclude>{{Clr}}{{documentation}}[[Category:Infobox Templates]][[Category:Non-standalone Templates]]</noinclude><nowiki/> | + | <includeonly>{{InfoboxSimpleLine|name=Tier:|value={{#if:{{{tier|}}}|<span class="InfoboxTierColoriser"><span class="tier{{{tier}}}"><b>[[:Category:Tier {{Dec2rom|{{{tier}}}}}|Tier {{{tier}}}]]</b></span></span>}}|style={{{style|}}}}}</includeonly><noinclude>{{Clr}}{{documentation}}[[Category:Infobox Templates]][[Category:Non-standalone Templates]][[Category:Add Data Templates]]</noinclude><nowiki/> |
Latest revision as of 18:47, 21 October 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)