Template:Stat: Difference between revisions

From Wildfrost Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<span style="display:inline;" title={{#switch:{{{2|}}}
<noinclude>
==Usage==
This template is used for [[Stats]], displaying the stat's icon and providing a link to its page. The first parameter is the stat, and the second (optional) parameter is alt text.
{{Stat|stat=the stat|alt=alt text}}
</noinclude>
 
<span style="display:inline;" title={{#switch:{{{alt|}}}
           |Hearts=Health
           |Hearts=Health
           |HP=Health
           |HP=Health
Line 6: Line 12:
           |Mushroom=Shroom
           |Mushroom=Shroom
           |Reaction=Alert Icon
           |Reaction=Alert Icon
           |#default={{{1|}}}}}>[[File:{{{1}}}.png|20px|sub|link={{{1}}}}]] [[{{{1}}}|{{{2|{{{1}}}}}}]]</span>
           |#default={{{stat|}}}}}>[[File:{{{stat}}}.png|20px|sub|link={{{stat}}}}]] [[{{{stat}}}|{{{alt|{{{stat}}}}}}]]</span>

Revision as of 23:06, 4 February 2024

Usage

This template is used for Stats, displaying the stat's icon and providing a link to its page. The first parameter is the stat, and the second (optional) parameter is alt text.


link=the stat} alt text


[[File:{{{stat}}}.png|20px|sub|link={{{stat}}}}]] [[{{{stat}}}|{{{stat}}}]]