Difference between revisions of "Template:Infobox/doc"
Jump to navigation
Jump to search
(Made documentation) |
m (→Example) |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{doc/start}} | {{doc/start}} | ||
Generate an Infobox to insert information about Blocks and Items in. '''Should be called from {{Tl|Block}} for block pages and {{Tl|Item}} for item pages, so that the categories are added correctly.''' | |||
== Parameters == | == Parameters == | ||
Line 16: | Line 16: | ||
|tool2= | |tool2= | ||
|armorrating= | |armorrating= | ||
|armortoughness= | |||
|damage= | |damage= | ||
|durability= | |durability= | ||
Line 21: | Line 22: | ||
|stackable= | |stackable= | ||
|flammable= | |flammable= | ||
|danger= | |||
|protection= | |||
|storageslots= | |storageslots= | ||
|lstorage= | |lstorage= | ||
|upgrades= | |upgrades= | ||
|tier= | |||
|prevtier= | |prevtier= | ||
|nexttier= | |nexttier= | ||
Line 32: | Line 36: | ||
|eu_produce= | |eu_produce= | ||
|maxout= | |maxout= | ||
|maxhu= | |||
|hu_use= | |||
|hu_use2= | |||
|hu_produce= | |||
|maxku= | |||
|ku_use= | |||
|ku_use2= | |||
|ku_produce= | |||
|optime= | |||
|uu= | |||
|firstappearance= | |firstappearance= | ||
|lastappearance= | |lastappearance= | ||
|id= | |||
|fluidspeed= | |fluidspeed= | ||
|movespeed= | |movespeed= | ||
Line 47: | Line 62: | ||
| <code>title</code> || Only needed to change the title from the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code> | | <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:No block image.png|No block image.png]] (linking to the page where to upload the missing image) | | <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> | | <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>invimage2</code> || 2<sup>nd</sup> Image for object in inventory. || ''None'' | ||
Line 64: | Line 79: | ||
|- | |- | ||
| <code>armorrating</code> || Armour protectiveness || ''None'' | | <code>armorrating</code> || Armour protectiveness || ''None'' | ||
|- | |||
| <code>armortoughness</code> || Armour toughness|| ''None'' | |||
|- | |- | ||
| <code>damage</code> || Damage (for weapons) || ''None'' | | <code>damage</code> || Damage (for weapons) || ''None'' | ||
Line 73: | Line 90: | ||
| <code>stackable</code> || If the object is stackable || <code><nowiki>Yes (64)</nowiki></code> | | <code>stackable</code> || If the object is stackable || <code><nowiki>Yes (64)</nowiki></code> | ||
|- | |- | ||
| <code>flammable</code> || If the object is flammable | | <code>flammable</code> || If the object is flammable || ''None'' | ||
|- | |||
| <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>storageslots</code> || Number of item storage slots || ''None'' | ||
Line 80: | Line 101: | ||
|- | |- | ||
| <code>upgrades</code> || Upgrades, use {{Tl|Gc}} for each block/item || ''None'' | | <code>upgrades</code> || Upgrades, use {{Tl|Gc}} for each block/item || ''None'' | ||
|- | |||
| <code>upgrades</code> || Tier (1, 2, 3, 4, 5, LV, MV, HV, EV, IV) || ''None'' | |||
|- | |- | ||
| <code>prevtier</code> || Previous tier item, use {{Tl|Gc}} || ''None'' | | <code>prevtier</code> || Previous tier item, use {{Tl|Gc}} || ''None'' | ||
Line 97: | Line 120: | ||
| <code>maxout</code> || Maximum EU output || ''None'' | | <code>maxout</code> || Maximum EU output || ''None'' | ||
|- | |- | ||
| <code>firstappearance</code> || Version object was added || | | <code>maxhu</code> || Maximum Heat input || ''None'' | ||
|- | |||
| <code>hu_use</code> || Heat usage per tick || ''None'' | |||
|- | |||
| <code>hu_use2</code> || Additional detail line || ''None'' | |||
|- | |||
| <code>hu_produce</code> || Heat production per tick || ''None'' | |||
|- | |||
| <code>maxku</code> || Maximum KU input || ''None'' | |||
|- | |||
| <code>ku_use</code> || KU usage per tick || ''None'' | |||
|- | |||
| <code>ku_use2</code> || Additional detail line || ''None'' | |||
|- | |||
| <code>ku_produce</code> || KU production per tick || ''None'' | |||
|- | |||
| <code>optime</code> || Time taken per operation (seconds) || ''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 || ? | |||
|- | |- | ||
| <code>lastappearance</code> || Last version before object was removed || ''None'' | | <code>lastappearance</code> || Last version before object was removed || ''None'' | ||
|- | |||
| <code>id</code> || The block/item ID || ''None'' | |||
|- | |- | ||
| <code>fluidspeed</code> || Speed of fluid || ''None'' | | <code>fluidspeed</code> || Speed of fluid || ''None'' | ||
Line 107: | Line 152: | ||
== Example == | == Example == | ||
{| class="wikitable" | |||
! Code !! Result | |||
|- | |||
|<pre>{{Infobox | |||
|title=ExampleItem | |||
|image=Energy_Crystal_ig.png | |||
|invimage=RE Battery | |||
|invimage2=Energy Crystal | |||
|invimage3=Lapotron Crystal | |||
|type=Item | |||
|tool=None | |||
|stackable=No | |||
|tier=HV | |||
|eu_use=2 | |||
|eu_use2=when activated | |||
|storage=1M | |||
|uu=None | |||
|id=example_item | |||
}}</pre> || | |||
{{Infobox | |||
|title=ExampleItem | |||
|image=Energy_Crystal_ig.png | |||
|invimage=RE Battery | |||
|invimage2=Energy Crystal | |||
|invimage3=Lapotron Crystal | |||
|type=Item | |||
|tool=None | |||
|stackable=No | |||
|tier=HV | |||
|eu_use=2 | |||
|eu_use2=when activated | |||
|storage=1M | |||
|uu=None | |||
|id=example_item | |||
}} | |||
|} | |||
{| class="wikitable" | {| class="wikitable" | ||
! Code !! Result | ! Code !! Result | ||
Line 121: | Line 203: | ||
|tool2=pick | |tool2=pick | ||
|armorrating=5 | |armorrating=5 | ||
|armortoughness=3 | |||
|damage=5 Hearts | |damage=5 Hearts | ||
|durability=300 | |durability=300 | ||
Line 126: | Line 209: | ||
|stackable=Yes (16) | |stackable=Yes (16) | ||
|flammable=Yes | |flammable=Yes | ||
|danger=Loud | |||
|protection=Turn down sound | |||
|storageslots=3 | |storageslots=3 | ||
|lstorage=0 | |lstorage=0 | ||
|upgrades={{Gc|Overclocker upgrade}} | |upgrades={{Gc|Overclocker upgrade}} | ||
|tier=3 | |||
|prevtier={{Gc|Generator}} | |prevtier={{Gc|Generator}} | ||
|nexttier={{Gc|[Macerator 9000!\It's amazing!]Macerator}} | |nexttier={{Gc|[Macerator 9000!\It's amazing!]Macerator}} | ||
|maxeu=32 | |maxeu=32 | ||
|eu_use=2 | |eu_use=2 | ||
|eu_use2= | |eu_use2=3 EU/t with lava | ||
|storage=500 | |storage=500 | ||
|eu_produce=5 | |eu_produce=5 | ||
|maxout=128 | |maxout=128 | ||
|maxhu=50 | |||
|hu_use=50 | |||
|hu_use2=Any less won't work | |||
|hu_produce=0-100 | |||
|maxku=25 | |||
|ku_use=5 | |||
|ku_use2=On average | |||
|ku_produce=10-30 | |||
|optime=10 | |||
|uu=52 mB | |||
|firstappearance=IC1 | |firstappearance=IC1 | ||
|lastappearance=IC3 | |lastappearance=IC3 | ||
|id=blockMachine@1 | |||
|fluidspeed=5 | |fluidspeed=5 | ||
|movespeed=2 | |movespeed=2 | ||
Line 154: | Line 251: | ||
|tool2=pick | |tool2=pick | ||
|armorrating=5 | |armorrating=5 | ||
|armortoughness=3 | |||
|damage=5 Hearts | |damage=5 Hearts | ||
|durability=300 | |durability=300 | ||
Line 159: | Line 257: | ||
|stackable=Yes (16) | |stackable=Yes (16) | ||
|flammable=Yes | |flammable=Yes | ||
|danger=Loud | |||
|protection=Turn down sound | |||
|storageslots=3 | |storageslots=3 | ||
|lstorage=0 | |lstorage=0 | ||
|upgrades={{Gc|Overclocker upgrade}} | |upgrades={{Gc|Overclocker upgrade}} | ||
|tier=3 | |||
|prevtier={{Gc|Generator}} | |prevtier={{Gc|Generator}} | ||
|nexttier={{Gc|[Macerator 9000!\It's amazing!]Macerator}} | |nexttier={{Gc|[Macerator 9000!\It's amazing!]Macerator}} | ||
|maxeu=32 | |maxeu=32 | ||
|eu_use=2 | |eu_use=2 | ||
|eu_use2= | |eu_use2=3 EU/t with lava | ||
|storage=500 | |storage=500 | ||
|eu_produce=5 | |eu_produce=5 | ||
|maxout=128 | |maxout=128 | ||
|maxhu=50 | |||
|hu_use=50 | |||
|hu_use2=Any less won't work | |||
|hu_produce=0-100 | |||
|maxku=25 | |||
|ku_use=5 | |||
|ku_use2=On average | |||
|ku_produce=10-30 | |||
|optime=10 | |||
|uu=52 mB | |||
|firstappearance=IC1 | |firstappearance=IC1 | ||
|lastappearance=IC3 | |lastappearance=IC3 | ||
|id=blockMachine@1 | |||
|fluidspeed=5 | |fluidspeed=5 | ||
|movespeed=2 | |movespeed=2 |
Latest revision as of 22:06, 5 February 2021
Generate an Infobox to insert information about Blocks and Items in. Should be called from {{Block}}
for block pages and {{Item}}
for item pages, so that the categories are added correctly.
Parameters[edit]
Infobox | |
---|---|
![]() | |
Properties | |
Type | ?
|
Stackable | Yes (64)
|
Technical Details | |
UU Cost | {{{uu_cost}}} |
First appearance | ? |
ID | IC2:{{{id}}} |
| |
Full, blank parameters to be copied into pages:
{{Infobox |title= |image= |invimage= |invimage2= |invimage3= |invimage4= |type= |tool= |tool2= |armorrating= |armortoughness= |damage= |durability= |mininglevel= |stackable= |flammable= |danger= |protection= |storageslots= |lstorage= |upgrades= |tier= |prevtier= |nexttier= |maxeu= |eu_use= |eu_use2= |storage= |eu_produce= |maxout= |maxhu= |hu_use= |hu_use2= |hu_produce= |maxku= |ku_use= |ku_use2= |ku_produce= |optime= |uu= |firstappearance= |lastappearance= |id= |fluidspeed= |movespeed= }}
Parameters with defaults as None won't show when the 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 |
type |
Type (Block/Machine/Item/etc.) | ?
|
tool |
Desired tool to break with | ?
|
tool2 |
Second tool to break with | 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)
|
flammable |
If the object is flammable | None |
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 |
upgrades |
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 |
maxeu |
Maximum EU input before explosion | 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 |
maxhu |
Maximum Heat input | None |
hu_use |
Heat usage per tick | None |
hu_use2 |
Additional detail line | None |
hu_produce |
Heat production per tick | None |
maxku |
Maximum KU input | None |
ku_use |
KU usage per tick | None |
ku_use2 |
Additional detail line | None |
ku_produce |
KU production per tick | None |
optime |
Time taken per operation (seconds) | 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 | ? |
lastappearance |
Last version before object was removed | None |
id |
The block/item ID | None |
fluidspeed |
Speed of fluid | None |
movespeed |
Speed of player in the fluid | None |
Example[edit]
Code | Result | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox |title=ExampleItem |image=Energy_Crystal_ig.png |invimage=RE Battery |invimage2=Energy Crystal |invimage3=Lapotron Crystal |type=Item |tool=None |stackable=No |tier=HV |eu_use=2 |eu_use2=when activated |storage=1M |uu=None |id=example_item }} |
|
Code | Result | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox |title=Macerator |image=Macerator_ig.png |invimage=Macerator |invimage2=Compressor |invimage3=Extractor |invimage4=Canning Machine |type=Machine |tool=wrench |tool2=pick |armorrating=5 |armortoughness=3 |damage=5 Hearts |durability=300 |mininglevel=Redstone |stackable=Yes (16) |flammable=Yes |danger=Loud |protection=Turn down sound |storageslots=3 |lstorage=0 |upgrades={{Gc|Overclocker upgrade}} |tier=3 |prevtier={{Gc|Generator}} |nexttier={{Gc|[Macerator 9000!\It's amazing!]Macerator}} |maxeu=32 |eu_use=2 |eu_use2=3 EU/t with lava |storage=500 |eu_produce=5 |maxout=128 |maxhu=50 |hu_use=50 |hu_use2=Any less won't work |hu_produce=0-100 |maxku=25 |ku_use=5 |ku_use2=On average |ku_produce=10-30 |optime=10 |uu=52 mB |firstappearance=IC1 |lastappearance=IC3 |id=blockMachine@1 |fluidspeed=5 |movespeed=2 }} |
|
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.