Template:Item Infobox: Difference between revisions
Template page
More actions
m desc |
No edit summary |
||
| (16 intermediate revisions by 5 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>}}<!-- | ||
-->{{{name|{{PAGENAME}}}}}<!-- | |||
-->{{{name|{{PAGENAME}}}}}<!-- | |||
-->}}} | -->}}} | ||
|subtitle = {{{subtitle|}}} | |subtitle = {{{subtitle|}}} | ||
| Line 18: | Line 15: | ||
|Information_collapsible = Yes | |Information_collapsible = Yes | ||
|Information = Category, Type, Quality, | |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}]]|, }}}} | ||
|Quality = | |Type_label = Type{{#if:{{#explode:{{{type}}}|;|1}}|s}} | ||
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}} | |||
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|, |sort=1}}}} | |||
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}} | |||
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}} | |||
|Effect = {{{effect|}}} | |||
| | |Collection Score = {{#ifeq:{{{category|}}}|Crop|{{#switch:{{{quality|}}}|<!-- | ||
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|x={{{sell|{{{price}}}}}}} | -->|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}}}}}}}}}} | |||
|How to Obtain_collapsible = Yes | |How to Obtain_collapsible = Yes | ||
|How to Obtain = Source | |How to Obtain = Source | ||
|Source | |Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}} | ||
| | |Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}} | ||
}}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!-- | |||
-->{{#invoke:Bucket|put|items | |||
|+templateargs = name, number, quality, category, type, strength, source, effect, description, images | |||
|page_id = {{PAGEID}} | |||
|sell = {{{sell|{{{price|}}}}}} | |||
|source-delimiter = ; | |||
|image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png}}} | |||
|images-delimiter = ; | |||
|removed = {{{removed|0}}} | |||
}}<!-- | }}<!-- | ||
| Line 44: | Line 57: | ||
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!-- | -->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!-- | ||
Type | Type | ||
-->{{#if:{{{type|}}}|[[Category:{{{ | -->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}]]}}|}}<!-- | ||
-->{{#if:{{{color|}}}|{{Cat List|{{{color}}}|{item} Items}}}}<!-- | |||
Quality | Quality | ||
-->{{#switch:{{{quality}}}|Gray| | -->{{#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 | ||
| | |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> | ||