Difference between revisions of "Template:Infobox"
Jump to navigation
Jump to search
m (Oops) |
(trying to hide whole sections at once) |
||
| (24 intermediate revisions by 2 users not shown) | |||
| 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 | | | 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" | <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|}}}|<span style="left: | -->[[File:Grid layout None (small).png|link=|alt=]]{{#if:{{{invimage|}}}|<span style="left:4px; position:absolute; top:2px; z-index:1;">{{Gc|{{ucfirst:{{{invimage}}}}}}}</span>|{{#ifexist: File:Grid {{BASEPAGENAME}}.png|<span style="left:4px; position:absolute; top:2px; z-index:1;">{{Gc|{{BASEPAGENAME}}}}</span>}}}}<!-- | ||
--></div><!-- | --></div><!-- | ||
-->{{#if:{{{invimage2|}}}|<!-- | -->{{#if:{{{invimage2|}}}|<!-- | ||
--><div style="position: relative; width: 36px; display: inline-block; padding-left: 2px; padding-right: 2px; padding-bottom: 1px"><!-- | --><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=]]<span style="left: | -->[[File:Grid layout None (small).png|link=|alt=]]<span style="left:4px; position:absolute; top:2px; z-index:1;">{{Gc|{{ucfirst:{{{invimage2}}}}}}}</span><!-- | ||
--></div>}}<!-- | --></div>}}<!-- | ||
-->{{#if:{{{invimage3|}}}|<!-- | -->{{#if:{{{invimage3|}}}|<!-- | ||
--><div style="position: relative; width: 36px; display: inline-block; padding-left: 2px; padding-right: 2px; padding-bottom: 1px"><!-- | --><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=]]<span style="left: | -->[[File:Grid layout None (small).png|link=|alt=]]<span style="left:4px; position:absolute; top:2px; z-index:1;">{{Gc|{{ucfirst:{{{invimage3}}}}}}}</span><!-- | ||
--></div>}}<!-- | --></div>}}<!-- | ||
-->{{#if:{{{invimage4|}}}|<!-- | -->{{#if:{{{invimage4|}}}|<!-- | ||
--><div style="position: relative; width: 36px; display: inline-block; padding-left: 2px; padding-right: 2px; padding-bottom: 1px"><!-- | --><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=]]<span style="left: | -->[[File:Grid layout None (small).png|link=|alt=]]<span style="left:4px; position:absolute; top:2px; z-index:1;">{{Gc|{{ucfirst:{{{invimage4}}}}}}}</span><!-- | ||
--></div>}} | --></div>}} | ||
|- class="infoboxSectionHeader" | |- class="infoboxSectionHeader" | ||
| Line 23: | Line 23: | ||
|- | |- | ||
| Type || {{#if: {{{type|}}} |{{{type}}}| ? }} | | Type || {{#if: {{{type|}}} |{{{type}}}| ? }} | ||
{{#ifeq:{{{tool|}}}|n/a||{{#ifeq:{{{tool|}}}|none|| | {{#ifeq:{{{tool|}}}|n/a||{{#ifeq:{{lc:{{{tool|none}}}}}|none|| | ||
{{!}}- | {{!}}- | ||
{{!}} Tool{{#if:{{{tool2|}}}|s}} {{!}}{{!}} {{ | {{!}} Tool{{#if:{{{tool2|}}}|s}} {{!}}{{!}} {{ | ||
| Line 37: | Line 37: | ||
| bucket | pail = [[File:Grid Bucket.png|32px|link=Non-IC Items|Bucket]] | | bucket | pail = [[File:Grid Bucket.png|32px|link=Non-IC Items|Bucket]] | ||
| sword = [[File:Grid Stone Sword.png|32px|link=Non-IC Items|Sword]] | | sword = [[File:Grid Stone Sword.png|32px|link=Non-IC Items|Sword]] | ||
| cell = [[File:Grid Empty Cell.png|32px|link=Empty Cell|Empty Cell]] | |||
| uni_cell | unicell = [[File:Grid Universal Fluid Cell.png|32px|link=Universal Fluid Cell|Universal Fluid Cell]] | |||
| all | alltools | any | anytool = Any tool | | all | alltools | any | anytool = Any tool | ||
| #default = ? | | #default = ? | ||
| Line 51: | Line 53: | ||
| bucket | pail = [[File:Grid Bucket.png|32px|link=Non-IC Items|Bucket]] | | bucket | pail = [[File:Grid Bucket.png|32px|link=Non-IC Items|Bucket]] | ||
| sword = [[File:Grid Stone Sword.png|32px|link=Non-IC Items|Sword]] | | sword = [[File:Grid Stone Sword.png|32px|link=Non-IC Items|Sword]] | ||
| cell = [[File:Grid Empty Cell.png|32px|link=Empty Cell|Empty Cell]] | |||
| uni_cell | unicell = [[File:Grid Universal Fluid Cell.png|32px|link=Universal Fluid Cell|Universal Fluid Cell]] | |||
}} | }} | ||
}} | }} | ||
}}}} | }}}} | ||
{{#if:{{{armorrating|{{{armortoughness|{{{damage|{{{durability|{{{mininglevel|}}}}}}}}}}}}}}}|{{!}}- class="infoboxSubsectionBreak" | |||
{{!}} {{!}}{{!}}}} | |||
{{#if:{{{armorrating|}}}|{{!}}- | |||
{{!}} Armor rating {{!}}{{!}} {{{armorrating}}}}} | |||
{{#if:{{{armortoughness|}}}|{{!}}- | |||
{{!}} Armor toughness {{!}}{{!}} {{{armortoughness}}}}} | |||
{{#if:{{{damage|}}}|{{!}}- | |||
{{!}} Damage {{!}}{{!}} {{{damage}}}}} | |||
{{#if:{{{durability|}}}|{{!}}- | |||
{{!}} Durability {{!}}{{!}} {{{durability}}}}} | |||
{{#if:{{{mininglevel|}}}|{{!}}- | |||
{{!}} Mining level {{!}}{{!}} {{{mininglevel}}}}} | |||
|- class="infoboxSubsectionBreak" | |- class="infoboxSubsectionBreak" | ||
| || | | || | ||
|- | |- | ||
| Stackable || {{#if:{{{stackable|}}}|{{{stackable}}}| Yes (64) }} | | Stackable || {{#if:{{{stackable|}}}|{{{stackable}}}| Yes (64) }} | ||
|- | {{#if:{{{flammable|}}}|{{!}}- | ||
| | {{!}} Flammable {{!}}{{!}} {{{flammable}}}}} | ||
|- class="infoboxSubsectionBreak" | {{#if:{{{danger|{{{protection|}}}}}}|{{!}}- class="infoboxSubsectionBreak" | ||
| || | {{!}} {{!}}{{!}}}} | ||
|- | {{#if:{{{danger|}}}|{{!}}- | ||
| Storage || {{{ | {{!}} Danger {{!}}{{!}} {{{danger}}}}} | ||
|- | {{#if:{{{protection|}}}|{{!}}- | ||
| | {{!}} Protection {{!}}{{!}} {{{protection}}}}} | ||
{{#if:{{{storageslots|{{{lstorage|}}}}}}|{{!}}- class="infoboxSubsectionBreak" | |||
{{!}} {{!}}{{!}}}} | |||
{{#if:{{{storageslots|}}}|{{!}}- | |||
{{!}} Storage {{!}}{{!}} {{{storageslots}}}}} | |||
{{#if:{{{lstorage|}}}|{{!}}- | |||
{{!}} Liquid Storage {{!}}{{!}} {{{lstorage}}} mB}} | |||
{{#if:{{{upgrades|}}}|{{!}}- class="infoboxSectionHeader" | |||
! class="infoboxSectionHeader" colspan="2" {{!}} Upgrades | |||
{{!}}- | |||
{{!}} colspan="2" {{!}} <div style="position: relative; display: inline-block;">{{{upgrades}}}</div>}} | |||
{{#if:{{{tier|{{{prevtier|{{{nexttier|}}}}}}}}}| | |||
{{!}}- class="infoboxSectionHeader" | |||
! class="infoboxSectionHeader" colspan="2" {{!}} Tier | |||
{{#if:{{{tier|}}}|{{!}}- | |||
{{!}} Tier {{!}}{{!}} {{#switch:{{{tier}}}|1|LV=<span style="color:blue">Tier-1 (LV)</span>|2|MV=<span style="color:green">Tier-2 (MV)</span>|3|HV=<span style="color:orange">Tier-3 (HV)</span>|4|EV=<span style="color:red">Tier-4 (EV)</span>|5|IV=Tier-5 (IV)</span>|{{{tier}}}}}}} | |||
{{#if:{{{prevtier|}}}|{{!}}- class="infoboxSubsectionBreak" | |||
{{!}} {{!}}{{!}} | |||
{{!}}- | |||
{{!}} Previous tier {{!}}{{!}} <span style="float:right">{{{prevtier}}}</span>}} | |||
{{#if:{{{nexttier|}}}|{{!}}- class="infoboxSubsectionBreak" | |||
{{!}} {{!}}{{!}} | |||
{{!}}- | |||
{{!}} Next tier {{!}}{{!}} <span style="float:right">{{{nexttier}}}</span>}}}} | |||
{{#if:{{{maxeu|{{{eu_use|{{{eu_op|{{{storage|{{{eu_produce|{{{maxout|{{{maxhu|{{{hu_use|{{{hu_produce|{{{maxku|{{{ku_use|{{{ku_produce|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}| | |||
{{!}}- class="infoboxSectionHeader" | |||
! class="infoboxSectionHeader" colspan="2" {{!}} Energy Consumption | |||
{{#if:{{{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}}}}}}} | |||
{{#if:{{{eu_use|}}}|{{!}}- | |||
{{!}} EU Use {{!}}{{!}} {{{eu_use}}} EU/t{{#if:{{{eu_use2|}}}|<br/>''{{{eu_use2}}}''}}}} | |||
{{#if:{{{eu_op|}}}|{{!}}- | |||
{{!}} EU Per Operation {{!}}{{!}} {{{eu_op}}}}} | |||
{{#if:{{{storage|}}}|{{!}}- | |||
{{!}} EU Storage {{!}}{{!}} {{{storage}}} EU}} | |||
{{#if:{{{eu_produce|}}}|{{!}}- | |||
{{!}} EU Production {{!}}{{!}} {{{eu_produce}}} EU/t}} | |||
{{#if:{{{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}}}}}}} | |||
{{#if:{{{maxhu|{{{hu_use|{{{hu_produce|}}}}}}}}}|{{!}}- class="infoboxSubsectionBreak" | |||
{{!}} {{!}}{{!}}}} | |||
{{#if:{{{maxhu|}}}|{{!}}- | |||
{{!}} Max Heat Input {{!}}{{!}} {{#ifeq:{{lc:{{{maxhu|none}}}}}|none||{{{maxhu}}} HU/t}}}} | |||
{{#if:{{{hu_use|}}}|{{!}}- | |||
{{!}} Heat Use {{!}}{{!}} {{{hu_use}}} HU/t{{#if:{{{hu_use2|}}}|<br/>''{{{hu_use2}}}''}}}} | |||
{{#if:{{{hu_produce|}}}|{{!}}- | |||
{{!}} Heat Production {{!}}{{!}} {{{hu_produce}}} HU/t}} | |||
{{#if:{{{maxku|{{{ku_use|{{{ku_produce|}}}}}}}}}|{{!}}- class="infoboxSubsectionBreak" | |||
{{!}} {{!}}{{!}}}} | |||
{{#if:{{{maxku|}}}|{{!}}- | |||
{{!}} Max Kinetic Input {{!}}{{!}} {{{maxku}}} KU/t}} | |||
{{#if:{{{ku_use|}}}|{{!}}- | |||
{{!}} Kinetic Use {{!}}{{!}} {{{ku_use}}} KU/t{{#if:{{{ku_use2|}}}|<br/>''{{{ku_use2}}}''}}}} | |||
{{#if:{{{ku_produce|}}}|{{!}}- | |||
{{!}} Kinetic Production {{!}}{{!}} {{{ku_produce}}} KU/t}}}} | |||
|- class="infoboxSectionHeader" | |- class="infoboxSectionHeader" | ||
! class="infoboxSectionHeader" colspan="2" | | ! class="infoboxSectionHeader" colspan="2" | Technical Details | ||
{{#if:{{{optime|}}}|{{!}}- | |||
{{!}} Operation Length {{!}}{{!}} {{{optime}}} Seconds}} | |||
|- | |- | ||
| | | [[Matter|UU]] Cost || {{ | ||
#switch:{{lc:{{{uu|{{{uu_cost}}}}}}}} | |||
| || | |no|n/a|none=Can't be replicated | ||
| | |{{{uu|{{{uu_cost}}}}}}={{{uu|{{{uu_cost}}}}}} | ||
| | |#default=? | ||
}} | |||
|- class="infoboxSubsectionBreak" | |- class="infoboxSubsectionBreak" | ||
| || | | || | ||
|- | |- | ||
| | | First appearance || {{{firstappearance|?}}} | ||
{{#if:{{{lastappearance|}}}|{{!}}- | |||
{{!}} Last appearance {{!}}{{!}} {{{lastappearance}}}}} | |||
|- | |- | ||
| | | ID || {{#if:{{{id}}}|''IC2:{{{id}}}''|?}} | ||
|- class="infoboxSubsectionBreak" | |- class="infoboxSubsectionBreak" | ||
| || | | || | ||
|- | {{#if:{{{fluidspeed|}}}|{{!}}- | ||
{{!}} Flow Speed {{!}}{{!}} {{{fluidspeed}}} m/s}} | |||
|- | {{#if:{{{movespeed|}}}|{{!}}- | ||
{{!}} Player Speed {{!}}{{!}} {{{movespeed}}}}} | |||
|- class="infoboxSectionHeader" | |- class="infoboxSectionHeader" | ||
| style="padding:0" | || style="padding:0" | | | style="padding:0" | || style="padding:0" | | ||
|}{{#if:{{NAMESPACE}}||[[Category:Blocks]]}}< | |}<!--{{#if:{{NAMESPACE}}||[[Category:Blocks]]}} <- decide based off whether {{Item}} or {{Block}} | ||
-->{{#if: {{{image2|{{{image3|{{{dirt|{{{data|{{{multipledata|}}}}}}}}}}}}}}}|{{#if:{{NAMESPACE}}||[[Category:Dirty Pages]]}}}}</includeonly><noinclude> | -->{{#if: {{{image2|{{{image3|{{{dirt|{{{data|{{{multipledata|}}}}}}}}}}}}}}}|{{#if:{{NAMESPACE}}||[[Category:Dirty Pages]]}}}}</includeonly><noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> | ||
Latest revision as of 23:03, 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
}}
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The above documentation is transcluded from Template:Infobox/doc. (edit | history)

