Difference between revisions of "Stat"
Stratonian (talk | contribs) m (if no value, set to 0) |
Stratonian (talk | contribs) m |
||
Line 11: | Line 11: | ||
-->{{#ifeq:[[:{{PAGENAME}}|{{PAGENAME}}]]<!-- if the page | -->{{#ifeq:[[:{{PAGENAME}}|{{PAGENAME}}]]<!-- if the page | ||
-->|{{#ask: [[Category:Skills]] [[{{PAGENAME}}]]}}<!-- is in Category:Skills | -->|{{#ask: [[Category:Skills]] [[{{PAGENAME}}]]}}<!-- is in Category:Skills | ||
− | -->|{{#set:Has stat={{#vardefineecho:index|{{#expr:{{#var:index|0}}+1}}}}<!-- recursively define stat index | + | -->|{{#vardefine:start case|{{sc|{{{link|{{{1}}}}}}}}}}<!-- bypasses the semicolon in ' ' |
− | -->;{{{2|0}}};{{ | + | -->{{#set:Has stat={{#vardefineecho:index|{{#expr:{{#var:index|0}}+1}}}}<!-- recursively define stat index |
+ | -->;{{{2|0}}};{{#var:start case}}}}<!-- define stat value and name | ||
-->}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude> | -->}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude> |
Revision as of 15:54, 28 August 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>}}