Difference between revisions of "Template:Item"
(fixed animation capability (I think)) |
(added second image capability) |
||
Line 6: | Line 6: | ||
| [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | No image.svg}} }}|link=File:{{#if: {{{image|}}} | {{{image}}} | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png }}|center]] | | [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | No image.svg}} }}|link=File:{{#if: {{{image|}}} | {{{image}}} | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png }}|center]] | ||
}} | }} | ||
+ | | imagearea2 = {{#if:{{{image2|}}} | {{#if: {{#pos: {{{image2}}} | ; }} | ||
+ | | {{animate|{{{image2}}}|return=[[File:{1}|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}}} | ? }} }} |
Revision as of 23:04, 13 January 2019
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. |