Template:Stat: Difference between revisions

From Wildfrost Wiki
Jump to navigation Jump to search
(Updated the template to support alt text)
mNo edit summary
Line 3: Line 3:
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.  
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|1=the stat|2=alt text}}
{{Stat|1=the stat|2=alt text}}
</noinclude>
</noinclude><span style="display:inline;" title={{#switch:{{{2|}}}
<span style="display:inline;" title={{#switch:{{{2|}}}
           |Hearts=Health
           |Hearts=Health
           |HP=Health
           |HP=Health

Revision as of 01:23, 5 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:{{{1}}}.png|20px|sub|link={{{1}}}}]] [[{{{1}}}|{{{1}}}]]