Template:Infobox item: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Allow "name" parameter to be defined (for multi-item pages like Music Disc)
mNo edit summary
Line 25: Line 25:
This template provides a uniform design for useable item pages. When an item restores health, it is recommended to use [[Template:Food]] instead. <pre>
This template provides a uniform design for useable item pages. When an item restores health, it is recommended to use [[Template:Food]] instead. <pre>
{{Item
{{Item
|name=
|image=
|image=
|invimage=
|invimage=
Line 41: Line 42:
! Default value
! Default value
|-
|-
| <code>name</code> || OPTIONAL VALUE to use another name than the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code>
| <code>name</code> || Optional value to use a different name instead of the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code>
|-
|-
| <code>image</code> || Image of the item (Should be 150x150px) || [[:File:No image.png|No image.png]]
| <code>image</code> || Image of the item (Should be 150x150px) || [[:File:No image.png|No image.png]]

Revision as of 02:22, 25 January 2011

Template:Infobox common

Usage

These usage notes will not be included in articles bearing this template.

This template provides a uniform design for useable item pages. When an item restores health, it is recommended to use Template:Food instead.

{{Item
|name=
|image=
|invimage=
|type=
|durability=
|stackable=
|data1name=
|data1=
|data2name=
|data2=
}}
Parameter Function Default value
name Optional value to use a different name instead of the page name {{BASEPAGENAME}}
image Image of the item (Should be 150x150px) No image.png
invimage Image for object in inventory (Should be 36x36px) None
type Type (Weapon, Ranged Weapon, Craftable Item, Tool, etc. ) ?
durability How durable the item is None
stackable Stackable ?
data1name If using multiple data values, specify a name None
data1 Decimal Data Value 1 00
data2name Data 2's name None
data2 Decimal Data Value 2 None