Difference between revisions of "Stat"
Stratonian (talk | contribs) m |
Stratonian (talk | contribs) m |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
-->{{#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 | -->|[[File:{{{1}}}_Icon.png|?]]<!-- handle non-existent icon | ||
− | -->|{{icon|{{{icon|{{{1}}}_Icon.png}}}|{{#ifeq:{{ | + | -->|{{icon|{{{icon|{{{1}}}_Icon.png}}}|{{#ifeq:{{lc:{{{link}}}}}|no||{{#var:link}}}}}}<!-- add icon with link |
-->{{#if:{{{nolabel|}}}||<!-- if no label is specified | -->{{#if:{{{nolabel|}}}||<!-- if no label is specified | ||
--> {{#ifeq:{{lc:{{{link}}}}}|no<!-- if no link is specified | --> {{#ifeq:{{lc:{{{link}}}}}|no<!-- if no link is specified | ||
-->|{{{1}}}<!-- use plaintext | -->|{{{1}}}<!-- use plaintext | ||
− | -->|[[{{#var:link}}|{{{1}}}]]}}}}<!-- else add link | + | -->|[[{{#var:link}}|{{{1}}}]]}}}}}}<!-- else add link |
SET PROPERTIES | SET PROPERTIES |
Latest revision as of 20:46, 2 June 2024
Description[edit]
Displays a stat's icon and name, with a link to the page of the stat.
Usage[edit]
{{stat|<Attack Power>|<+123>|<icon=Attack Power.png>|<link=Attack Power>|<nolabel=yes>}}