Editing Item info
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 38: | Line 38: | ||
stats are comma-separated and in the format: | stats are comma-separated and in the format: | ||
− | [stat name] | + | [stat name] [stat value] |
− | -->{{#arraydefine:stats|{{{stats | + | -->{{#arraydefine:stats|{{{stats}}}}}<!-- |
− | |||
− | |||
− | |||
− | |||
quests | quests | ||
Line 56: | Line 52: | ||
-->|<span class="{{#var:quality class}}">[[File:{{{icon}}}|85px]]</span><!-- use provided icon | -->|<span class="{{#var:quality class}}">[[File:{{{icon}}}|85px]]</span><!-- use provided icon | ||
-->|{{#ifeq:{{#explode:{{PAGENAME}}|:|0}}|Recipe<!-- if the item is a recipe | -->|{{#ifeq:{{#explode:{{PAGENAME}}|:|0}}|Recipe<!-- if the item is a recipe | ||
− | -->|{{Recipe icon | + | -->|{{Recipe icon}}<!-- use the recipe icon template |
-->|{{#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 | ||
-->|<span class="{{#var:quality class}}">[[{{#var:defaultIcon}}|85px]]</span><!-- use default icon | -->|<span class="{{#var:quality class}}">[[{{#var:defaultIcon}}|85px]]</span><!-- use default icon | ||
-->|[[{{#var:defaultIcon}}|Upload item icon.]]}}}}}}<!-- else prompt for icon upload | -->|[[{{#var:defaultIcon}}|Upload item icon.]]}}}}}}<!-- else prompt for icon upload | ||
− | --> | + | --></center> |
|- | |- | ||
! colspan="2" class="{{#var:quality class}}"<!-- | ! colspan="2" class="{{#var:quality class}}"<!-- | ||
Line 68: | Line 64: | ||
{{#if:{{#var:type text}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Type'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{#var:type text}}}} | {{#if:{{#var:type text}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Type'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{#var:type text}}}} | ||
|- | |- | ||
− | {{#if:{{{quality|}}}|{{ | + | {{#if:{{{quality|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''[[Quality]]'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}<!-- |
-->{{#arraydefine:qualities|{{lc:{{{quality}}}}}|-}}<!-- split range of qualities by '-' | -->{{#arraydefine:qualities|{{lc:{{{quality}}}}}|-}}<!-- split range of qualities by '-' | ||
− | -->{{#arrayprint:qualities|-|@|{{ucfirst:@}}}}}}<!-- ensure each quality starts with an uppercase letter --> | + | -->{{#arrayprint:qualities|-|@|{{ucfirst:@}}}}}}<!-- ensure each quality starts with an uppercase letter --> |
|- | |- | ||
− | {{#if:{{{tier|}}}|{{ | + | {{#if:{{{tier|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''[[Tier]]'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{{tier}}}}} |
|- | |- | ||
− | {{#if:{{{level|}}}|{{ | + | {{#if:{{{level|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Req. [[Level]]'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{{level}}}}} |
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | {{ | ||
− | |||
− | - | ||
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{hero|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Req. [[Hero]]'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}[[{{{hero}}}]]}} |
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{stats|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''[[Stat]]s'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}<!-- stats row |
− | -->{{#arrayprint: | + | -->{{#arrayprint:stats|<br><!-- print stats array, separated by line breaks |
-->|@|{{#vardefine:name|{{#sub:@|{{#pos:@| }}}}}}<!-- stat name | -->|@|{{#vardefine:name|{{#sub:@|{{#pos:@| }}}}}}<!-- stat name | ||
− | -->{{stat|{{sc|{{#var:name}}}}|{{#explode:@| |0}}|nolabel=yes}}}}}}<!-- stat template --> | + | -->{{stat|{{sc|{{#var:name}}}}|{{#explode:@| |0}}|nolabel=yes}}}}}}<!-- stat template --> |
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{duration|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Duration'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{{duration}}}s}} |
|- | |- | ||
− | {{#if:{{{quests|}}}|{{ | + | {{#if:{{{quests|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Involved In'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{#arrayprint:quest text|<br>|@|[[@]]}}}}<!-- formats the quests array --> |
|- | |- | ||
− | {{#if:{{{value|}}}|{{ | + | {{#if:{{{value|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Value'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{stat|Gold|{{{value}}}|nolabel=yes}}}} |
− | |} | + | |}</div><!-- |
− | </div><!-- | ||
DESCRIPTION | DESCRIPTION | ||
-->{{#if:{{{tooltip|}}}|{{quotation|{{{tooltip}}}|game}}}}{{{description|{{error|No description was provided. Add a description parameter.}}}}}<!-- | -->{{#if:{{{tooltip|}}}|{{quotation|{{{tooltip}}}|game}}}}{{{description|{{error|No description was provided. Add a description parameter.}}}}}<!-- |