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==
<pre>
<syntaxhighlight lang="wikitext" copy>
{{Outfit Infobox
{{Dress Up Infobox
|name         = Page Name
|name       =  
|number       = Sorting Number
|number     =
|image       = [Image].png
|category    =  
|category     = Outfit/Styling
|type       =  
|type         = Headwear/Skin Tone
|quality     =  
|quality      = Quality Color
|set         =  
|set          = Set (If Any)
|tags        =  
|sellPrice    = Sell Price at Glenn's
|description =  
|source      = Source of Item
|source      =  
|sell        =  
}}
}}
</pre>
</syntaxhighlight>
* {{F|name}} &ndash; Name of the Dress Up item.
* {{F|number}} &ndash; Sorting number for the Dress Up item.
* {{F|category}} &ndash; Category of the Dress Up item.
* {{F|type}} &ndash; Type of the Dress Up item.
* {{F|quality}} &ndash; Quality of the Dress Up item.
* {{F|set}} &ndash; Set the Dress Up item is included in.
* {{F|tags}} &ndash; Tags of the Dress Up item as a semi-colon separated list.
* {{F|description}} &ndash; Description of the Dress Up item.
* {{F|source}} &ndash; Source(s) of the Dress Up item as a semi-colon separated list.
* {{F|sell}} &ndash; Selling price of the Dress Up item.
 
===Other parameters===
* {{F|image}} &ndash; Override the default image with a single file. Default: {{F|<name> Icon.png}}
* {{F|images}} &ndash; Override the default image with multiple files and tabs.


==Example==
==Example==
{{Example|<nowiki>
{{Dress Up Infobox
{{Dress Up Infobox
|name         = Handcrafted Tree Sapling Hat
|name       = Wonky Cat Witch's Hat
|number       = 001
|number     = 60406
|image        = Handcrafted Tree Sapling Hat Icon.png
|category   = Outfit
|category     = Outfit
|type       = Headwear
|type         = Headwear
|quality     = Purple
|quality     = Gray
|set         = Wonky Cat Witch
|set         = None
|tags        = Brown; Fabric; Romantic
|sellPrice    = 10
|description = A witch hat that simply refuses to sit straight. Could that be where the magic comes from?
|source       = Main Quest
|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>