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:Clothing Infobox: Difference between revisions

Template page
mNo edit summary
mNo edit summary
 
(29 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><infobox>
<includeonly>{{#invoke:Infobox|main
  <title source="name">
|kind = Clothing
  <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format>
|sep = ,
  </title>
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
  <image source="image">
|title = <!--
    <caption source="caption-image"/>
-->{{{title|<!--
  </image>
  -->{{{name|{{PAGENAME}}}}}<!--
  <group layout="horizontal">
-->}}}
  <data source="category">
|subtitle = {{{subtitle|}}}
    <label>Category</label>
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
    <format>[[{{{category}}}]]</format>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
  </data>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
  <data source="type">
|sections = Checkbox, Information, Details, How to Obtain
    <label>Type</label>
 
    <format>[[{{{type}}}]]</format>
|Checkbox_nolabel = 1
  </data>
|Checkbox = Collected
  </group>
|Collected = Mark as collected <span class="tpt-instance wds-checkbox" data-category="{{PAGEID:Dress Up/List}}" data-pageid="{{PAGEID}}"></span>
  <data source="quality">
 
    <label>Quality</label>
|Information_collapsible = Yes
    <format>{{{quality}}}</format>
|Information = Category, Type, Quality, Set, Tags, Selling Price
  </data>
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
  <data source="set">
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[{item}]]|,&nbsp;}}}}
    <label>Set</label>
|Type_label = Type{{#if:{{#explode:{{{type}}}|;|1}}|s}}
    <format>[[{{{setlink|{{{set}}}}}}|{{{set}}}]]</format>
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
  </data>
|Set = {{#if:{{{set_link|{{{set|}}}}}}|[[{{{set_link|{{{set}}}}}}|{{{set}}}]]}}
  <data source="tags">
|Tags = {{#if:{{#explode:{{{tags}}}|;|1}}|{{List|{{{tags}}}}}|{{{tags|}}}}}
    <label>Tags</label>
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}}
    <format>{{List|{{{tags}}}}}</format>
 
</data>
|Details_collapsible = Yes
  <data source="source">
|Details = Color, Material, Style, Neighbor Match, Neighbor Exclusive
    <label>Source</label>
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|,&nbsp;}}}}
    <format>{{List|{{{source}}}}}</format>
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}}
</data>
|Material = {{#if:{{{material|}}}|{{Array|{{{material}}}|;|²{Material Link¦{item}¦}²|,&nbsp;|template=1}}}}
  <data source="sell">
|Material_label = Material{{#if:{{#explode:{{{material}}}|;|1}}|s}}
    <label>Selling Price</label>
|Style = {{#if:{{{style|}}}|{{Array|{{{style}}}|;|[[{item}]]|,&nbsp;}}}}
    <format>{{Item|Dough|x={{{sell}}}}}</format>
|Style_label = Style{{#if:{{#explode:{{{style}}}|;|1}}|s}}
</data>
|Neighbor Match = {{#if:{{{nmatch|}}}|{{Array|{{{nmatch}}}|;|{item}|,&nbsp;}}}}
  <data source="description">
|Neighbor Exclusive = {{#if:{{{nexclusive|}}}|[[{{{nexclusive|}}}]]}}
    <format>'''Description'''<br>{{{description}}}</format>
 
  </data>
|How to Obtain_collapsible = Yes
</infobox><!--
|How to Obtain = Source
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}}
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}}
}}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!--
 
-->{{#invoke:Bucket|put|clothing
|+templateargs = name, number, quality, category, type, set, set_link, tags, source, description, color, material, style, nmatch, images
|page_id = {{PAGEID}}
|type-delimiter = ;
|tags-delimiter = ;
|sell = {{{sell|{{{price|}}}}}}
|color-delimiter = ;
|material-delimiter = ;
|style-delimiter = ;
|nmatch-delimiter = ;
|source-delimiter = ;
|image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png}}}
|images-delimiter = ;
|removed = {{{removed|0}}}
}}<!--
 
-->{{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
   |Purple     = 2
   |Purple   = 2
   |Gold       = 3
   |Gold     = 3
   |#default = 4
   |#default = 4
   }}]]}}<!--
   }}]]}}<!--
     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} Clothing}}}}<!--
-->{{#if:{{{material|}}}|{{Cat List|{{{material}}}|{item} Clothing}}}}<!--
-->{{#if:{{{style|}}}|{{Cat List|{{{style}}}|{item} Clothing}}}}<!--
-->{{#if:{{{nexclusive|}}}|[[Category:Neighbor Exclusive Clothing]]}}<!--
  Set
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Clothing Items]]}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>