Difference between revisions of "Template:Itembox"

From Space Engineers Wiki
Jump to: navigation, search
(+undoing my lc of airtightness property hmm)
(+turned a lot of fields into formal properties (materialeffeciency, refinespeed, gascapacity) also set up the infrastructure for integrity calc)
Line 11: Line 11:
 
{{#if: {{{rvolume|}}}|{{#set:rvolume={{{rvolume|}}} }}|}}
 
{{#if: {{{rvolume|}}}|{{#set:rvolume={{{rvolume|}}} }}|}}
 
{{#if: {{{mvolume|}}}|{{#set:mvolume={{{mvolume|}}} }}|}}
 
{{#if: {{{mvolume|}}}|{{#set:mvolume={{{mvolume|}}} }}|}}
 +
{{#if: {{{cintegrity|}}}|{{#set:cintegrity={{{cintegrity|}}} }}|}}
 +
{{#if: {{{tintegrity|}}}|{{#set:tintegrity={{{tintegrity|}}} }}|}}
 +
{{#if: {{{rintegrity|}}}|{{#set:rintegrity={{{rintegrity|}}} }}|}}
 +
{{#if: {{{mintegrity|}}}|{{#set:mintegrity={{{mintegrity|}}} }}|}}
 
{{#if: {{{sresourcesinkgroup|}}}|{{#set:sresourcesinkgroup={{{sresourcesinkgroup|}}} }}|}}
 
{{#if: {{{sresourcesinkgroup|}}}|{{#set:sresourcesinkgroup={{{sresourcesinkgroup|}}} }}|}}
 
{{#if: {{{lresourcesinkgroup|}}}|{{#set:lresourcesinkgroup={{{lresourcesinkgroup|}}} }}|}}
 
{{#if: {{{lresourcesinkgroup|}}}|{{#set:lresourcesinkgroup={{{lresourcesinkgroup|}}} }}|}}
Line 21: Line 25:
 
{{#if: {{{sairtightness|}}}|{{#set:sairtightness={{{sairtightness|}}} }}|}}
 
{{#if: {{{sairtightness|}}}|{{#set:sairtightness={{{sairtightness|}}} }}|}}
 
{{#if: {{{lairtightness|}}}|{{#set:lairtightness={{{lairtightness|}}} }}|}}
 
{{#if: {{{lairtightness|}}}|{{#set:lairtightness={{{lairtightness|}}} }}|}}
 +
{{#if: {{{tgascapacity|}}}|{{#set:tgascapacity={{{tgascapacity|}}} }}|}}
 +
{{#if: {{{lgascapacity|}}}|{{#set:lgascapacity={{{lgascapacity|}}} }}|}}
 +
{{#if: {{{sgascapacity|}}}|{{#set:sgascapacity={{{sgascapacity|}}} }}|}}
 +
{{#if: {{{rmaterialefficiency|}}}|{{#set:rmaterialefficiency={{{rmaterialefficiency|}}} }}|}}
 +
{{#if: {{{mmaterialefficiency|}}}|{{#set:mmaterialefficiency={{{mmaterialefficiency|}}} }}|}}
 +
{{#if: {{{lmaterialefficiency|}}}|{{#set:lmaterialefficiency={{{lmaterialefficiency|}}} }}|}}
 +
{{#if: {{{smaterialefficiency|}}}|{{#set:smaterialefficiency={{{smaterialefficiency|}}} }}|}}
 +
{{#if: {{{rrefinespeed|}}}|{{#set:rrefinespeed={{{rrefinespeed|}}} }}|}}
 +
{{#if: {{{mrefinespeed|}}}|{{#set:mrefinespeed={{{mrefinespeed|}}} }}|}}
 +
{{#if: {{{lrefinespeed|}}}|{{#set:lrefinespeed={{{lrefinespeed|}}} }}|}}
 +
{{#if: {{{srefinespeed|}}}|{{#set:srefinespeed={{{srefinespeed|}}} }}|}}
 
{{#if: {{{ccomponent1|}}}|{{#set:ccomponent1={{{ccomponent1|}}} }}|}}
 
{{#if: {{{ccomponent1|}}}|{{#set:ccomponent1={{{ccomponent1|}}} }}|}}
 
{{#if: {{{lcomponent1|}}}|{{#set:lcomponent1={{{lcomponent1|}}} }}|}}
 
{{#if: {{{lcomponent1|}}}|{{#set:lcomponent1={{{lcomponent1|}}} }}|}}
Line 96: Line 111:
 
|translation = {{{translation|}}}
 
|translation = {{{translation|}}}
 
|mass = {{calculate mass|l|{{FULLPAGENAME}}}}
 
|mass = {{calculate mass|l|{{FULLPAGENAME}}}}
|integrity = {{{integrity|}}}
+
|integrity = {{{lintegrity|}}}
 
|dropprob = {{{dropprob|}}}
 
|dropprob = {{{dropprob|}}}
 
|buildtime = {{{lbuildtime|}}}
 
|buildtime = {{{lbuildtime|}}}
 
|disassembleratio= {{{ldisassembleratio|}}}
 
|disassembleratio= {{{ldisassembleratio|}}}
 
|deformationratio = {{{ldeformationratio|}}}
 
|deformationratio = {{{ldeformationratio|}}}
|materialefficiency = {{{materialefficiency|}}}
+
|materialefficiency = {{{lmaterialefficiency|}}}
|refinespeed = {{{refinespeed|}}}
+
|refinespeed = {{{lrefinespeed|}}}
 
|resourcesourcegroup = {{{lresourcesourcegroup|}}}
 
|resourcesourcegroup = {{{lresourcesourcegroup|}}}
 
|resourcesinkgroup = {{{lresourcesinkgroup|}}}
 
|resourcesinkgroup = {{{lresourcesinkgroup|}}}
Line 143: Line 158:
 
|nocat= {{{nocat|}}}
 
|nocat= {{{nocat|}}}
 
}}  {{#set:lmass={{calculate mass|l|{{FULLPAGENAME}} }} }}  
 
}}  {{#set:lmass={{calculate mass|l|{{FULLPAGENAME}} }} }}  
 +
<!--{{#set:lintegrity={{calculate integrity|l|{{FULLPAGENAME}} }} }} -->
 
|}}{{#ifeq: {{lc:{{{smallship|yes}}} }}|yes|
 
|}}{{#ifeq: {{lc:{{{smallship|yes}}} }}|yes|
 
{{componentbox
 
{{componentbox
Line 150: Line 166:
 
|translation = {{{translation|}}}
 
|translation = {{{translation|}}}
 
|mass = {{calculate mass|s|{{FULLPAGENAME}}}}
 
|mass = {{calculate mass|s|{{FULLPAGENAME}}}}
|integrity= {{{integrity|}}}
+
|integrity= {{{sintegrity|}}}
 
|dropprob = {{{dropprob|}}}
 
|dropprob = {{{dropprob|}}}
 
|buildtime = {{{sbuildtime|}}}
 
|buildtime = {{{sbuildtime|}}}
|materialefficiency = {{{materialefficiency|}}}
+
|materialefficiency = {{{smaterialefficiency|}}}
|refinespeed = {{{refinespeed|}}}
+
|refinespeed = {{{srefinespeed|}}}
 
|disassembleratio = {{{sdisassembleratio|}}}
 
|disassembleratio = {{{sdisassembleratio|}}}
 
|deformationratio = {{{sdeformationratio|}}}
 
|deformationratio = {{{sdeformationratio|}}}
Line 197: Line 213:
 
|nocat = {{{nocat|}}}
 
|nocat = {{{nocat|}}}
 
}} {{#set:smass={{calculate mass|s|{{FULLPAGENAME}}}}}}
 
}} {{#set:smass={{calculate mass|s|{{FULLPAGENAME}}}}}}
 +
<!--{{#set:sintegrity={{calculate integrity|s|{{FULLPAGENAME}} }} }} -->
 
|}}{{#ifeq: {{lc:{{{component|yes}}} }}|yes|
 
|}}{{#ifeq: {{lc:{{{component|yes}}} }}|yes|
 
{{componentbox
 
{{componentbox
Line 205: Line 222:
 
|mass = {{{cmass|}}}
 
|mass = {{{cmass|}}}
 
|volume = {{{cvolume|}}}
 
|volume = {{{cvolume|}}}
|integrity= {{{integrity|}}}
+
|integrity= {{{tintegrity|}}}
 
|dropprob = {{{dropprob|}}}
 
|dropprob = {{{dropprob|}}}
 
|buildtime = {{{cbuildtime|}}}
 
|buildtime = {{{cbuildtime|}}}
|materialefficiency = {{{materialefficiency|}}}
+
|materialefficiency = {{{cmaterialefficiency|}}}
|refinespeed = {{{refinespeed|}}}
+
|refinespeed = {{{crefinespeed|}}}
 
|capacity = {{{capacity|}}}
 
|capacity = {{{capacity|}}}
 
|component1 = {{{ccomponent1|}}}
 
|component1 = {{{ccomponent1|}}}
Line 243: Line 260:
 
|volume = {{{tvolume|}}}
 
|volume = {{{tvolume|}}}
 
|gascapacity = {{{tgascapacity|}}}
 
|gascapacity = {{{tgascapacity|}}}
|integrity= {{{integrity|}}}
+
|integrity= {{{tintegrity|}}}
 
|dropprob = {{{dropprob|}}}
 
|dropprob = {{{dropprob|}}}
|materialefficiency = {{{materialefficiency|}}}
+
|materialefficiency = {{{tmaterialefficiency|}}}
|refinespeed = {{{refinespeed|}}}
+
|refinespeed = {{{trefinespeed|}}}
 
|buildtime = {{{cbuildtime|}}}
 
|buildtime = {{{cbuildtime|}}}
 
|component1 = {{{ccomponent1|}}}
 
|component1 = {{{ccomponent1|}}}
Line 278: Line 295:
 
|mass = {{{rmass|}}}
 
|mass = {{{rmass|}}}
 
|volume = {{{rvolume|}}}
 
|volume = {{{rvolume|}}}
|integrity= {{{integrity|}}}
+
|integrity= {{{rintegrity|}}}
 
|dropprob = {{{dropprob|}}}
 
|dropprob = {{{dropprob|}}}
|materialefficiency = {{{materialefficiency|}}}
+
|materialefficiency = {{{rmaterialefficiency|}}}
|refinespeed = {{{refinespeed|}}}
+
|refinespeed = {{{rrefinespeed|}}}
 
|component1 = {{{ccomponent1|}}}
 
|component1 = {{{ccomponent1|}}}
 
|component1amt = {{{ccomponent1amt|}}}
 
|component1amt = {{{ccomponent1amt|}}}
Line 312: Line 329:
 
|mass = {{{mmass|}}}
 
|mass = {{{mmass|}}}
 
|volume = {{{mvolume|}}}
 
|volume = {{{mvolume|}}}
|materialefficiency = {{{materialefficiency|}}}
+
|materialefficiency = {{{mmaterialefficiency|}}}
|refinespeed = {{{refinespeed|}}}
+
|refinespeed = {{{mrefinespeed|}}}
 
|refinefrom = {{{refinefrom|}}}
 
|refinefrom = {{{refinefrom|}}}
 
|nocat= {{{nocat|}}}
 
|nocat= {{{nocat|}}}

Revision as of 16:34, 6 April 2016

No Image Icon.png
Large Ship Icon.png
Large Ship / Station
No Image
 
Components
Required

 

 
 
Mass (kg):
0
No Image Icon.png
Small Ship Icon.png
Small Ship
No Image
 
Components
Required

 

 
 
Mass (kg):
0
No Image Icon.png
Component Icon.png
Component
No Image
 
Components
Required

 

 
 
Mass (kg):
No Image Icon.png
Tool Icon.png
Tool
No Image
 
Components
Required

 

 
 
Mass (kg):
No Image Icon.png
Raw Icon.png
Raw Material
No Image

 

 
 
Mass (kg):
No Image Icon.png
Material Icon.png
Material
No Image

 

 
 
Mass (kg):

Itembox template

Usage

Note that only item is required, designations are highly recommended, if not specified the template will assume you want it, components are all optional arguments, if your item only has 1 component you only need to use the first component variable.

NOTE smass and lmass have been depreciated. Mass is now automatically calculated!
{{itembox
| item = Item name, use caps on each part, English only
| description = item description, can be translated. 
| lang = language code override defaults to language of page used on (not implemented yet)
| translation = translated item name
| tool = yes/no (engineer tool?)
| largeship = yes/no (large ship part?)
| smallship = yes/no (small ship part?)
| component = yes/no (is this a component made by the assembler?)
| material = yes/no (is this a material made by the refinery?)
| rawmaterial = yes/no (is this a raw material?)
| integrity = part integrity, refer to .sbc definition file
| dropprob = drop probability, refer to .sbc definition file
| materialefficiency = material efficiency, refer to .sbc definition file
| refinespeed = refining speed, refer to .sbc definition file
| capacity = ammo capacity

| cmass = mass of one component in kg 
| cvolume = volume of one component in l
| cgascapacity = max gas capacity (for oxygen and hydrogen bottles) 
| tmass = mass of one tool in kg 
| tvolume = volume of one tool in l 
| rmass = mass of one raw material in kg 
| rvolume = volume of one raw material in l 
| mmass = mass of one material(ingot) in kg 
| mvolume = volume of one material(ingot) in l 
| refinetime = time it takes to refine, get this from the data files
| refineefficiecy = percent converted to ingots

| cbuildtime = build time in seconds, refer to blueprints.sbc file
| ccomponent1 = First build material for component/tool
| ccomponent1amt = amount
| ccomponent2 ... 10 = Second through tenth build materials
| ccomponent2 ... 10amt = amount

| sresourcesourcegroup = the resource group (power producers) as described in resourcedistributiongroups.sbc
| sresourcesinkgroup = the resource group (power users) as described in resourcedistributiongroups.sbc
| spowerconsumption = power consumed when working, small ship
| spowerstandby = power consumed when idle, small ship
| sdeformationratio = deformation ratio, refer to .sbc file, small ship
| sbuildtime = build time in seconds, refer to .sbc file, small ship
| sdisassembleratio= disassemble ratio, refer to .sbc file, small ship
| svirtualmass = virtual mass provided when powered on.
| sstoragecapacity = Storage capacity
| smaxstoredenergy = Max stored energy
| sforcemagnitude = Max Thrust Force
| sgascapacity = max gas capacity (for oxygen and hydrogen)
| sairtightness = This ONLY works with: "yes", "sometimes" anything else will have it default to "No". This includes "YES", "Yes", "true", "Sometimes" and etc - only use 'yes' or 'sometimes' in lowercase. 
| spartof = the related block that usually comes pre-attached to this block (piston&piston base,rotor&rotor plate)
| sheight = height of block
| swidth = width of block
| sdepth = depth of block

| scomponentstructure = number where structure begins (red line in user interface in game while building)
| scomponentproperty = number where property begins (green line in user interface in game while building)
| scomponent1 = First build component for small ships
| scomponent1amt = 1 First build component for small ships
| scomponent2 ... 10 = Second through tenth build components
| scomponent2 ... 10amt = amount


| lresourcesourcegroup = the resource group (power producers) as described in resourcedistributiongroups.sbc
| lresourcesinkgroup = the resource group (power users) as described in  resourcedistributiongroups.sbc
| lpowerconsumption = power consumed when working, large ship
| lpowerstandby = power consumed when idle, large ship
| ldeformationratio = deformation ratio, refer to .sbc file, large ship
| lbuildtime = build time in seconds, refer to .sbc file
| ldisassembleratio= disassemble ratio, refer to .sbc file
| lvirtualmass = virtual mass provided when powered on.
| lstoragecapacity = Storage capacity
| lmaxstoredenergy = Max stored energy
| lforcemagnitude = Max Thrust Force
| lgascapacity = max gas capacity (for oxygen and hydrogen)
| lairtightness = This ONLY works with: "yes", "sometimes" anything else will have it default to "No". This includes "YES", "Yes", "true", "Sometimes" and etc - only use 'yes' or 'sometimes' in lowercase. 
| lpartof = the related block that usually comes pre-attached to this block (piston&piston base,rotor&rotor plate)
| lheight = height of block
| lwidth = width of block
| ldepth = depth of block


| lcomponentstructure = number where structure begins (red line in user interface in game while building)
| lcomponentproperty = number where property begins (green line in user interface in game while building)
| lcomponent1 = First build component for large ships
| lcomponent1amt = amount
| lcomponent2 ... 10 = Second through tenth build components
| lcomponent2 ... 10amt = amount

| refinefrom = <ore item> Item this item refines from. 

| nocat= yes/no defaults to no 
| version = current game version, so we know if this is updated or not. 
}}