Jump to content

Template:Clothing Infobox

From The Petit Planet Wiki
Revision as of 10:57, 16 November 2025 by Eleiyas (talk | contribs)
Template documentation
Note: parts of or the entire template might not be visible without values provided.
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

{{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

  • 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

{{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]]
}}

<infobox>

 <title source="name">
 	<format>60406 Wonky Cat Witch's Hat</format>
 </title>
 <image source="image">
</image> <group layout="horizontal"> <label>Category</label> <format>Outfit</format> <label>Type</label> <format>Headwear</format> </group> <label>Quality</label> <format>Purple</format> <label>Set</label> <format>Wonky Cat Witch</format> <label>Tags</label> <format>
  • {{{tags}}}
</format>
<label>Source</label> <format> </format> <label>Selling Price</label> <format>Dough Dough ×{{{sell}}}</format> </infobox>

Template Data

Template that creates an infobox for Clothings.

Template parameters[Edit template data]

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