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
added effect, moved selling price to bottom.
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 15: Line 15:


|Information_collapsible = Yes
|Information_collapsible = Yes
|Information = Category, Type, Quality, Strength, Effect, Description, Selling Price
|Information = Category, Type, Quality, Color, Strength, Effect, Collection Score, Selling Price
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[{item}]]|, }}}}
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[{item}]]|, }}}}
|Type_label = Type{{#if:{{#explode:{{{type}}}|;|1}}|s}}
|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>}}
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|,&nbsp;|sort=1}}}}
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}}
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
|Effect = {{{effect|}}}
|Effect = {{{effect|}}}
|Description = {{{description|}}}
|Collection Score = {{#ifeq:{{{category|}}}|Crop|{{#switch:{{{quality|}}}|<!--
-->|Gray|Common = +5<!--
-->|Blue|Uncommon = +10<!--
-->|Purple|Rare = +15<!--
-->|Gold|Stellar = +30<!--
-->|#default = +?<!--
-->}}<!--
-->|{{{score|}}}}}
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}}
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}}


Line 29: Line 38:
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}}
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}}
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}}
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}}
}}<!--
}}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!--


-->{{#invoke:Bucket|put|items
-->{{#invoke:Bucket|put|items
Line 49: Line 58:
   Type
   Type
-->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}]]}}|}}<!--
-->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}]]}}|}}<!--
-->{{#if:{{{color|}}}|{{Cat List|{{{color}}}|{item} Items}}}}<!--
   Quality
   Quality
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
-->{{#switch:{{{quality}}}|Gray|Blue|Purple|Gold|Common|Uncommon|Rare|Stellar=[[Category:{{{quality}}} Quality]]}}
   {{#if:{{{quality|}}}|[[Category:Item by Quality|{{#switch:{{{quality|}}}
   {{#if:{{{quality|}}}|[[Category:Item by Quality|{{#switch:{{{quality|}}}
   |Gray    = 0
   |Gray|Common     = 0
   |Green   = 1
   |Blue|Uncommon   = 1
   |Purple  = 2
   |Purple|Rare   = 2
   |Gold    = 3
   |Gold|Stellar     = 3
   |#default = 4
   |#default = 4
   }}]]}}<!--
   }}]]}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>