Template:Clothing Infobox/doc: Difference between revisions
No edit summary |
Updated |
||
| Line 1: | Line 1: | ||
{{Documentation/Header}} | {{Documentation/Header}} | ||
{{Lua|Infobox}} | |||
Infobox for Dress Up items. | {{CSS|Gadget-Infobox}} | ||
Template that creates an infobox for [[Dress Up]] items. | |||
==Syntax== | ==Syntax== | ||
< | <syntaxhighlight lang="wikitext" copy> | ||
{{ | {{Dress Up Infobox | ||
|name | |name = | ||
|number | |number = | ||
| | |category = | ||
| | |type = | ||
| | |quality = | ||
| | |set = | ||
| | |tags = | ||
| | |description = | ||
| | |source = | ||
|sell = | |||
}} | }} | ||
</ | </syntaxhighlight> | ||
* {{F|name}} – Name of the Dress Up item. | |||
* {{F|number}} – Sorting number for the Dress Up item. | |||
* {{F|category}} – Category of the Dress Up item. | |||
* {{F|type}} – Type of the Dress Up item. | |||
* {{F|quality}} – Quality of the Dress Up item. | |||
* {{F|set}} – Set the Dress Up item is included in. | |||
* {{F|tags}} – Tags of the Dress Up item as a semi-colon separated list. | |||
* {{F|description}} – Description of the Dress Up item. | |||
* {{F|source}} – Source(s) of the Dress Up item as a semi-colon separated list. | |||
* {{F|sell}} – Selling price of the Dress Up 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. | |||
==Example== | ==Example== | ||
{{Example|<nowiki> | |||
{{Dress Up Infobox | {{Dress Up Infobox | ||
|name | |name = Wonky Cat Witch's Hat | ||
|number | |number = 60406 | ||
|category = Outfit | |||
|category | |type = Headwear | ||
|type | |quality = Purple | ||
|quality | |set = Wonky Cat Witch | ||
|set | |tags = Brown; Fabric; Romantic | ||
| | |description = A witch hat that simply refuses to sit straight. Could that be where the magic comes from? | ||
|source | |source = [[Loomix Mart]]; [[Loomix Curated Apparel: I]] | ||
}} | }} | ||
</nowiki>}} | |||
{{Clr}} | |||
==Template Data== | |||
<templatedata> | |||
{ | |||
"params": { | |||
"number": { | |||
"label": "Number", | |||
"description": "Sorting number for the Dress Up item.", | |||
"example": "60406", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"quality": { | |||
"label": "Quality", | |||
"description": "Quality of the Dress Up item.", | |||
"example": "Gray, Purple, Gold", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"name": { | |||
"label": "Name", | |||
"description": "Name of the Dress Up 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.png:Tab 1 name; Image 2.png:Tab 2 name", | |||
"type": "content" | |||
}, | |||
"category": { | |||
"label": "Category", | |||
"description": "Category of the Dress Up item.", | |||
"example": "Outfit", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"type": { | |||
"label": "Type", | |||
"description": "Type of the Dress Up item.", | |||
"example": "Headwear", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"description": { | |||
"label": "Description", | |||
"description": "Description of the Dress Up item.", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"set_link": { | |||
"label": "Set link", | |||
"description": "Appoint another page to be linked for the Dress Up set.", | |||
"type": "string" | |||
}, | |||
"set": { | |||
"label": "Set", | |||
"description": "Set the Dress Up item is included in.", | |||
"example": "Wonky Cat Witch", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"tags": { | |||
"label": "Tags", | |||
"description": "Tags of the Dress Up item as a semi-colon separated list.", | |||
"example": "Brown; Fabric; Romantic", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"sell": { | |||
"label": "Selling price", | |||
"description": "Selling price of the Dress Up item.", | |||
"example": "15", | |||
"type": "number" | |||
}, | |||
"source": { | |||
"label": "Source", | |||
"description": "Source(s) of the Dress Up item as a semi-colon separated list.", | |||
"example": "[[Loomix Mart]]; [[Loomix Curated Apparel: I]]", | |||
"type": "content", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "Template that creates an infobox for Dress Ups.", | |||
"paramOrder": [ | |||
"name", | |||
"number", | |||
"category", | |||
"type", | |||
"quality", | |||
"set", | |||
"set_link", | |||
"tags", | |||
"description", | |||
"source", | |||
"sell", | |||
"image", | |||
"images" | |||
], | |||
"format": "block" | |||
} | |||
</templatedata> | |||