Jump to content

Template:Item Infobox/doc: Difference between revisions

From The Petit Planet Wiki
m Changed template data format
mNo edit summary
 
Line 25: Line 25:


===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 141: Line 141:
"images"
"images"
],
],
"format": "{{_\n|_______________ = _\n}}\n"
"format": "{{_\n|___________ = _\n}}\n"
}
}
</templatedata>
</templatedata>

Latest revision as of 05:17, 19 May 2026

This is the documentation page for Item 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 Items.

Syntax

[edit source]
{{Item Infobox
|name        = 
|category    = 
|type        = 
|quality     = 
|sell        = 
|description = 
|source      = 
}}
  • name – Name of the item.
  • category – Category of the item.
  • type – Type of the item.
  • quality – Quality of the item.
  • sell – Selling price of the item.
  • description – Description of the item.
  • source – Source(s) of the item as a semicolon separated list.

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]

{{Item Infobox
|name        = Wildgrass
|category    = Materials
|type        = Wildgrass
|quality     = Gray
|sell        = 1
|description = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|source      = Example
}}
Wildgrass
Category
Quality
Gray
Selling Price
Dough Dough ×1
How to Obtain
Source
Example
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

{{Item Infobox
|name        = Example
|images      = Hexia Meadows Luca Fruit Icon.png:Icon; Hexia Meadows Preview.png:Preview
|category    = Example
|type        = Example
|quality     = Green
|sell        = 100
|description = Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|source      = Example; Example; Example
}}
Example
Icon
Preview
Category
Type
Quality
Green
Selling Price
Dough Dough ×100
How to Obtain
Sources
  • Example
  • Example
  • Example
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Template Data

[edit source]

Template that creates an infobox for items.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

Name of the item.

Example
Wildgrass
Stringrequired
Numbernumber

Sorting number for the item.

Numbersuggested
Categorycategory

Category of the item.

Example
Materials
Stringsuggested
Typetype

Type of the item.

Example
Grass Color
Stringoptional
Qualityquality

Quality of the item.

Example
Gray, Purple, Gold
Stringsuggested
Selling pricesell price

Selling price of the item.

Example
1, 10, 20
Numberoptional
Descriptiondescription

Description of the item.

Contentsuggested
Sourcesource

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

Example
Source 1; Source 2
Contentsuggested
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