Template:Clothing Infobox/doc: Difference between revisions
Template page
More actions
mNo edit summary |
Updated |
||
| (9 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation/Header}} | {{Documentation/Header}} | ||
{{Lua|Infobox}} | |||
Infobox for | {{CSS|Gadget-Infobox}} | ||
Template that creates an infobox for [[Clothing]] items. | |||
==Syntax== | ==Syntax== | ||
< | <syntaxhighlight lang="wikitext" copy> | ||
{{ | {{Clothing Infobox | ||
| | |name = | ||
|number | |number = | ||
| | |category = | ||
| | |type = | ||
| | |quality = | ||
| | |set = | ||
| | |color = | ||
| | |material = | ||
| | |style = | ||
|nmatch = | |||
|description = | |||
|source = | |||
|sell = | |||
}} | }} | ||
</ | </syntaxhighlight> | ||
* {{F|name}} – Name of the Clothing item. | |||
* {{F|number}} – Sorting number for the Clothing item. | |||
* {{F|category}} – Category of the Clothing item. | |||
* {{F|type}} – Type of the Clothing item. | |||
* {{F|quality}} – Quality of the Clothing item. | |||
* {{F|set}} – Set the Clothing item is included in. | |||
* {{F|color}} – Color tag(s) of the Clothing item as a semicolon separated list. | |||
* {{F|material}} – Material tag(s) of the Clothing item as a semicolon separated list. | |||
* {{F|style}} – Style tag(s) of the Clothing item as a semicolon separated list. | |||
* {{F|nmatch}} – Neighbor Match of the Clothing item as a semicolon separated list. | |||
* {{F|description}} – Description of the Clothing item. | |||
* {{F|source}} – Source(s) of the Clothing item as a semicolon separated list. | |||
* {{F|sell}} – Selling price of the Clothing item. | |||
===Other parameters=== | |||
* {{F|image}} – Override the default image with a single file. Default: {{F|((name)) Icon.png}}. | |||
* {{F|images}} – Override the default image with multiple files and tabs. | |||
** Format: {{F|Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name; ... ; Image N.ext:Tab N name}}. | |||
==Example== | ==Example== | ||
{{ | {{Example|<nowiki> | ||
| | {{Clothing Infobox | ||
|number | |name = Wonky Cat Witch's Hat | ||
|number = 60406 | |||
|category | |category = Outfit | ||
|type | |type = Headwear | ||
|quality | |quality = Purple | ||
|set | |set = Wonky Cat Witch | ||
| | |color = Brown | ||
|source | |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]] | |||
}} | }} | ||
</nowiki>}} | |||
{{Clr}} | |||
==Template Data== | |||
<templatedata> | |||
{ | |||
"params": { | |||
"number": { | |||
"label": "Number", | |||
"description": "Sorting number for the Clothing item.", | |||
"example": "60406", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"quality": { | |||
"label": "Quality", | |||
"description": "Quality of the Clothing item.", | |||
"example": "Gray, Purple, Gold", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"name": { | |||
"label": "Name", | |||
"description": "Name of the Clothing item.", | |||
"example": "Wonky Cat Witch's Hat", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "Override the default image with a single file.", | |||
"example": "Unknown Icon.png", | |||
"type": "wiki-file-name", | |||
"default": "<name> Icon.png" | |||
}, | |||
"images": { | |||
"label": "Images", | |||
"description": "Override the default image with multiple files and tabs.", | |||
"example": "Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name", | |||
"type": "content" | |||
}, | |||
"category": { | |||
"label": "Category", | |||
"description": "Category of the Clothing item.", | |||
"example": "Outfit", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"type": { | |||
"label": "Type", | |||
"description": "Type of the Clothing item.", | |||
"example": "Headwear", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"description": { | |||
"label": "Description", | |||
"description": "Description of the Clothing item.", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"set_link": { | |||
"label": "Set link", | |||
"description": "Appoint another page to be linked for the Clothing set.", | |||
"type": "string" | |||
}, | |||
"set": { | |||
"label": "Set", | |||
"description": "Set the Clothing item is included in.", | |||
"example": "Wonky Cat Witch", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"color": { | |||
"label": "Color", | |||
"description": "Color tag(s) of the Clothing item as a semicolon separated list.", | |||
"example": "Brown; White; Pink", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"material": { | |||
"label": "Material", | |||
"description": "Material tag(s) of the Clothing item as a semicolon separated list.", | |||
"example": "Fabric; Plush; Metal", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"style": { | |||
"label": "Style", | |||
"description": "Style tag(s) of the Clothing item as a semicolon separated list.", | |||
"example": "Cool; Sporty; Artistic", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"nmatch": { | |||
"label": "Neighbor match", | |||
"description": "Neighbor Match of the Clothing item as a semicolon separated list.", | |||
"example": "One-Size", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"sell": { | |||
"label": "Selling price", | |||
"description": "Selling price of the Clothing item.", | |||
"example": "15", | |||
"type": "number" | |||
}, | |||
"source": { | |||
"label": "Source", | |||
"description": "Source(s) of the Clothing item as a semicolon separated list.", | |||
"example": "[[Loomix Mart]]; [[Loomix Curated Apparel: I]]", | |||
"type": "content", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "Template that creates an infobox for Clothings.", | |||
"paramOrder": [ | |||
"name", | |||
"number", | |||
"category", | |||
"type", | |||
"quality", | |||
"set", | |||
"set_link", | |||
"color", | |||
"material", | |||
"style", | |||
"nmatch", | |||
"description", | |||
"source", | |||
"sell", | |||
"image", | |||
"images" | |||
], | |||
"format": "{{_\n|___________ = _\n}}\n" | |||
} | |||
</templatedata> | |||