Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
If you make an edit, a temporary account will be created for you.

Template:Clothing Infobox/doc: Difference between revisions

Template page
mNo edit summary
Updated
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Documentation/Header}}
{{Documentation/Header}}
 
{{Lua|Infobox}}
Infobox for Dress Up items.
{{CSS|Gadget-Infobox}}
Template that creates an infobox for [[Clothing]] items.


==Syntax==
==Syntax==
<pre>
<syntaxhighlight lang="wikitext" copy>
{{Outfit Infobox
{{Clothing Infobox
|title       = Page Title
|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)
|color      =
|sellPrice    = Sell Price at Glenn's
|material    =
|source      = Source of Item
|style      =
|nmatch     =  
|description =  
|source      =  
|sell        =  
}}
}}
</pre>
</syntaxhighlight>
* {{F|name}} &ndash; Name of the Clothing item.
* {{F|number}} &ndash; Sorting number for the Clothing item.
* {{F|category}} &ndash; Category of the Clothing item.
* {{F|type}} &ndash; Type of the Clothing item.
* {{F|quality}} &ndash; Quality of the Clothing item.
* {{F|set}} &ndash; Set the Clothing item is included in.
* {{F|color}} &ndash; Color tag(s) of the Clothing item as a semicolon separated list.
* {{F|material}} &ndash; Material tag(s) of the Clothing item as a semicolon separated list.
* {{F|style}} &ndash; Style tag(s) of the Clothing item as a semicolon separated list.
* {{F|nmatch}} &ndash; Neighbor Match of the Clothing item as a semicolon separated list.
* {{F|description}} &ndash; Description of the Clothing item.
* {{F|source}} &ndash; Source(s) of the Clothing item as a semicolon separated list.
* {{F|sell}} &ndash; Selling price of the Clothing 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.
** Format: {{F|Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name; ... ; Image N.ext:Tab N name}}.


==Example==
==Example==
{{Dress Up Infobox
{{Example|<nowiki>
|title       = Handcrafted Tree Sapling Hat
{{Clothing Infobox
|number       = 001
|name       = Wonky Cat Witch's Hat
|image        = Handcrafted Tree Sapling Hat Icon.png
|number     = 60406
|category     = Outfit
|category   = Outfit
|type         = Headwear
|type       = Headwear
|quality     = Gray
|quality     = Purple
|set         = None
|set         = Wonky Cat Witch
|sellPrice   = 10
|color      = Brown
|source       = Main Quest
|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>