Home
Random
Log in
Settings
About the Petit Planet Wiki
Search
Editing
Template
:
Item Infobox/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation/Header}} {{Lua|Infobox}} {{CSS|Gadget-Infobox}} Template that creates an infobox for [[Item]]s. ==Syntax== <syntaxhighlight lang="wikitext" copy> {{Item Infobox |name = |category = |type = |quality = |sell = |description = |source = }} </syntaxhighlight> * {{F|name}} – Name of the item. * {{F|category}} – Category of the item. * {{F|type}} – Type of the item. * {{F|quality}} – Quality of the item. * {{F|sell}} – Selling price of the item. * {{F|description}} – Description of the item. * {{F|source}} – Source(s) of the item as a semicolon separated list. ===Other parameters=== * {{F|image}} – Override the default image with a single file. Default: {{F|((name)) Icon.png}}. * {{F|images}} – 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|<nowiki> {{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 }} </nowiki>}} {{Clr}} {{Example|<nowiki> {{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 }} </nowiki>}} {{Clr}} ==Template Data== <templatedata> { "params": { "number": { "label": "Number", "description": "Sorting number for the item.", "type": "number", "suggested": true }, "quality": { "label": "Quality", "description": "Quality of the item.", "example": "Gray, Purple, Gold", "type": "string", "suggested": true }, "name": { "label": "Name", "description": "Name of the item.", "example": "Wildgrass", "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 item.", "example": "Materials", "type": "string", "suggested": true }, "type": { "label": "Type", "description": "Type of the item.", "example": "Grass Color", "type": "string" }, "sell": { "aliases": [ "price" ], "label": "Selling price", "description": "Selling price of the item.", "example": "1, 10, 20", "type": "number" }, "description": { "label": "Description", "description": "Description of the item.", "type": "content", "suggested": true }, "source": { "label": "Source", "description": "Source(s) of the item as a semicolon separated list.", "example": "Source 1; Source 2", "type": "content", "suggested": true } }, "description": "Template that creates an infobox for items.", "paramOrder": [ "name", "number", "category", "type", "quality", "sell", "description", "source", "image", "images" ], "format": "{{_\n|___________ = _\n}}\n" } </templatedata>
Summary:
Please note that all contributions to The Petit Planet Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Petit Planet Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Below are commonly used wikitext from
MediaWiki:Edittools
. Click on any to insert them in the edit box.
File Pages
==Summary==
==Licensing==
{{Fairuse}}
{{File|}}
Dynamic Page List
¦
²
«
»
²{¦}²
«»
«/»
«!----»
Array in DPL
¹
^2{
}^2
^2{¹}^2
Parser Functions
{{#if:||}}
{{#if:<condition>|<result if true>|<result if false>}}
{{#ifeq:|||}}
{{#ifeq:<text1>|<text2>|<result if text1=text2>|<result if text1≠text2>}}
{{#expr:}}
{{#expr:<mathematical expression>}}
{{#switch:||#default=}}
{{#switch:<text1>|<text2>=<result if text1=text2>|<text3>=<result if text1=text3>|#default=<result if no valid match>}}
{{#replace:||}}
{{#replace:<text1>|<plain text to find in text1>|<plain text to insert in place of the text found>}}
{{#titleparts:}}
{{#replace:<page name>}}
{{#tag:|}}
{{#tag:<name of html tag>|<content inside html tag>}}
Markup
{{}}
|
[]
[[]]
[[Category:]]
#REDIRECT [[]] [[Category:Redirect Pages]]
<code></code>
<includeonly></includeonly>
<noinclude></noinclude>
<nowiki></nowiki>
<!---->
<br>
§
Notices
{{Stub|}}
{{Stub Dialogue}}
{{Upcoming}}
{{Under Construction}}
{{Placeholder|}}
Magic Words
{{!}}
{{formatnum:}}
{{lc:}}
{{uc:}}
{{PAGENAME}}
{{FULLPAGENAME}}
{{ROOTPAGENAME}}
{{BASEPAGENAME}}
{{SUBPAGENAME}}
{{DISPLAYTITLE:|noreplace}}
__TOC__
__NOTOC__
__EXPECTUNUSEDCATEGORY__
__HIDDENCAT__
HTML Entities
—
,
­
Pages included on this page:
Template:Array
(
edit
)
Template:CSS
(
edit
)
Template:Clr
(
edit
)
Template:Description
(
edit
)
Template:Documentation/Header
(
edit
)
Template:Documentation/styles.css
(
edit
)
Template:Example
(
edit
)
Template:F
(
edit
)
Template:Item
(
edit
)
Template:Item Infobox
(
edit
)
Template:List
(
edit
)
Template:Lua
(
edit
)
Template:MessageBox
(
edit
)
Template:Namespace
(
edit
)
Module:Arguments
(
edit
)
Module:Arguments/i18n
(
edit
)
Module:Array
(
edit
)
Module:Bucket
(
edit
)
Module:BucketPut
(
edit
)
Module:Common/i18n
(
edit
)
Module:Config
(
edit
)
Module:Documentation
(
edit
)
Module:Documentation/config
(
edit
)
Module:Documentation/i18n
(
edit
)
Module:Entrypoint
(
edit
)
Module:Example
(
edit
)
Module:Exists
(
edit
)
Module:Fallbacklist
(
edit
)
Module:Feature
(
edit
)
Module:Formatting
(
edit
)
Module:I18n
(
edit
)
Module:Infobox
(
edit
)
Module:Item
(
edit
)
Module:Item/Invert
(
edit
)
Module:Languages
(
edit
)
Module:Mbox
(
edit
)
Module:Mbox/i18n
(
edit
)
Module:Namespace detect
(
edit
)
Module:Namespace detect/config
(
edit
)
Module:Namespace detect/data
(
edit
)
Module:TableTools
(
edit
)
Module:Yesno
(
edit
)
Bucket:Items
(
view source
)