Difference between revisions of "Template:Item/doc"
Jump to navigation
Jump to search
(short description) |
(copied relevant docs from infobox) |
||
Line 1: | Line 1: | ||
{{doc/start | {{doc/start}} | ||
Template:Item is a common infoblock template for items, not blocks | Template:Item is a common infoblock template for items, not blocks | ||
== Parameters == | |||
{{Item|class=infoboxNoCollapse}} | |||
'''Copy this into your page and fill out as needed:''' | |||
<pre style="width:83%">{{Item | <pre style="width:83%">{{Item | ||
{{Infobox | |||
|title= | |||
|image= | |image= | ||
|invimage= | |invimage= | ||
| | |invimage2= | ||
|invimage3= | |||
|invimage4= | |||
|armorrating= | |||
|armortoughness= | |||
|damage= | |||
|durability= | |||
|mininglevel= | |||
|stackable= | |stackable= | ||
| | |danger= | ||
|protection= | |protection= | ||
| | |storageslots= | ||
|lstorage= | |||
|upgrades= | |||
|prevtier= | |||
|nexttier= | |||
|eu_use= | |||
|eu_use2= | |||
|storage= | |||
|eu_produce= | |||
|maxout= | |||
|uu= | |||
|firstappearance= | |||
|lastappearance= | |||
|id= | |||
}}</pre> | }}</pre> | ||
'''Parameters with defaults as ''None'' aren't supposed to show when the Item's Infobox is on a page!''' | |||
{| class=grid style="background-color: transparent;" | |||
! Parameter | |||
! Function | |||
! Default value | |||
|- | |||
| <code>title</code> || Only needed to change the title from the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code> | |||
|- | |||
| <code>image</code> || Big image of the block (it's scaled to 148px) || <code><nowiki>{{BASEPAGENAME}}_ig.png</nowiki></code> if it exists, otherwise [[:File:Picture na.png|Picture na.png]]<!--[[:File:No block image.png|No block image.png]]--> (linking to the page where to upload the missing image) | |||
|- | |||
| <code>invimage</code> || Image for object in inventory. || <code><nowiki>{{Gc|{{BASEPAGENAME}}}}</nowiki></code> if it exists, otherwise an empty inventory square | |||
|- | |||
| <code>invimage2</code> || 2<sup>nd</sup> Image for object in inventory. || ''None'' | |||
|- | |||
| <code>invimage3</code> || 3<sup>rd</sup> Image for object in inventory. || ''None'' | |||
|- | |||
| <code>invimage4</code> || 4<sup>th</sup> Image for object in inventory. || ''None'' | |||
|- | |||
| <code>armorrating</code> || Armour protectiveness || ''None'' | |||
|- | |||
| <code>armortoughness</code> || Armour toughness || ''None'' | |||
|- | |||
| <code>damage</code> || Damage (for weapons) || ''None'' | |||
|- | |||
| <code>durability</code> || Durability (for tools) || ''None'' | |||
|- | |||
| <code>mininglevel</code> || Tool mining level || ''None'' | |||
|- | |||
| <code>stackable</code> || If the object is stackable || <code><nowiki>Yes (64)</nowiki></code> | |||
|- | |||
| <code>danger</code> || Block/Item danger (ie radiation) || ''None'' | |||
|- | |||
| <code>protection</code> || Protection needed (from danger) || ''None'' | |||
|- | |||
| <code>storageslots</code> || Number of item storage slots || ''None'' | |||
|- | |||
| <code>lstorage</code> || Liquid storage (for tanks) || ''None'' | |||
|- | |||
| <code>upgrades</code> || Upgrades, use {{Tl|Gc}} for each block/item || ''None'' | |||
|- | |||
| <code>prevtier</code> || Previous tier item, use {{Tl|Gc}} || ''None'' | |||
|- | |||
| <code>nexttier</code> || Next tier item, use {{Tl|Gc}} || ''None'' | |||
|- | |||
| <code>eu_use</code> || EU use per tick || ''None'' | |||
|- | |||
| <code>eu_use2</code> || Additional detail line || ''None'' | |||
|- | |||
| <code>storage</code> || How much EU that be can stored || ''None'' | |||
|- | |||
| <code>eu_produce</code> || How much EU is produced || ''None'' | |||
|- | |||
| <code>maxout</code> || Maximum EU output || ''None'' | |||
|- | |||
| <code>uu</code>, <code>uu_cost</code> || [[Matter|UU]] needed to replicate item<br/>'''Set to either''' ''no'', ''n/a'', '''or''' ''none'' '''if it can't be replicated''' || ''None'' | |||
|- | |||
| <code>firstappearance</code> || Version object was added || ''None'' | |||
|- | |||
| <code>lastappearance</code> || Last version before object was removed || ''None'' | |||
|- | |||
| <code>id</code> || The block/item ID || ''None'' | |||
|} | |||
== Example == | |||
{| class="wikitable" | |||
! Code !! Result | |||
|- | |||
|<pre>{{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 | |||
|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 | |||
}} | |||
</pre> || | |||
{{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 | |||
|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 | |||
}} | |||
|} | |||
{{doc/end}} | {{doc/end}} |
Revision as of 07:39, 5 February 2021
Template:Item is a common infoblock template for items, not blocks
Parameters[edit]
Item | |
---|---|
![]() | |
Properties | |
Type | Item
|
Stackable | Yes (64)
|
Technical Details | |
ID | ? |
|
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= |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 |
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 |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 }} |
|
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.