Jump to content

Template:Clothing Infobox/doc: Difference between revisions

From The Petit Planet Wiki
tags -> color, material, style
Updated
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
{{Lua|Infobox}}
{{Lua|Infobox}}
{{CSS|Gadget-Infobox}}
{{CSS|Gadget-Infobox}}
Template that creates an infobox for [[Dress Up]] items.
Template that creates an infobox for [[Clothing]] items.


==Syntax==
==Syntax==
<syntaxhighlight lang="wikitext" copy>
<syntaxhighlight lang="wikitext" copy>
{{Dress Up Infobox
{{Clothing Infobox
|name        =  
|name        =  
|number      =  
|number      =  
Line 16: Line 16:
|material    =  
|material    =  
|style      =  
|style      =  
|nmatch      =
|description =  
|description =  
|source      =  
|source      =  
Line 21: Line 22:
}}
}}
</syntaxhighlight>
</syntaxhighlight>
* {{F|name}} &ndash; Name of the Dress Up item.
* {{F|name}} &ndash; Name of the Clothing item.
* {{F|number}} &ndash; Sorting number for the Dress Up item.
* {{F|number}} &ndash; Sorting number for the Clothing item.
* {{F|category}} &ndash; Category of the Dress Up item.
* {{F|category}} &ndash; Category of the Clothing item.
* {{F|type}} &ndash; Type of the Dress Up item.
* {{F|type}} &ndash; Type of the Clothing item.
* {{F|quality}} &ndash; Quality of the Dress Up item.
* {{F|quality}} &ndash; Quality of the Clothing item.
* {{F|set}} &ndash; Set the Dress Up item is included in.
* {{F|set}} &ndash; Set the Clothing item is included in.
* {{F|color}} &ndash; Color tag(s) of the Dress Up item as a semicolon separated list.
* {{F|color}} &ndash; Color tag(s) of the Clothing item as a semicolon separated list.
* {{F|material}} &ndash; Material tag(s) of the Dress Up 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 Dress Up item as a semicolon separated list.
* {{F|style}} &ndash; Style tag(s) of the Clothing item as a semicolon separated list.
* {{F|description}} &ndash; Description of the Dress Up item.
* {{F|nmatch}} &ndash; Neighbor Match of the Clothing item as a semicolon separated list.
* {{F|source}} &ndash; Source(s) of the Dress Up item as a semicolon separated list.
* {{F|description}} &ndash; Description of the Clothing item.
* {{F|sell}} &ndash; Selling price of the Dress Up 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===
===Other parameters===
Line 41: Line 43:
==Example==
==Example==
{{Example|<nowiki>
{{Example|<nowiki>
{{Dress Up Infobox
{{Clothing Infobox
|name        = Wonky Cat Witch's Hat
|name        = Wonky Cat Witch's Hat
|number      = 60406
|number      = 60406
Line 62: Line 64:
"number": {
"number": {
"label": "Number",
"label": "Number",
"description": "Sorting number for the Dress Up item.",
"description": "Sorting number for the Clothing item.",
"example": "60406",
"example": "60406",
"type": "number",
"type": "number",
Line 69: Line 71:
"quality": {
"quality": {
"label": "Quality",
"label": "Quality",
"description": "Quality of the Dress Up item.",
"description": "Quality of the Clothing item.",
"example": "Gray, Purple, Gold",
"example": "Gray, Purple, Gold",
"type": "string",
"type": "string",
Line 76: Line 78:
"name": {
"name": {
"label": "Name",
"label": "Name",
"description": "Name of the Dress Up item.",
"description": "Name of the Clothing item.",
"example": "Wonky Cat Witch's Hat",
"example": "Wonky Cat Witch's Hat",
"type": "string",
"type": "string",
Line 96: Line 98:
"category": {
"category": {
"label": "Category",
"label": "Category",
"description": "Category of the Dress Up item.",
"description": "Category of the Clothing item.",
"example": "Outfit",
"example": "Outfit",
"type": "string",
"type": "string",
Line 103: Line 105:
"type": {
"type": {
"label": "Type",
"label": "Type",
"description": "Type of the Dress Up item.",
"description": "Type of the Clothing item.",
"example": "Headwear",
"example": "Headwear",
"type": "string",
"type": "string",
Line 110: Line 112:
"description": {
"description": {
"label": "Description",
"label": "Description",
"description": "Description of the Dress Up item.",
"description": "Description of the Clothing item.",
"type": "content",
"type": "content",
"suggested": true
"suggested": true
Line 116: Line 118:
"set_link": {
"set_link": {
"label": "Set link",
"label": "Set link",
"description": "Appoint another page to be linked for the Dress Up set.",
"description": "Appoint another page to be linked for the Clothing set.",
"type": "string"
"type": "string"
},
},
"set": {
"set": {
"label": "Set",
"label": "Set",
"description": "Set the Dress Up item is included in.",
"description": "Set the Clothing item is included in.",
"example": "Wonky Cat Witch",
"example": "Wonky Cat Witch",
"type": "string",
"type": "string",
Line 128: Line 130:
"color": {
"color": {
"label": "Color",
"label": "Color",
"description": "Color tag(s) of the Dress Up item as a semicolon separated list.",
"description": "Color tag(s) of the Clothing item as a semicolon separated list.",
"example": "Brown; White; Pink",
"example": "Brown; White; Pink",
"type": "content",
"type": "content",
Line 135: Line 137:
"material": {
"material": {
"label": "Material",
"label": "Material",
"description": "Material tag(s) of the Dress Up item as a semicolon separated list.",
"description": "Material tag(s) of the Clothing item as a semicolon separated list.",
"example": "Fabric; Plush; Metal",
"example": "Fabric; Plush; Metal",
"type": "content",
"type": "content",
Line 142: Line 144:
"style": {
"style": {
"label": "Style",
"label": "Style",
"description": "Style tag(s) of the Dress Up item as a semicolon separated list.",
"description": "Style tag(s) of the Clothing item as a semicolon separated list.",
"example": "Cool; Sporty; Artistic",
"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",
"type": "content",
"suggested": true
"suggested": true
Line 149: Line 158:
"sell": {
"sell": {
"label": "Selling price",
"label": "Selling price",
"description": "Selling price of the Dress Up item.",
"description": "Selling price of the Clothing item.",
"example": "15",
"example": "15",
"type": "number"
"type": "number"
Line 155: Line 164:
"source": {
"source": {
"label": "Source",
"label": "Source",
"description": "Source(s) of the Dress Up item as a semicolon separated list.",
"description": "Source(s) of the Clothing item as a semicolon separated list.",
"example": "[[Loomix Mart]]; [[Loomix Curated Apparel: I]]",
"example": "[[Loomix Mart]]; [[Loomix Curated Apparel: I]]",
"type": "content",
"type": "content",
Line 161: Line 170:
}
}
},
},
"description": "Template that creates an infobox for Dress Ups.",
"description": "Template that creates an infobox for Clothings.",
"paramOrder": [
"paramOrder": [
"name",
"name",
Line 173: Line 182:
"material",
"material",
"style",
"style",
"nmatch",
"description",
"description",
"source",
"source",

Latest revision as of 21:03, 26 May 2026

This is the documentation page for Clothing Infobox.
It contains usage information, categories, and other content not part of the original template page.
This template uses Module:Infobox, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Infobox.css.

Template that creates an infobox for Clothing items.

Syntax

[edit source]
{{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

[edit source]
  • 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

[edit source]

{{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]]
}}
Wonky Cat Witch's Hat
Collected
Mark as collected
Category
Quality
Purple
Details
Color
Material
Style
A witch hat that simply refuses to sit straight. Could that be where the magic comes from?

Template Data

[edit source]

Template that creates an infobox for Clothings.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

Name of the Clothing item.

Example
Wonky Cat Witch's Hat
Stringrequired
Numbernumber

Sorting number for the Clothing item.

Example
60406
Numbersuggested
Categorycategory

Category of the Clothing item.

Example
Outfit
Stringsuggested
Typetype

Type of the Clothing item.

Example
Headwear
Stringsuggested
Qualityquality

Quality of the Clothing item.

Example
Gray, Purple, Gold
Stringsuggested
Setset

Set the Clothing item is included in.

Example
Wonky Cat Witch
Stringsuggested
Set linkset_link

Appoint another page to be linked for the Clothing set.

Stringoptional
Colorcolor

Color tag(s) of the Clothing item as a semicolon separated list.

Example
Brown; White; Pink
Contentsuggested
Materialmaterial

Material tag(s) of the Clothing item as a semicolon separated list.

Example
Fabric; Plush; Metal
Contentsuggested
Stylestyle

Style tag(s) of the Clothing item as a semicolon separated list.

Example
Cool; Sporty; Artistic
Contentsuggested
Neighbor matchnmatch

Neighbor Match of the Clothing item as a semicolon separated list.

Example
One-Size
Contentsuggested
Descriptiondescription

Description of the Clothing item.

Contentsuggested
Sourcesource

Source(s) of the Clothing item as a semicolon separated list.

Example
[[Loomix Mart]]; [[Loomix Curated Apparel: I]]
Contentsuggested
Selling pricesell

Selling price of the Clothing item.

Example
15
Numberoptional
Imageimage

Override the default image with a single file.

Default
<name> Icon.png
Example
Unknown Icon.png
Fileoptional
Imagesimages

Override the default image with multiple files and tabs.

Example
Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name
Contentoptional