Template:Clothing Infobox: Difference between revisions
No edit summary |
mNo edit summary |
||
| (34 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:Infobox|main | ||
|kind = Clothing | |||
|sep = , | |||
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}} | |||
|title = <!-- | |||
-->{{{title|<!-- | |||
-->{{{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, 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 = Category, Type, Quality, Set, Tags, Selling Price | |||
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}} | |||
|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}}}]]}} | |||
|Tags = {{#if:{{#explode:{{{tags}}}|;|1}}|{{List|{{{tags}}}}}|{{{tags|}}}}} | |||
|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 = 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: | -->[[Category:Clothing]]<!-- | ||
Number | |||
-->{{#if:{{{ | -->{{#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 | |||
-->{{#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 | |Gray = 0 | ||
|Green | |Green = 1 | ||
|Purple | |Purple = 2 | ||
|Gold | |Gold = 3 | ||
|#default = 4 | |#default = 4 | ||
}}]]}}<!-- | }}]]}}<!-- | ||
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 | |||
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Clothing Items]]}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | --></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | ||
Latest revision as of 13:19, 25 October 2026
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Template that creates an infobox for Clothing items.
Syntax
[edit source]{{Clothing Infobox
|name =
|number =
|category =
|type =
|quality =
|set =
|color =
|material =
|style =
|nmatch =
|description =
|source =
|sell =
}}
- name – Name of the Clothing item.
- number – Sorting number for the Clothing item.
- category – Category of the Clothing item.
- type – Type of the Clothing item.
- quality – Quality of the Clothing item.
- set – Set the Clothing item is included in.
- color – Color tag(s) of the Clothing item as a semicolon separated list.
- material – Material tag(s) of the Clothing item as a semicolon separated list.
- style – Style tag(s) of the Clothing item as a semicolon separated list.
- nmatch – Neighbor Match of the Clothing item as a semicolon separated list.
- description – Description of the Clothing item.
- source – Source(s) of the Clothing item as a semicolon separated list.
- sell – Selling price of the Clothing item.
Other parameters
[edit source]- image – Override the default image with a single file. Default: name Icon.png.
- images – Override the default image with multiple files and tabs.
- Format: Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name; ... ; Image N.ext:Tab N name.
Example
[edit source]
{{Clothing Infobox
|name = Wonky Cat Witch's Hat
|number = 60406
|category = Outfit
|type = Headwear
|quality = Purple
|set = Wonky Cat Witch
|color = Brown
|material = Fabric
|style = Romantic
|description = A witch hat that simply refuses to sit straight. Could that be where the magic comes from?
|source = [[Loomix Mart]]; [[Loomix Curated Apparel: I]]
}}
Template Data
[edit source]Template that creates an infobox for Clothings.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the Clothing item.
| String | required |
| Number | number | Sorting number for the Clothing item.
| Number | suggested |
| Category | category | Category of the Clothing item.
| String | suggested |
| Type | type | Type of the Clothing item.
| String | suggested |
| Quality | quality | Quality of the Clothing item.
| String | suggested |
| Set | set | Set the Clothing item is included in.
| String | suggested |
| Set link | set_link | Appoint another page to be linked for the Clothing set. | String | optional |
| Color | color | Color tag(s) of the Clothing item as a semicolon separated list.
| Content | suggested |
| Material | material | Material tag(s) of the Clothing item as a semicolon separated list.
| Content | suggested |
| Style | style | Style tag(s) of the Clothing item as a semicolon separated list.
| Content | suggested |
| Neighbor match | nmatch | Neighbor Match of the Clothing item as a semicolon separated list.
| Content | suggested |
| Description | description | Description of the Clothing item. | Content | suggested |
| Source | source | Source(s) of the Clothing item as a semicolon separated list.
| Content | suggested |
| Selling price | sell | Selling price of the Clothing item.
| Number | optional |
| Image | image | Override the default image with a single file.
| File | optional |
| Images | images | Override the default image with multiple files and tabs.
| Content | optional |