Template:Furniture Infobox: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| (57 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly>{{#invoke:Infobox|main | ||
-->< | |kind = Furniture | ||
|sep = , | |||
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}} | |||
|title = <!-- | |||
-->{{{title|<!-- | |||
-->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!-- | |||
-->{{{name|{{PAGENAME}}}}}<!-- | |||
-->}}} | |||
|subtitle = {{{subtitle|}}} | |||
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}} | |||
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | |||
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | |||
|sections = Checkbox, Information, How to Obtain | |||
|Checkbox_nolabel = 1 | |||
|Checkbox = Collected | |||
|Collected = Mark as collected <span class="tpt-instance wds-checkbox" data-category="{{PAGEID:Furniture}}" data-pageid="{{PAGEID}}"></span> | |||
|Information_collapsible = Yes | |||
|Information = Category, Type, Quality, Set, Size, Indoor Area, Outdoor Area, Collection Score, Color, Material, Selling Price | |||
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}} | |||
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}} | |||
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}} | |||
|Set = {{#if:{{{set_link|{{{set|}}}}}}|[[{{{set_link|{{{set}}}}}}|{{{set}}}]]}} | |||
|Size = {{#if:{{{size|}}}|{{#replace:{{{size}}}|x|×}}}} | |||
|Indoor Area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|×}}}} | |||
|Outdoor Area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|×}}}} | |||
< | |Collection Score = {{#switch:{{{quality|}}}<!-- | ||
-->|Common|Gray = +{{{score|5}}}<!-- | |||
< | -->|Uncommon|Green = +{{{score|10}}}<!-- | ||
-->|Rare|Purple = {{#if:{{{score|}}}|+{{{score|}}}}}<!-- | |||
-->|Stellar|Gold = +{{{score|20}}}<!-- | |||
-->|Miracle = {{{score|30}}}<!-- | |||
-->|#default = <!-- | |||
-->}} | |||
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|, }}}} | |||
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}} | |||
|Material = {{#if:{{{material|}}}|{{Array|{{{material}}}|;|²{Material Link¦{item}¦}²|, |template=1}}}} | |||
|Material_label = Material{{#if:{{#explode:{{{material}}}|;|1}}|s}} | |||
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}} | |||
|How to Obtain_collapsible = Yes | |||
|How to Obtain = Source, Inspo Card | |||
< | |Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}} | ||
< | |Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}} | ||
|Inspo Card = {{{inspo|}}} | |||
}}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!-- | |||
-->{{#invoke:Bucket|put|furniture | |||
|+templateargs = name, number, quality, category, type, set, set_link, color, material, description, source, images | |||
|page_id = {{PAGEID}} | |||
|size = {{#if:{{{size|}}}|{{#replace:{{{size}}}|x|×}}}} | |||
|in_area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|×}}}} | |||
|out_area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|×}}}} | |||
|collection_score = {{#switch:{{{quality|}}}<!-- | |||
-->|Common|Gray = {{{score|5}}}<!-- | |||
-->|Uncommon|Green = {{{score|10}}}<!-- | |||
-->|Rare|Purple = {{{score|}}}<!-- | |||
-->|Stellar|Gold = {{{score|20}}}<!-- | |||
-->|Miracle = {{{score|30}}}<!-- | |||
-->|#default = <!-- | |||
-->}} | |||
|color-delimiter = ; | |||
|material-delimiter = ; | |||
|sell = {{{sell|{{{price|}}}}}} | |||
|source-delimiter = ; | |||
|inspo_source = {{{inspo|}}} | |||
|image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png}}} | |||
|images-delimiter = ; | |||
|removed = {{{removed|0}}} | |||
}}<!-- | |||
-->{{Namespace|main=<!-- | -->{{Namespace|main=<!-- | ||
Set page display title if name is different from page name | |||
The namespace check is necessary since the magic words need additional masking. | |||
-->{{#ifeq:{{NAMESPACE}}||<!-- | |||
-->{{#if:{{{name|}}}|<!-- | |||
-->{{DISPLAYTITLE:{{{name|}}}|noreplace}}<!-- | |||
-->{{#ifeq:{{{name|}}}|{{#titleparts:{{PAGENAME}}}}||[[Category:Pages with Custom Title]]}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->[[Category:Furniture]]<!-- | -->[[Category:Furniture]]<!-- | ||
Sort | Sort | ||
-->{{#if:{{{ | -->{{#if:{{{id|}}}|[[Category:Furniture by ID|{{{id}}}]][[Category:Furniture by Quality and ID|{{#switch:{{{quality|}}} | ||
|Common|Gray = 5 | |||
|Uncommon|Green = 4 | |||
|Rare|Purple = 3 | |||
|Stellar|Gold = 2 | |||
|Miracle = 1 | |||
|#default = 0 | |||
}} - {{{id}}}]]|[[Category:Furniture by ID]][[Category:Furniture by Quality and ID]][[Category:Furniture Missing ID]]}}<!-- | |||
Category | Category | ||
-->{{#if:{{{category|}}}|[[Category:{{{category}}} Furniture]]}}<!-- | -->{{#if:{{{category|}}}|{{#ifeq:{{{category}}}|Basic Furniture|[[Category:{{{category}}}]]|[[Category:{{{category}}} Furniture]]}}}}<!-- | ||
Type | Type | ||
-->{{#if:{{{type|}}}|[[Category:{{{type}}} Furniture]]}}<!-- | -->{{#if:{{{type|}}}|[[Category:{{{type}}} Furniture]]}}<!-- | ||
Quality | |||
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}} | -->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold|Common|Uncommon|Rare|Stellar|Miracle=[[Category:{{{quality}}} Quality]]|[[Category:Furniture Missing Quality]]}} | ||
{{#if:{{{quality|}}}|[[Category:Furniture by Quality|{{#switch:{{{quality|}}} | {{#if:{{{quality|}}}|[[Category:Furniture by Quality|{{#switch:{{{quality|}}} | ||
|Gray | |Common|Gray = 0 | ||
|Green | |Uncommon|Green = 1 | ||
|Purple | |Rare|Purple = 2 | ||
|Gold = | |Stellar|Gold = 3 | ||
|#default = | |Miracle = 4 | ||
}}]]}}<!-- | |#default = 5 | ||
}}]]|[[Category:Furniture by Quality]]}}<!-- | |||
-->{{#if:{{{set|}}}|[[Category:{{{set}}}]]}}<!-- | Set | ||
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Furniture]]}}<!-- | |||
-->{{#if:{{{color|}}}|{{Cat List|{{{color}}}|{item} Furniture}}}}<!-- | |||
-->{{#if:{{{material|}}}|{{Cat List|{{{material}}}|{item} Furniture}}}}<!-- | |||
Size | Size | ||
-->{{#if:{{{size|}}}|[[Category:{{{size}}} Furniture]]}}<!-- | -->{{#if:{{{size|}}}|[[Category:{{{size}}} Furniture]]}}<!-- | ||
-->{{#if:{{{inspo|}}}|[[Category:Pages Using Obsolete Parameters]]}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | --></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | ||