Template:Stat: Difference between revisions
Jump to navigation
Jump to search
Landmine751 (talk | contribs) (Added Block, Spice, Shell, Snow Resist, Teeth, Bom, Frost, Haze, Ink, Overburn, Shroom; now links to Stats page; minor tweaks to styling) |
(allow word-ending links (so {{Stat|Bling}}s can replace {{Stat|Bling|Blings}})) |
||
(20 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
< | <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|1=the stat|2=alt text}} | |||
</noinclude><span style="display:inline;" title={{#switch:{{{2|}}} | |||
| | |Hearts=Health | ||
|HP=Health | |||
|Spikes=Teeth | |||
|Pepper=Spice | |Pepper=Spice | ||
| | |Mushroom=Shroom | ||
|Reaction=Alert Icon | |||
|#default={{{1|}}}}}>[[File:{{{1}}}.png|x20px|sub|link={{{1}}}]]</span> [[{{{1}}}|{{{2|{{{1}}}}}}]] | |||
| | |||
|#default={{{1|}}}}}>[[File:{{{1}}}.png| |
Latest revision as of 15:07, 15 June 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. File:The stat.png alt text [[File:{{{1}}}.png|x20px|sub|link={{{1}}}]] [[{{{1}}}|{{{1}}}]]