Template:Clothing Infobox: Difference between revisions

ReisuDesign (talk | contribs)
Created page with "<includeonly><infobox> <title source="title"> <default>{{PAGENAME|{{{title}}}}}</default> </title> <image source="image"> <caption source="caption-image"/> </image> <group layout="horizontal> <data source="category"> <label>Category</label> <format>[[{{{category}}}]]</format> </data> <data source="type"> <label>Type</label> <format>[[{{{type}}}]]</format> </data> </group> <data source="quality"> <label>Quality</label> <..."
 
mNo edit summary
 
(37 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><infobox>
<includeonly>{{#invoke:Infobox|main
  <title source="title">
|kind = Clothing
    <default>{{PAGENAME|{{{title}}}}}</default>
|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
  </data>
|Information = Category, Type, Quality, Set, Tags, Selling Price
  <data source="set">
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
    <label>Set</label>
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[{item}]]|,&nbsp;}}}}
    <format>[[{{{set}}}]]</format>
|Type_label = Type{{#if:{{#explode:{{{type}}}|;|1}}|s}}
  </data>
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
  <data source="tags">
|Set = {{#if:{{{set_link|{{{set|}}}}}}|[[{{{set_link|{{{set}}}}}}|{{{set}}}]]}}
    <label>Tags</label>
|Tags = {{#if:{{#explode:{{{tags}}}|;|1}}|{{List|{{{tags}}}}}|{{{tags|}}}}}
    <format>{{List|{{{tags}}}}}</format>
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}}
</data>
 
  <data source="source">
|Details_collapsible = Yes
    <label>Source</label>
|Details = Color, Material, Style, Neighbor Match, Neighbor Exclusive
    <format>{{List|{{{source}}}}}</format>
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|,&nbsp;}}}}
</data>
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}}
  <data source="sell">
|Material = {{#if:{{{material|}}}|{{Array|{{{material}}}|;|²{Material Link¦{item}¦}²|,&nbsp;|template=1}}}}
    <label>Selling Price</label>
|Material_label = Material{{#if:{{#explode:{{{material}}}|;|1}}|s}}
    <format>{{Item|Dough|x={{{sell}}}}}</format>
|Style = {{#if:{{{style|}}}|{{Array|{{{style}}}|;|[[{item}]]|,&nbsp;}}}}
</data>
|Style_label = Style{{#if:{{#explode:{{{style}}}|;|1}}|s}}
</infobox><!--
|Neighbor Match = {{#if:{{{nmatch|}}}|{{Array|{{{nmatch}}}|;|{item}|,&nbsp;}}}}
-->{{Namespace|main=<!--
|Neighbor Exclusive = {{#if:{{{nexclusive|}}}|[[{{{nexclusive|}}}]]}}
-->[[Category:Dress Up|{{#if:{{{id|}}}|{{{id}}}}}]]<!--
 
|How to Obtain_collapsible = Yes
|How to Obtain = Source
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}}
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}}
}}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!--


-->{{#if:{{{category|}}}|[[Category:{{{category}}}]][[Category:{{{category}}}s]]}}<!--
-->{{#invoke:Bucket|put|clothing
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
|+templateargs = name, number, quality, category, type, set, set_link, tags, source, description, color, material, style, nmatch, images
-->{{#if:{{{tags|}}}|{{Cat List|{{{tags}}}|{item} Dress Up|{{#if:{{{category|}}}|[[Category:{item} {{{category}}}]]}}{{#if:{{{type|}}}|[[Category:{item}{{{type}}}]]}}}}}}<!--
|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=<!--
-->[[Category:Clothing]]<!--
  Number
-->{{#if:{{{number|}}}|[[Category:Clothing Items|{{{number|}}}]]|[[Category:Clothing Items]][[Category:Clothing Items Missing Number]]}}<!--
  Category
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
  Type
-->{{#if:{{{type|}}}|{{Array|{{{type|}}}|;|[[Category:{item}]]}}|}}<!--
  Quality
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
  {{#if:{{{quality|}}}|[[Category:Clothing Items by Quality|{{#switch:{{{quality|}}}
  |Gray    = 0
  |Green    = 1
  |Purple  = 2
  |Gold    = 3
  |#default = 4
  }}]]}}<!--
    Tags
-->{{#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>