Difference between revisions of "Template:Item"
(Added data field) |
(Oups, let's fix this, brackets are hard apparently :d) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{infobox common | + | <includeonly> |
+ | {{infobox common | ||
| title = {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | | title = {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | ||
| imagearea = {{#if: {{{image|}}} | {{{image}}} | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png }} | | imagearea = {{#if: {{{image|}}} | {{{image}}} | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png }} | ||
Line 7: | Line 8: | ||
{{#if: {{{buoy|}}} | {{infobox row|label=[[Hardcore Buoy|Buoyancy]]|field={{{buoy}}} }} }} | {{#if: {{{buoy|}}} | {{infobox row|label=[[Hardcore Buoy|Buoyancy]]|field={{{buoy}}} }} }} | ||
{{#if: {{{filters|}}} | {{infobox row|label=[[Hopper#Filtering|Filtering]]|field={{{filters}}} }} }} | {{#if: {{{filters|}}} | {{infobox row|label=[[Hopper#Filtering|Filtering]]|field={{{filters}}} }} }} | ||
− | |||
{{#if: {{{multipledata|}}} | {{#if: {{{multipledata|}}} | ||
| {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} | | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} | ||
| {{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{data value|{{{data}}} }} }} }} | | {{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{data value|{{{data}}} }} }} }} | ||
}} | }} | ||
+ | }} | ||
+ | {{#if:{{{type|}}}|[[Category:{{{type}}}]]}} | ||
</includeonly> | </includeonly> | ||
Revision as of 20:52, 16 June 2018
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. |