Latest revision |
Your text |
Line 1: |
Line 1: |
− | <includeonly>{{#vardefine:link|{{{link|{{{1}}}}}}}}<!-- | + | <includeonly>{{#if:{{{2|}}}|{{{2}}} }}{{icon|{{{1|{{{3}}}}}}}} [[{{{1}}}]]</includeonly><noinclude>{{Stat/Documentation}}</noinclude> |
− | -->{{#if:{{{2|}}}|{{{2}}} }}<!-- handle stat value
| |
− | -->{{#iferror:{{icon|{{{icon|{{{1}}}_Icon.png}}}}}<!-- if icon doesn't exist
| |
− | -->|[[File:{{{1}}}_Icon.png|?]]<!-- handle non-existent icon
| |
− | -->|{{icon|{{{icon|{{{1}}}_Icon.png}}}|{{#ifeq:{{lc:{{{link}}}}}|no||{{#var:link}}}}}}<!-- add icon with link
| |
− | -->{{#if:{{{nolabel|}}}||<!-- if no label is specified
| |
− | --> {{#ifeq:{{lc:{{{link}}}}}|no<!-- if no link is specified
| |
− | -->|{{{1}}}<!-- use plaintext
| |
− | -->|[[{{#var:link}}|{{{1}}}]]}}}}}}<!-- else add link
| |
− | | |
− | SET PROPERTIES
| |
− | -->{{#if:<!-- if the page
| |
− | -->{{#ask: [[Category:Skills||Passive Talents]] [[{{PAGENAME}}]]}}<!-- is in Category:Skills or Category:Passive Talents
| |
− | -->|{{#set:Has stat={{#vardefineecho:index|{{#expr:{{#var:index|0}}+1}}}}<!-- recursively define stat index
| |
− | -->;{{{2|0}}}<!-- define stat value
| |
− | -->;{{#replace:{{sc|{{#var:link}}}}| |_}}}}<!-- define stat name and bypass semicolon in ' '
| |
− | -->}}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
| |