Template:Infobox item: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
m Changing to the minepedia title colour scheme.
+ Stackable
Line 9: Line 9:
{{Block/row2|label=Type|field={{{type|?}}}}}
{{Block/row2|label=Type|field={{{type|?}}}}}
{{Block/row|label=Durability|field={{{durability|None}}}}}
{{Block/row|label=Durability|field={{{durability|None}}}}}
{{Block/row2|label=Stackable|field={{{stackable|?}}}}}


{{Block/row2|label=[[Data_Values|Data value]]{{#if:{{{data2|}}}|s|}}|field={{{data|{{#if:{{{datadec|}}}|<!--
{{Block/row|label=[[Data_Values|Data value]]{{#if:{{{data2|}}}|s|}}|field={{{data|{{#if:{{{datadec|}}}|<!--


---->|{{#if:{{{data1name|}}}|'''{{{data1name|}}}'''<br />| }}<!--
---->|{{#if:{{{data1name|}}}|'''{{{data1name|}}}'''<br />| }}<!--
Line 31: Line 32:
|type=
|type=
|durability=
|durability=
|stackable=
|data1name=
|data1name=
|data1=
|data1=
Line 51: Line 53:
|-
|-
| <code>durability</code> || How durable the item is || None
| <code>durability</code> || How durable the item is || None
|-
| <code>stackable</code> || Stackable || ?
|-
|-
| <code>data1name</code> || If using multiple data values, specify a name || ''None''
| <code>data1name</code> || If using multiple data values, specify a name || ''None''

Revision as of 00:38, 23 January 2011

Template:Block/row2Template:Block/rowTemplate:Block/row2Template:Block/row
Infobox item
File:No image.png

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.

{{Useable Items
|image=
|invimage=
|type=
|durability=
|stackable=
|data1name=
|data1=
|data2name=
|data2=
}}
Parameter Function Default value
name Only needed to change the name from 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