Template:Clothing Infobox: Difference between revisions
Added bucket |
mNo edit summary |
||
| (23 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:Infobox|main | <includeonly>{{#invoke:Infobox|main | ||
|kind = | |kind = Clothing | ||
|sep = , | |sep = , | ||
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}} | |||
|title = <!-- | |title = <!-- | ||
-->{{{title|<!-- | -->{{{title|<!-- | ||
-->{{{name|{{PAGENAME}}}}}<!-- | |||
-->{{{name|{{PAGENAME}}}}}<!-- | |||
-->}}} | -->}}} | ||
|subtitle = {{{subtitle|}}} | |subtitle = {{{subtitle|}}} | ||
| Line 15: | Line 11: | ||
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | |images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | ||
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | |tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | ||
|sections = Information, | |sections = Checkbox, Information, Details, How to Obtain | ||
|Checkbox_nolabel = 1 | |||
|Checkbox = Collected | |||
|Collected = Mark as collected <span class="tpt-instance wds-checkbox" data-category="{{PAGEID:Dress Up/List}}" data-pageid="{{PAGEID}}"></span> | |||
|Information_collapsible = Yes | |Information_collapsible = Yes | ||
|Information = Category, Type, Quality, Set, Tags, Selling Price | |Information = Category, Type, Quality, Set, Tags, Selling Price | ||
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}} | |Category = {{#if:{{{category|}}}|[[{{{category}}}]]}} | ||
|Type = {{#if:{{{type|}}}| | |Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[{item}]]|, }}}} | ||
| | |Type_label = Type{{#if:{{#explode:{{{type}}}|;|1}}|s}} | ||
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}} | |||
|Set = {{#if:{{{set_link|{{{set|}}}}}}|[[{{{set_link|{{{set}}}}}}|{{{set}}}]]}} | |Set = {{#if:{{{set_link|{{{set|}}}}}}|[[{{{set_link|{{{set}}}}}}|{{{set}}}]]}} | ||
|Tags = {{#if:{{#explode:{{{tags}}}|;|1}}|{{List|{{{tags}}}}}|{{{tags|}}}}} | |Tags = {{#if:{{#explode:{{{tags}}}|;|1}}|{{List|{{{tags}}}}}|{{{tags|}}}}} | ||
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|x={{{sell|{{{price}}}}}}}}}} | |Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}} | ||
| | |Details_collapsible = Yes | ||
| | |Details = Color, Material, Style, Neighbor Match, Neighbor Exclusive | ||
| | |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}} | |||
|Style = {{#if:{{{style|}}}|{{Array|{{{style}}}|;|[[{item}]]|, }}}} | |||
|Style_label = Style{{#if:{{#explode:{{{style}}}|;|1}}|s}} | |||
|Neighbor Match = {{#if:{{{nmatch|}}}|{{Array|{{{nmatch}}}|;|{item}|, }}}} | |||
|Neighbor Exclusive = {{#if:{{{nexclusive|}}}|[[{{{nexclusive|}}}]]}} | |||
|How to Obtain_collapsible = Yes | |How to Obtain_collapsible = Yes | ||
|How to Obtain = Source | |How to Obtain = Source | ||
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{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| | -->{{#invoke:Bucket|put|clothing | ||
|+templateargs = name, number, quality, category, type, set, set_link, tags, source, description, images | |+templateargs = name, number, quality, category, type, set, set_link, tags, source, description, color, material, style, nmatch, images | ||
|page_id = {{PAGEID}} | |page_id = {{PAGEID}} | ||
|type-delimiter = ; | |||
|tags-delimiter = ; | |tags-delimiter = ; | ||
|sell = {{{sell|{{{price|}}}}}} | |sell = {{{sell|{{{price|}}}}}} | ||
|color-delimiter = ; | |||
|material-delimiter = ; | |||
|style-delimiter = ; | |||
|nmatch-delimiter = ; | |||
|source-delimiter = ; | |source-delimiter = ; | ||
|image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png}}} | |image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png}}} | ||
| Line 53: | Line 61: | ||
-->{{Namespace|main=<!-- | -->{{Namespace|main=<!-- | ||
-->[[Category: | -->[[Category:Clothing]]<!-- | ||
Number | Number | ||
-->{{#if:{{{number|}}}|[[Category: | -->{{#if:{{{number|}}}|[[Category:Clothing Items|{{{number|}}}]]|[[Category:Clothing Items]][[Category:Clothing Items Missing Number]]}}<!-- | ||
Category | Category | ||
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!-- | -->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!-- | ||
Type | Type | ||
-->{{#if:{{{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]]}} | ||
{{#if:{{{quality|}}}|[[Category: | {{#if:{{{quality|}}}|[[Category:Clothing Items by Quality|{{#switch:{{{quality|}}} | ||
|Gray = 0 | |Gray = 0 | ||
|Green = 1 | |Green = 1 | ||
| Line 70: | Line 78: | ||
}}]]}}<!-- | }}]]}}<!-- | ||
Tags | Tags | ||
-->{{#if:{{{tags|}}}|{{Cat List|{{{tags}}}|{item} | -->{{#if:{{{tags|}}}|{{Cat List|{{{tags}}}|{item} Clothing}}}}<!-- | ||
-->{{#if:{{{color|}}}|{{Cat List|{{{color}}}|{item} Clothing}}}}<!-- | |||
-->{{#if:{{{material|}}}|{{Cat List|{{{material}}}|{item} Clothing}}}}<!-- | |||
-->{{#if:{{{style|}}}|{{Cat List|{{{style}}}|{item} Clothing}}}}<!-- | |||
-->{{#if:{{{nexclusive|}}}|[[Category:Neighbor Exclusive Clothing]]}}<!-- | |||
Set | Set | ||
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set | -->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Clothing Items]]}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | --></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | ||