Jump to content

Template:Furniture Infobox/doc: Difference between revisions

From The Petit Planet Wiki
m Changed template data format
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 41: Line 41:


===Other parameters===
===Other parameters===
* {{F|image}} &ndash; Override the default image with a single file. Default: {{F|<name> Icon.png}}.
* {{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.
* {{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}}.
** Format: {{F|Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name; ... ; Image N.ext:Tab N name}}.
Line 56: Line 56:
|size        = 2.0 × 1.0
|size        = 2.0 × 1.0
|color      = Colorful
|color      = Colorful
|material    = Fabric; Plush
|material    = Fabric; Yarn; Stone
|sell        = 510
|sell        = 510
|description = Description
|description = Description
Line 76: Line 76:
</nowiki>}}
</nowiki>}}
{{Clr}}
{{Clr}}
==Template Data==
==Template Data==
<templatedata>
<templatedata>
Line 154: Line 155:
"source": {
"source": {
"label": "Source",
"label": "Source",
"description": "Source(s) of the Furniture item as a semicolon separated list.",
"description": "Source(s) of the Furniture item and/or its Inspo Card as a semicolon separated list.",
"example": "[[Loomix Mart]]; [[Loomix Curated Apparel: I]]",
"example": "[[Loomix Mart]]; [[Loomix Curated Apparel: I]]; Inspo Card: Available by Default",
"type": "content",
"type": "content",
"suggested": true
"suggested": true
Line 185: Line 186:
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
"inspo": {
"label": "Inspo",
"description": "Source of the Furniture item's Inspo Card.",
"example": "Available by default",
"type": "string"
},
},
"in_area": {
"in_area": {
Line 222: Line 217:
"description",
"description",
"source",
"source",
"inspo",
"sell",
"sell",
"image",
"image",
"images"
"images"
],
],
"format": "{{_\n|_______________ = _\n}}\n"
"format": "{{_\n|___________ = _\n}}\n"
}
}
</templatedata>
</templatedata>

Latest revision as of 08:59, 25 October 2026

This is the documentation page for Furniture 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 Furniture items.

Syntax

[edit source]
{{Furniture Infobox
|name        = 
|number      = 
|category    = 
|type        = 
|quality     = 
|set         = 
|size        = <!--a.b × c.d-->
|in_area     = <!--a.b × c.d-->
|out_area    = <!--a.b × c.d-->
|color       = 
|material    = 
|sell        = 
|description = 
|source      = 
|inspo       = 
}}
  • name – Name of the Furniture item.
  • number – Zero-padded archive number of the Furniture item.
  • category – Category of the Furniture item.
  • type – Type of the Furniture item.
  • quality – Quality of the Furniture item.
  • set – Set the Furniture item is included in.
  • size – Size of the Furniture item in the format: a.b × c.d.
  • in_area – Indoor area of the Furniture item in the format: a.b × c.d.
  • out_area – Outdoor area of the Furniture item in the format: a.b × c.d.
  • color – Color(s) the Furniture item is available in as a semicolon separated list.
  • material – Material(s) of the Furniture item as a semicolon separated list.
  • sell – Selling price of the Furniture item.
  • description – Description of the Furniture item.
  • source – Source(s) of the Furniture item as a semicolon separated list.
  • inspo – Source of the Furniture item's Inspo Card.

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.

Examples

[edit source]

{{Furniture Infobox
|name        = March Plum Rug
|number      = 003
|category    = Decorations
|type        = Rugs
|quality     = Green
|set         = Cozy Home
|size        = 2.0 × 1.0
|color       = Colorful
|material    = Fabric; Yarn; Stone
|sell        = 510
|description = Description
|source      = Crafting
|inspo       = Available by default
}}
003March Plum Rug
Collected
Mark as collected
Category
Type
Quality
Green
Size
2.0 × 1.0
Collection Score
+10
Color
Materials
Selling Price
Dough Dough ×510
How to Obtain
Source
Crafting
Inspo Card
Available by default
Description

{{Furniture Infobox
|name        = Charming Cottage
|images      = House Charming Cottage (Blue).png:Blue; House Charming Cottage (Yellow).png:Yellow; House Charming Cottage (Brown).png:Brown
|category    = My House
|in_area     = 10.0 × 10.0
|out_area    = 7.0 × 4.0
|source      = [[Loomix Homes]]
|description = A beautifully crafted home by Loomix Co. Its expanded space leaves room for more ideas to take shape.
}}
Charming Cottage
Blue
Yellow
Brown
Collected
Mark as collected
Category
Indoor Area
10.0 × 10.0
Outdoor Area
7.0 × 4.0
How to Obtain
A beautifully crafted home by Loomix Co. Its expanded space leaves room for more ideas to take shape.

Template Data

[edit source]

Template that creates an infobox for Furnitures.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

Name of the Furniture item.

Example
March Plum Rug
Stringrequired
Numbernumber

Zero-padded archive number of the Furniture item.

Example
001, 002, 003
Numbersuggested
Categorycategory

Category of the Furniture item.

Example
Decorations
Stringsuggested
Typetype

Type of the Furniture item.

Example
Rugs
Stringsuggested
Qualityquality

Quality of the Furniture item.

Example
Gray, Purple, Gold
Stringsuggested
Setset

Set the Furniture item is included in.

Example
Cozy Home
Stringsuggested
Set linkset_link

Appoint another page to be linked for the Furniture set.

Stringoptional
Sizesize

Size of the Furniture item in the format: a.b × c.d.

Example
2.0 × 1.0
Stringsuggested
Indoor areain_area

Indoor area of the Furniture item in the format: a.b × c.d.

Example
10.0 × 10.0
Stringoptional
Outdoor areaout_area

Outdoor area of the Furniture item in the format: a.b × c.d.

Example
10.0 × 10.0
Stringoptional
Scorescore

Purple quality Folio Score for the Furniture item.

Default
20
Numberoptional
Colorcolor

Color(s) the Furniture item is available in as a semicolon separated list.

Example
Red; Orange; Yellow
Stringsuggested
Materialmaterial

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

Example
Fabric; Plush
Stringsuggested
Descriptiondescription

Description of the Furniture item.

Contentsuggested
Sourcesource

Source(s) of the Furniture item and/or its Inspo Card as a semicolon separated list.

Example
[[Loomix Mart]]; [[Loomix Curated Apparel: I]]; Inspo Card: Available by Default
Contentsuggested
Selling pricesell

Selling price of the Furniture 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