Template:Clothing Infobox: Difference between revisions

No edit summary
mNo edit summary
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Infobox|main
<includeonly>{{#invoke:Infobox|main
|kind = Dress Up
|kind = Clothing
|sep = ,
|sep = ,
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
|title = <!--
|title = <!--
-->{{{title|<!--
-->{{{title|<!--
-->{{#if:|<!--
   -->{{{name|{{PAGENAME}}}}}<!--
   --><span class="archive-number quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}"><!--
    -->{{{number}}}<!--
  --></span><!--
-->}}<!--
-->{{{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, Description, Details, How to Obtain
|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}}}]]}}
|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}}}}}"><!--
    -->{{{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}}}}}}}}}}
 
|Description_collapsible = Yes
|Description = DescriptionText
|DescriptionText_wide = Yes
|DescriptionText = {{{description|}}}


|Details_collapsible = Yes
|Details_collapsible = Yes
|Details = Color, Material, Style
|Details = Color, Material, Style, Neighbor Match, Neighbor Exclusive
|Color = <ul>{{Array|{{{color|}}}|;|<li>{item}</li>}}</ul>
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|,&nbsp;}}}}
|Material = <ul>{{Array|{{{material|}}}|;|<li>{item}</li>}}</ul>
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}}
|Style = <ul>{{Array|{{{style|}}}|;|<li>{item}</li>}}</ul>
|Material = {{#if:{{{material|}}}|{{Array|{{{material}}}|;|²{Material Link¦{item}¦}²|,&nbsp;|template=1}}}}
|Material_label = Material{{#if:{{#explode:{{{material}}}|;|1}}|s}}
|Style = {{#if:{{{style|}}}|{{Array|{{{style}}}|;|[[{item}]]|,&nbsp;}}}}
|Style_label = Style{{#if:{{#explode:{{{style}}}|;|1}}|s}}
|Neighbor Match = {{#if:{{{nmatch|}}}|{{Array|{{{nmatch}}}|;|{item}|,&nbsp;}}}}
|Neighbor Exclusive = {{#if:{{{nexclusive|}}}|[[{{{nexclusive|}}}]]}}


|How to Obtain_collapsible = Yes
|How to Obtain_collapsible = Yes
Line 46: Line 42:
|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|dress_up
-->{{#invoke:Bucket|put|clothing
|+templateargs = name, number, quality, category, type, set, set_link, tags, source, description, color, material, style, 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|}}}}}}
|source-delimiter = ;
|color-delimiter = ;
|color-delimiter = ;
|material-delimiter = ;
|material-delimiter = ;
|style-delimiter = ;
|style-delimiter = ;
|nmatch-delimiter = ;
|source-delimiter = ;
|image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png}}}
|image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png}}}
|images-delimiter = ;
|images-delimiter = ;
Line 63: Line 61:


-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
-->[[Category:Dress Up]]<!--
-->[[Category:Clothing]]<!--
   Number
   Number
-->{{#if:{{{number|}}}|[[Category:Dress Up Items|{{{number|}}}]]|[[Category:Dress Up Items]][[Category:Dress Up Items Missing Number]]}}<!--
-->{{#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|}}}|[[Category:{{{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:Dress Up Items by Quality|{{#switch:{{{quality|}}}
   {{#if:{{{quality|}}}|[[Category:Clothing Items by Quality|{{#switch:{{{quality|}}}
   |Gray    = 0
   |Gray    = 0
   |Green    = 1
   |Green    = 1
Line 80: Line 78:
   }}]]}}<!--
   }}]]}}<!--
     Tags
     Tags
-->{{#if:{{{tags|}}}|{{Cat List|{{{tags}}}|{item} Dress Up|{{#if:{{{category|}}}|[[Category:{item} {{{category}}}]]}}{{#if:{{{type|}}}|[[Category:{item} {{{type}}}]]}}}}}}<!--
-->{{#if:{{{tags|}}}|{{Cat List|{{{tags}}}|{item} Clothing}}}}<!--
-->{{#if:{{{color|}}}|{{Cat List|{{{color}}}|{item} Dress Up|{{#if:{{{category|}}}|[[Category:{item} {{{category}}}]]}}{{#if:{{{type|}}}|[[Category:{item} {{{type}}}]]}}}}}}<!--
-->{{#if:{{{color|}}}|{{Cat List|{{{color}}}|{item} Clothing}}}}<!--
-->{{#if:{{{material|}}}|{{Cat List|{{{material}}}|{item} Dress Up|{{#if:{{{category|}}}|[[Category:{item} {{{category}}}]]}}{{#if:{{{type|}}}|[[Category:{item} {{{type}}}]]}}}}}}<!--
-->{{#if:{{{material|}}}|{{Cat List|{{{material}}}|{item} Clothing}}}}<!--
-->{{#if:{{{style|}}}|{{Cat List|{{{style}}}|{item} Dress Up|{{#if:{{{category|}}}|[[Category:{item} {{{category}}}]]}}{{#if:{{{type|}}}|[[Category:{item} {{{type}}}]]}}}}}}<!--
-->{{#if:{{{style|}}}|{{Cat List|{{{style}}}|{item} Clothing}}}}<!--
-->{{#if:{{{nexclusive|}}}|[[Category:Neighbor Exclusive Clothing]]}}<!--
   Set
   Set
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Dress Up Items]]}}<!--
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Clothing Items]]}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>