Template:Clothing Infobox: Difference between revisions
m Eleiyas moved page Template:Dress Up Infobox to Template:Clothing Infobox without leaving a redirect |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:Infobox|main | <includeonly>{{#invoke:Infobox|main | ||
|kind = | |kind = Clothing | ||
|sep = , | |sep = , | ||
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}} | |class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}} | ||
| Line 60: | Line 60: | ||
-->{{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}}}]]}}<!-- | ||
| Line 69: | Line 69: | ||
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 77: | Line 77: | ||
}}]]}}<!-- | }}]]}}<!-- | ||
Tags | Tags | ||
-->{{#if:{{{tags|}}}|{{Cat List|{{{tags}}}|{item} | -->{{#if:{{{tags|}}}|{{Cat List|{{{tags}}}|{item} Clothing|{{#if:{{{category|}}}|[[Category:{item} {{{category}}}]]}}{{#if:{{{type|}}}|[[Category:{item} {{{type}}}]]}}}}}}<!-- | ||
-->{{#if:{{{color|}}}|{{Cat List|{{{color}}}|{item} | -->{{#if:{{{color|}}}|{{Cat List|{{{color}}}|{item} Clothing|{{#if:{{{category|}}}|[[Category:{item} {{{category}}}]]}}{{#if:{{{type|}}}|[[Category:{item} {{{type}}}]]}}}}}}<!-- | ||
-->{{#if:{{{material|}}}|{{Cat List|{{{material}}}|{item} | -->{{#if:{{{material|}}}|{{Cat List|{{{material}}}|{item} Clothing|{{#if:{{{category|}}}|[[Category:{item} {{{category}}}]]}}{{#if:{{{type|}}}|[[Category:{item} {{{type}}}]]}}}}}}<!-- | ||
-->{{#if:{{{style|}}}|{{Cat List|{{{style}}}|{item} | -->{{#if:{{{style|}}}|{{Cat List|{{{style}}}|{item} Clothing|{{#if:{{{category|}}}|[[Category:{item} {{{category}}}]]}}{{#if:{{{type|}}}|[[Category:{item} {{{type}}}]]}}}}}}<!-- | ||
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> | ||
Revision as of 07:43, 26 May 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
{{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
- 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
{{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
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 |