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 auto-pluralization for source label
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 2: Line 2:
|kind = Item
|kind = Item
|sep = ,
|sep = ,
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
|title = <!--
|title = <!--
-->{{{title|<!--
-->{{{title|<!--
-->{{#if:{{{number|}}}|<!--
  -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!--
  --><span class="archive-number quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}"><!--
  -->{{{name|{{PAGENAME}}}}}<!--
    -->{{{number}}}<!--
  --></span><!--
-->}}<!--
-->{{{name|{{PAGENAME}}}}}<!--
-->}}}
-->}}}
|subtitle = {{{subtitle|}}}
|subtitle = {{{subtitle|}}}
Line 18: Line 15:


|Information_collapsible = Yes
|Information_collapsible = Yes
|Information = Category, Type, Quality, Strength, Selling Price, Description
|Information = Category, Type, Quality, Color, Strength, Effect, Collection Score, Selling Price
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}}
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[{item}]]|,&nbsp;}}}}
|Quality = <!--
|Type_label = Type{{#if:{{#explode:{{{type}}}|;|1}}|s}}
-->{{#if:{{{quality|}}}|<!--
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
  --><span class="quality-label quality-{{lc:{{{quality}}}}}"><!--
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|,&nbsp;|sort=1}}}}
    -->{{{quality}}}<!--
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}}
  --></span><!--
-->}}
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
|Effect = {{{effect|}}}
|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}}}}}}}}}}
|Description = {{{description|}}}


|How to Obtain_collapsible = Yes
|How to Obtain_collapsible = Yes
Line 35: 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
|+templateargs = name, number, quality, category, type, strength, source, description, images
|+templateargs = name, number, quality, category, type, strength, source, effect, description, images
|page_id = {{PAGEID}}
|page_id = {{PAGEID}}
|sell = {{{sell|{{{price|}}}}}}
|sell = {{{sell|{{{price|}}}}}}
Line 54: Line 57:
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
   Type
   Type
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
-->{{#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>