Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
If you make an edit, a temporary account will be created for you.

Template:Item Infobox: Difference between revisions

Template page
Moved quality class to affect entire infobox
No edit summary
Line 17: Line 17:
|Information = Category, Type, Quality, Strength, Selling Price, Description
|Information = Category, Type, Quality, Strength, Selling Price, Description
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}}
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[{item}]]|, }}}}
|Type_label = Type{{#if:{{#explode:{{{type}}}|;|1}}|s}}
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
Line 46: Line 47:
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
   Type
   Type
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
-->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}]]}}|}}<!--
   Quality
   Quality
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}