Difference between revisions of "Stat"
Stratonian (talk | contribs) m |
Stratonian (talk | contribs) (better handling of non-existent icons) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}}|{{{2}}} }}<!-- handle stat value | <includeonly>{{#if:{{{2|}}}|{{{2}}} }}<!-- handle stat value | ||
-->{{#iferror:{{icon|{{{icon|{{{1}}}_Icon.png}}}}}<!-- if icon doesn't exist | -->{{#iferror:{{icon|{{{icon|{{{1}}}_Icon.png}}}}}<!-- if icon doesn't exist | ||
− | -->|{{ | + | -->|[[File:{{{1}}}_Icon.png|?]]<!-- handle non-existent icon |
-->|{{icon|{{{icon|{{{1}}}_Icon.png}}}|{{{link|{{{1}}}}}}}}}}<!-- add icon with link | -->|{{icon|{{{icon|{{{1}}}_Icon.png}}}|{{{link|{{{1}}}}}}}}}}<!-- add icon with link | ||
-->{{#if:{{{label|}}}|| [[{{{link|{{{1}}}}}}|{{{1}}}]]}}<!-- handle label | -->{{#if:{{{label|}}}|| [[{{{link|{{{1}}}}}}|{{{1}}}]]}}<!-- handle label |
Revision as of 13:42, 28 May 2023
Description
Displays a stat's icon and name, with a link to the page of the stat.
Usage
{{stat|<Attack Power>|<+123>|<icon=Attack Power.png>|<link=Attack Power>|<nolabel=yes>}}