Difference between revisions of "Stat"
Stratonian (talk | contribs) (better handling of non-existent icons) |
Stratonian (talk | contribs) (Set property for passive talents) |
||
Line 5: | Line 5: | ||
-->{{#if:{{{label|}}}|| [[{{{link|{{{1}}}}}}|{{{1}}}]]}}<!-- handle label | -->{{#if:{{{label|}}}|| [[{{{link|{{{1}}}}}}|{{{1}}}]]}}<!-- handle label | ||
− | + | -->{{#ifeq:[[:{{PAGENAME}}|{{PAGENAME}}]]<!-- if the page | |
− | -->{{#ifeq:[[:{{PAGENAME}}|{{PAGENAME}}]]<!-- | + | -->|{{#ask: [[Category:Skills]] [[{{PAGENAME}}]]}}{{#ask: [[Category:Passive talents]] [[{{PAGENAME}}]]}}<!-- is in Category:Skills or Category:Passive talents |
− | -->|{{#ask: [[Category:Skills]] [[{{PAGENAME}}]]}}<!-- | + | -->|{{#set:Has stat={{ucfirst:{{lc:{{{1}}}}}}}}}<!-- then set 'Has stat' property |
− | -->|{{#set:Has stat={{{1}}}}}}}</includeonly><noinclude>{{Stat/Documentation}}</noinclude> | + | -->}}</includeonly><noinclude>{{Stat/Documentation}}</noinclude> |
Revision as of 17:57, 11 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>}}