Difference between revisions of "Talent info"
Stratonian (talk | contribs) (Added talent info template) |
Stratonian (talk | contribs) m (categorization) |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div class="infobox-right"> | + | <includeonly><div class="infobox-right"><!-- |
+ | DEFINE VARIABLE | ||
+ | -->{{#vardefine:name|<!-- define talent name | ||
+ | -->{{#if:{{{name|}}}<!-- if pre-defined name exists | ||
+ | -->|{{sc|{{{name}}}}}<!-- use that name | ||
+ | -->|{{PAGENAME}}}}}}<!-- else use page name | ||
+ | TABLE | ||
+ | --> | ||
{| class="wikitable" style="width: 100%;" | {| class="wikitable" style="width: 100%;" | ||
|- | |- | ||
Line 8: | Line 15: | ||
-->|{{#vardefine:defaultIcon|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.png}}<!-- else use default icon | -->|{{#vardefine:defaultIcon|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.png}}<!-- else use default icon | ||
-->{{#ifexist:{{#var:defaultIcon}}<!-- if default icon exists | -->{{#ifexist:{{#var:defaultIcon}}<!-- if default icon exists | ||
− | -->|[[{{#var:defaultIcon}}| | + | -->|[[{{#var:defaultIcon}}|85px]]<!-- use default icon |
− | -->|[[{{#var:defaultIcon}}|Upload | + | -->|[[{{#var:defaultIcon}}|Upload talent icon.]]}}}}<!-- else prompt for icon upload |
--></center> | --></center> | ||
|- | |- | ||
− | ! colspan="2" style="background-color:#24222a" | <center>{{ | + | ! colspan="2" style="background-color:#24222a" | <center>{{#var:name}}</center><!-- name --> |
− | + | {{InfoboxRow|'''[[Stat]]'''|{{stat|{{sc|{{{stat}}}}}}}}} | |
− | + | {{InfoboxRow|'''Change'''|{{{value}}}}} | |
− | |||
− | |||
− | |||
|}</div><!-- | |}</div><!-- | ||
− | + | SET PROPERTIES | |
− | -->{{{description|{{ | + | -->{{{description}}}{{#set:Has description={{{description}}}}}{{#set:Has talent name={{#var:name}}}}{{#set:Has stat=1;{{{value|0}}}<!-- set stat index and value |
+ | -->;{{#replace:{{sc|{{{stat}}}}}| |_}}}}<!-- set stat name | ||
+ | -->[[Category:Passive Talents]]</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude> |
Latest revision as of 20:31, 3 March 2024
Description[edit]
Displays an information page about a talent.
Usage[edit]
{{Talent info|<icon=icon>|<name=name>|<description=description>|<stat=stat>|<value=value>}}