Difference between revisions of "Template:Infobox/doc"
Jump to navigation
Jump to search
m (→Example: Added new parameters) |
m (→Parameters: Updated for default image change) |
||
| Line 54: | Line 54: | ||
| <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>Empty inventory square</nowiki></code> | | <code>invimage</code> || Image for object in inventory. || <code><nowiki>Empty inventory square</nowiki></code> | ||
Revision as of 18:34, 6 April 2015
Like Template:Block but better!
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=
|damage=
|durability=
|mininglevel=
|stackable=
|flammable=
|storageslots=
|lstorage=
|upgrades=
|prevtier=
|nexttier=
|maxeu=
|eu_use=
|eu_use2=
|storage=
|eu_produce=
|maxout=
|maxhu=
|hu_use=
|hu_produce=
|maxku=
|ku_use=
|ku_produce=
|optime=
|firstappearance=
|lastappearance=
|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. | 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 |
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, set None to hide | No
|
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 |
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_produce |
Heat production per tick | None |
maxku |
Maximum KU input | None |
ku_use |
KU usage per tick | None |
ku_produce |
KU production per tick | None |
optime |
Time taken per operation (seconds) | None |
firstappearance |
Version object was added | None |
lastappearance |
Last version before object was removed | None |
fluidspeed |
Speed of fluid | None |
movespeed |
Speed of player in the fluid | None |
Example[edit]
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.
