Editing Stat
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | <includeonly | + | <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 | ||
− | -->| | + | -->|{{error|Invalid icon. Add a name or icon parameter.}}<!-- handle non-existent icon |
− | -->|{{icon|{{{icon|{{{1}}}_Icon.png}}}|{ | + | -->|{{icon|{{{icon|{{{1}}}_Icon.png}}}|{{{link|{{{1}}}}}}}}}}<!-- add icon with link |
− | -->{{#if:{{{ | + | -->{{#if:{{{label|}}}|| [[{{{link|{{{1}}}}}}|{{{1}}}]]}}<!-- handle label |
− | |||
− | |||
− | |||
− | + | if the page is a Skill, then set a property | |
− | -->{{# | + | -->{{#ifeq:[[:{{PAGENAME}}|{{PAGENAME}}]]<!-- |
− | -->{{#ask: [[Category:Skills | + | -->|{{#ask: [[Category:Skills]] [[{{PAGENAME}}]]}}<!-- Category:Skills |
− | -->|{{#set:Has stat={ | + | -->|{{#set:Has stat={{{1}}}}}}}</includeonly><noinclude>{{Stat/Documentation}}</noinclude> |
− | |||
− | |||
− |