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 4: | Line 4: | ||
category | category | ||
if a name parameter is given, it is assumed that the template isn't on the item's main article, therefore it isn't categorized | if a name parameter is given, it is assumed that the template isn't on the item's main article, therefore it isn't categorized | ||
− | -->{{#vardefine: | + | -->{{#vardefine:typeText|{{#switch:{{lc:{{{category|}}}}} |
|armor=[[Armor]] | |armor=[[Armor]] | ||
|artifacts=[[Artifact]] | |artifacts=[[Artifact]] | ||
|chips=[[Chip]] | |chips=[[Chip]] | ||
− | |consumables=[[Consumable]] | + | |consumables=[[Consumable]][[Category:Testing]] |
|crafting materials=[[Crafting Material]] | |crafting materials=[[Crafting Material]] | ||
|quest items=[[Quest Item]] | |quest items=[[Quest Item]] | ||
Line 16: | Line 16: | ||
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{name|}}}<!-- if a name parameter is not given | -->{{#if:{{{name|}}}<!-- if a name parameter is not given | ||
− | -->||{{#if:{{#var: | + | -->||{{#if:{{#var:typeText}}<!-- if the type is correct (i.e. typeText exists) |
− | + | -->|[[Category:{{sc|{{{category}}}}}]]}}}}<!-- add to category | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | -->|[[Category:{{sc|{{{category | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
quests | quests | ||
− | -->{{#arraydefine: | + | -->{{#arraydefine:questText|{{{quests}}}|;}}<!-- |
TABLE --> | TABLE --> | ||
Line 53: | Line 28: | ||
item icon | item icon | ||
-->{{#if:{{{icon|}}}<!-- if icon exists | -->{{#if:{{{icon|}}}<!-- if icon exists | ||
− | -->| | + | -->|[[{{{icon}}}|85px]]<!-- use provided icon |
− | |||
− | |||
-->|{{#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}}|85px]]<!-- use default icon |
− | -->|[[{{#var:defaultIcon}}|Upload item icon.]] | + | -->|[[{{#var:defaultIcon}}|Upload item icon.]]}}}}<!-- else prompt for icon upload |
− | --> | + | --></center> |
|- | |- | ||
− | ! colspan="2" class="{{#var: | + | ! colspan="2" class="<!-- set backgrond color |
− | --> | < | + | -->{{#ifeq:{{#var:typeText}}|[[Quest Item]]<!-- if item is a quest item |
− | |- | + | -->|quest-item<!-- use quest item color |
− | + | -->|{{#switch:{{lc:{{{quality|}}}}}<!-- else use item quality color | |
+ | -->|common=quality-common | ||
+ | |uncommon=quality-uncommon | ||
+ | |rare=quality-rare | ||
+ | |epic=quality-epic | ||
+ | |legendary=quality-legendary | ||
+ | |#default=quality-common<!-- items with no quality are assumed to be common --> | ||
+ | }}}}" | <center>{{{name|{{PAGENAME}}}}}</center><!-- name --> | ||
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{#var:typeText}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Type'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{#var:typeText}}}} |
− | |||
− | -- | ||
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{quality|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''[[Quality]]'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{ucfirst:{{lc:{{{quality}}}}}}}}} |
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{tier|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''[[Tier]]'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{{tier}}}}} |
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{level|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Req. [[Level]]'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{{level}}}}} |
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{quests|}}}|{{!}}class="skill-infobox-row-heading"{{!}}'''Involved In'''{{!}}{{!}}class="skill-infobox-row-data"{{!}}{{#arrayprint:questText|<br>|@|[[@]]}}}}<!-- formats the quests array --> |
|- | |- | ||
− | {{#if:{{{ | + | {{#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.}}}}}</includeonly><noinclude>{{Item info/Documentation}}</noinclude> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |