Difference between revisions of "Template:Infobox"
Jump to navigation
Jump to search
m (Added EU/t to max EU in+output) |
m (Should allow blank parameters, might hit the performance however.) |
||
| Line 57: | Line 57: | ||
| || | | || | ||
|- | |- | ||
| Armor rating || {{{armorrating}}} | | Armor rating || {{#if:{{{armorrating|}}}|{{{armorrating}}}}} | ||
|- | |- | ||
| Damage || {{{damage}}} | | Damage || {{#if:{{{damage|}}}|{{{damage}}}}} | ||
|- | |- | ||
| Durability || {{{durability}}} | | Durability || {{#if:{{{durability|}}}|{{{durability}}}}} | ||
|- | |- | ||
| Mining level || {{{mininglevel}}} | | Mining level || {{#if:{{{mininglevel|}}}|{{{mininglevel}}}}} | ||
|- class="infoboxSubsectionBreak" | |- class="infoboxSubsectionBreak" | ||
| || | | || | ||
| Line 74: | Line 74: | ||
| || | | || | ||
|- | |- | ||
| Storage || {{{storageslots}}} | | Storage || {{#if:{{{storageslots|}}}|{{{storageslots}}}}} | ||
|- | |- | ||
| Liquid Storage || {{{lstorage}}} mB | | Liquid Storage || {{#if:{{{lstorage|}}}|{{{lstorage}}} mB}} | ||
|- class="infoboxSectionHeader" | |- class="infoboxSectionHeader" | ||
! class="infoboxSectionHeader" colspan="2" | Upgrades | ! class="infoboxSectionHeader" colspan="2" | Upgrades | ||
|- | |- | ||
| colspan="2" | <div style="position: relative; display: inline-block;">{{{upgrades}}}</div> | | colspan="2" | {{#if:{{{upgrades|}}}|<div style="position: relative; display: inline-block;">{{{upgrades}}}</div>}} | ||
|- class="infoboxSubsectionBreak" | |- class="infoboxSubsectionBreak" | ||
| || | | || | ||
|- | |- | ||
| Previous tier || <span style="float:right">{{{prevtier}}}</span> | | Previous tier || {{#if:{{{prevtier|}}}|<span style="float:right">{{{prevtier}}}</span>}} | ||
|- class="infoboxSubsectionBreak" | |- class="infoboxSubsectionBreak" | ||
| || | | || | ||
|- | |- | ||
| Next tier || <span style="float:right">{{{nexttier}}}</span> | | Next tier || {{#if:{{{nexttier|}}}|<span style="float:right">{{{nexttier}}}</span>}} | ||
|- class="infoboxSectionHeader" | |- class="infoboxSectionHeader" | ||
! class="infoboxSectionHeader" colspan="2" | Energy Consumption | ! class="infoboxSectionHeader" colspan="2" | Energy Consumption | ||
| Line 94: | Line 94: | ||
| Max EU Input || {{#if:{{{maxeu|}}}|<b>{{#ifexpr:{{{maxeu}}}=32|<span style="color:blue">32 EU/t (LV)</span>|{{#ifexpr: {{{maxeu}}}=128 |<span style="color:green">128 EU/t (MV)</span>|{{#ifexpr: {{{maxeu}}}=512 |<span style="color:orange">512 EU/t (HV)</span>|{{#ifexpr: {{{maxeu}}}=2048 |<span style="color:red">2048 EU/t (EV)</span>|{{{maxeu}}} EU/t (??)}}}}}}}}</b>|{{{maxeu}}}}} | | Max EU Input || {{#if:{{{maxeu|}}}|<b>{{#ifexpr:{{{maxeu}}}=32|<span style="color:blue">32 EU/t (LV)</span>|{{#ifexpr: {{{maxeu}}}=128 |<span style="color:green">128 EU/t (MV)</span>|{{#ifexpr: {{{maxeu}}}=512 |<span style="color:orange">512 EU/t (HV)</span>|{{#ifexpr: {{{maxeu}}}=2048 |<span style="color:red">2048 EU/t (EV)</span>|{{{maxeu}}} EU/t (??)}}}}}}}}</b>|{{{maxeu}}}}} | ||
|- | |- | ||
| EU Use || {{{eu_use}}} EU/t{{#if:{{{eu_use2|}}}|<br/>''{{{eu_use2}}}''}} | | EU Use || {{#if:{{{eu_use|}}}|{{{eu_use}}} EU/t{{#if:{{{eu_use2|}}}|<br/>''{{{eu_use2}}}''}}}} | ||
|- | |- | ||
| EU Per Operation || {{{eu_op}}} | | EU Per Operation || {{#if:{{{eu_op|}}}|{{{eu_op}}}}} | ||
|- | |- | ||
| EU Storage || {{{storage}}} EU | | EU Storage || {{#if:{{{storage|}}}|{{{storage}}} EU}} | ||
|- | |- | ||
| EU Production || {{{eu_produce}}} EU/t | | EU Production || {{#if:{{{eu_produce|}}}|{{{eu_produce}}} EU/t}} | ||
|- | |- | ||
| Max EU Output || {{#if:{{{maxout|}}}|<b>{{#ifexpr:{{{maxout}}}=32|<span style="color:blue">32 EU/t (LV)</span>|{{#ifexpr: {{{maxout}}}=128 |<span style="color:green">128 EU/t (MV)</span>|{{#ifexpr: {{{maxout}}}=512 |<span style="color:orange">512 EU/t (HV)</span>|{{#ifexpr: {{{maxout}}}=2048 |<span style="color:red">2048 EU/t (EV)</span>|{{{maxout}}} EU/t (??)}}}}}}}}</b>|{{{maxout}}}}} | | Max EU Output || {{#if:{{{maxout|}}}|<b>{{#ifexpr:{{{maxout}}}=32|<span style="color:blue">32 EU/t (LV)</span>|{{#ifexpr: {{{maxout}}}=128 |<span style="color:green">128 EU/t (MV)</span>|{{#ifexpr: {{{maxout}}}=512 |<span style="color:orange">512 EU/t (HV)</span>|{{#ifexpr: {{{maxout}}}=2048 |<span style="color:red">2048 EU/t (EV)</span>|{{{maxout}}} EU/t (??)}}}}}}}}</b>|{{{maxout}}}}} | ||
| Line 106: | Line 106: | ||
| || | | || | ||
|- | |- | ||
| Max Heat Input || {{{maxhu}}} HU/t | | Max Heat Input || {{#if:{{{maxhu|}}}|{{{maxhu}}} HU/t}} | ||
|- | |- | ||
| Heat Use || {{{hu_use}}} HU/t{{#if:{{{hu_use2|}}}|<br/>''{{{hu_use2}}}''}} | | Heat Use || {{#if:{{{hu_use|}}}|{{{hu_use}}} HU/t{{#if:{{{hu_use2|}}}|<br/>''{{{hu_use2}}}''}}}} | ||
|- | |- | ||
| Heat Production || {{{hu_produce}}} HU/t | | Heat Production || {{#if:{{{hu_produce|}}}|{{{hu_produce}}} HU/t}} | ||
|- class="infoboxSubsectionBreak" | |- class="infoboxSubsectionBreak" | ||
| || | | || | ||
|- | |- | ||
| Max Kinetic Input || {{{maxku}}} KU/t | | Max Kinetic Input || {{#if:{{{maxku|}}}|{{{maxku}}} KU/t}} | ||
|- | |- | ||
| Kinetic Use || {{{ku_use}}} KU/t{{#if:{{{ku_use2|}}}|<br/>''{{{ku_use2}}}''}} | | Kinetic Use || {{#if:{{{ku_use|}}}|{{{ku_use}}} KU/t{{#if:{{{ku_use2|}}}|<br/>''{{{ku_use2}}}''}}}} | ||
|- | |- | ||
| Kinetic Production || {{{ku_produce}}} KU/t | | Kinetic Production || {{#if:{{{ku_produce|}}}|{{{ku_produce}}} KU/t}} | ||
|- class="infoboxSectionHeader" | |- class="infoboxSectionHeader" | ||
! class="infoboxSectionHeader" colspan="2" | Technical Details | ! class="infoboxSectionHeader" colspan="2" | Technical Details | ||
|- | |- | ||
| Operation Length || {{{optime}}} Seconds | | Operation Length || {{#if:{{{optime|}}}|{{{optime}}} Seconds}} | ||
|- class="infoboxSubsectionBreak" | |- class="infoboxSubsectionBreak" | ||
| || | | || | ||
|- | |- | ||
| First appearance || {{{firstappearance}}} | | First appearance || {{#if:{{{firstappearance|}}}|{{{firstappearance}}}}} | ||
|- | |- | ||
| Last appearance || {{{lastappearance}}} | | Last appearance || {{#if:{{{lastappearance|}}}|{{{lastappearance}}}}} | ||
|- class="infoboxSubsectionBreak" | |- class="infoboxSubsectionBreak" | ||
| || | | || | ||
|- | |- | ||
| Flow Speed || {{{fluidspeed}}} m/s | | Flow Speed || {{#if:{{{fluidspeed|}}}|{{{fluidspeed}}} m/s}} | ||
|- | |- | ||
| Player Speed || {{{movespeed}}} | | Player Speed || {{#if:{{{movespeed|}}}|{{{movespeed}}}}} | ||
|- class="infoboxSectionHeader" | |- class="infoboxSectionHeader" | ||
| style="padding:0" | || style="padding:0" | | | style="padding:0" | || style="padding:0" | | ||
Revision as of 15:05, 6 April 2015
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 | ? |
| Tool | ? |
| Armor rating | |
| Damage | |
| Durability | |
| Mining level | |
| Stackable | Yes (64) |
| Flammable | No |
| Storage | |
| Liquid Storage | |
| Upgrades | |
| Previous tier | |
| Next tier | |
| Energy Consumption | |
| Max EU Input | {{{maxeu}}} |
| EU Use | |
| EU Per Operation | |
| EU Storage | |
| EU Production | |
| Max EU Output | {{{maxout}}} |
| Max Heat Input | |
| Heat Use | |
| Heat Production | |
| Max Kinetic Input | |
| Kinetic Use | |
| Kinetic Production | |
| Technical Details | |
| Operation Length | |
| First appearance | |
| Last appearance | |
| Flow Speed | |
| Player Speed | |
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
}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The above documentation is transcluded from Template:Infobox/doc. (edit | history)


