Difference between revisions of "Template:Item"
(added extra infobox rows) |
|||
Line 10: | Line 10: | ||
| [[File:{{{image2}}}|link=File:{{{image2}}}|center]] | | [[File:{{{image2}}}|link=File:{{{image2}}}|center]] | ||
}}}} | }}}} | ||
− | | rows = {{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }} | + | | rows = |
+ | {{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }} | ||
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? }} }} | {{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? }} }} | ||
{{infobox row|label=[[Version history|First Appearance]]|field={{{firstver}}}|style={{#if: {{{firstver|}}} | |style="display:none;" }} }} | {{infobox row|label=[[Version history|First Appearance]]|field={{{firstver}}}|style={{#if: {{{firstver|}}} | |style="display:none;" }} }} | ||
{{infobox row|label=[[Hardcore Buoy|Buoyancy]]|field={{{buoy}}}|style={{#if: {{{buoy|}}} | |style="display:none;" }} }} | {{infobox row|label=[[Hardcore Buoy|Buoyancy]]|field={{{buoy}}}|style={{#if: {{{buoy|}}} | |style="display:none;" }} }} | ||
{{infobox row|label=[[Hopper#Filtering|Filtering]]|field={{{filters}}}|style={{#if: {{{filters|}}} | |style="display:none;" }} }} | {{infobox row|label=[[Hopper#Filtering|Filtering]]|field={{{filters}}}|style={{#if: {{{filters|}}} | |style="display:none;" }} }} | ||
− | {{#if: {{{ | + | {{infobox row|label=Protection|field={{{protection}}} x [[File:ArmorFull.png|16px]]|style={{#if: {{{protection|}}} | |style="display:none;" }} }} |
− | + | {{infobox row|label=Durability|field={{{durability}}}|style={{#if: {{{durability|}}} | |style="display:none;" }} }} | |
− | + | {{infobox row|label=Data Values|field={{{data}}}|style={{#if: {{{data|}}} | |style="display:none;" }} }} | |
− | }} | ||
}} | }} | ||
+ | |||
{{#if:{{{type|}}}|[[Category:{{{type}}}]]}} | {{#if:{{{type|}}}|[[Category:{{{type}}}]]}} | ||
+ | |||
</includeonly> | </includeonly> | ||
Revision as of 15:04, 30 August 2020
This template provides a uniform design for usable item pages.
{{Item |title= |image= |type= |stackable= |firstver= |data= }}
Please note that if the item has multiple data values, use |multipledata=
instead. See below:
Parameter | Function | Default/Example value |
---|---|---|
title |
Optional value to use a different title instead of the page name | {{BASEPAGENAME}}
|
image |
Image of the block (should be approx. 100x100px) | {{{title}}}.png
|
type |
Type (Weapon, Ranged Weapon, Craftable Item, Tool, etc. ) | ? |
stackable |
Stackable | ? |
firstver |
First version that it was seen in (e.g. 2.99, 3.40). | None |
data |
multipledata= instead for multiple data values. |