Difference between revisions of "Template:Item"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
! colspan="2" class="infoboxFirstHeader" | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | ! colspan="2" class="infoboxFirstHeader" | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | ||
|- class="infoboxBlockImage" | |- class="infoboxBlockImage" | ||
| colspan="2" | {{#ifeq:{{{image|}}}|None||[[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}_ig.png | {{BASEPAGENAME}}_ig.png | Picture na.png{{!}}link=File:{{BASEPAGENAME}}.png}} }}|148px|center]]}} | | colspan="2" | ||
| {{#ifeq:{{{image|}}}|None||[[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}_ig.png | {{BASEPAGENAME}}_ig.png | Picture na.png{{!}}link=File:{{BASEPAGENAME}}.png}} }}|148px|center]]}} | |||
|- | |- | ||
| colspan="2" | <div style="position: relative; width: 36px; display: inline-block; padding-left: 2px; padding-right: 2px; padding-bottom: 1px"> | | colspan="2" | ||
[[File:Grid layout None (small).png|link=|alt=]]{{#if:{{{invimage|}}}|<span style="left:3px; position:absolute; top:2px; z-index:1;">{{Gc|{{ucfirst:{{{invimage}}}}}}}</span>}} | | <div style="position: relative; width: 36px; display: inline-block; padding-left: 2px; padding-right: 2px; padding-bottom: 1px"> | ||
[[File:Grid layout None (small).png|link=|alt=]]{{#if:{{{invimage|}}} | |||
</div>|}</includeonly><noinclude> | |<span style="left:3px; position:absolute; top:2px; z-index:1;">{{Gc|{{ucfirst:{{{invimage}}}}}}}</span>}}</div> | ||
|} | |||
</includeonly><noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 10:48, 9 April 2015
Template:Item is a common infoblock template for items, not blocks
Parameters[edit]
Item | |
---|---|
colspan="2" | |
colspan="2" | ![]() |
Copy this into your page and fill out as needed:
{{Item {{Infobox |title= |image= |invimage= |invimage2= |invimage3= |invimage4= |armorrating= |armortoughness= |damage= |durability= |mininglevel= |stackable= |danger= |protection= |storageslots= |lstorage= |upgrades= |tier= |prevtier= |nexttier= |eu_use= |eu_use2= |storage= |eu_produce= |maxout= |uu= |firstappearance= |lastappearance= |id= }}
Parameters with defaults as None aren't supposed to show when the Item's Infobox is on a page!
Parameter | Function | Default value |
---|---|---|
title |
Only needed to change the title from the page name | {{BASEPAGENAME}}
|
image |
Big image of the block (it's scaled to 148px) | {{BASEPAGENAME}}_ig.png if it exists, otherwise Picture na.png (linking to the page where to upload the missing image)
|
invimage |
Image for object in inventory. | {{Gc|{{BASEPAGENAME}}}} if it exists, otherwise an empty inventory square
|
invimage2 |
2nd Image for object in inventory. | None |
invimage3 |
3rd Image for object in inventory. | None |
invimage4 |
4th Image for object in inventory. | None |
armorrating |
Armour protectiveness | None |
armortoughness |
Armour toughness | None |
damage |
Damage (for weapons) | None |
durability |
Durability (for tools) | None |
mininglevel |
Tool mining level | None |
stackable |
If the object is stackable | Yes (64)
|
danger |
Block/Item danger (ie radiation) | None |
protection |
Protection needed (from danger) | None |
storageslots |
Number of item storage slots | None |
lstorage |
Liquid storage (for tanks) | None |
upgrades |
Upgrades, use {{Gc}} for each block/item |
None |
tier |
Tier (1, 2, 3, 4, 5, LV, MV, HV, EV, IV) | None |
prevtier |
Previous tier item, use {{Gc}} |
None |
nexttier |
Next tier item, use {{Gc}} |
None |
eu_use |
EU use per tick | None |
eu_use2 |
Additional detail line | None |
storage |
How much EU that be can stored | None |
eu_produce |
How much EU is produced | None |
maxout |
Maximum EU output | None |
uu , uu_cost |
UU needed to replicate item Set to either no, n/a, or none if it can't be replicated |
None |
firstappearance |
Version object was added | None |
lastappearance |
Last version before object was removed | None |
id |
The block/item ID | None |
Example[edit]
Code | Result | ||||||
---|---|---|---|---|---|---|---|
{{Item |title=Weird Jetpack |image=Jetpack_ig.png |invimage=Electric Jetpack |invimage2=BatPack |invimage3=Energypack |invimage4=Jetpack |armorrating=5 |armortoughness=3 |damage=5 Hearts |durability=300 |mininglevel=Redstone |stackable=Yes (16) |danger=Loud |protection=Turn down sound |storageslots=3 |lstorage=0 |tier=LV |maxeu=32 |eu_use=2 |eu_use2=3 EU/t with lava |storage=500 |eu_produce=5 |uu=52 mB |firstappearance=IC1 |lastappearance=IC3 |id=jetpack }} |
|
The above documentation is transcluded from Template:Item/doc. (edit | history)