Difference between revisions of "Template:Itembox"

From Space Engineers Wiki
Jump to: navigation, search
(+trying fix weird mass calc issue.)
(Undo revision 15446 by Westeastnorth (talk))
Line 15: Line 15:
 
{{#if: {{{smaxstoredenergy|}}}|{{#set:smaxstoredenergy={{{smaxstoredenergy|}}} }}|}}
 
{{#if: {{{smaxstoredenergy|}}}|{{#set:smaxstoredenergy={{{smaxstoredenergy|}}} }}|}}
 
{{#if: {{{lmaxstoredenergy|}}}|{{#set:lmaxstoredenergy={{{lmaxstoredenergy|}}} }}|}}
 
{{#if: {{{lmaxstoredenergy|}}}|{{#set:lmaxstoredenergy={{{lmaxstoredenergy|}}} }}|}}
{{#if: {{{ccomponent01|}}}|{{#set:ccomponent01={{{ccomponent01|}}} }}|}}
+
{{#if: {{{ccomponent1|}}}|{{#set:ccomponent1={{{ccomponent1|}}} }}|}}
{{#if: {{{lcomponent01|}}}|{{#set:lcomponent01={{{lcomponent01|}}} }}|}}
+
{{#if: {{{lcomponent1|}}}|{{#set:lcomponent1={{{lcomponent1|}}} }}|}}
{{#if: {{{scomponent01|}}}|{{#set:scomponent01={{{scomponent01|}}} }}|}}
+
{{#if: {{{scomponent1|}}}|{{#set:scomponent1={{{scomponent1|}}} }}|}}
{{#if: {{{ccomponent01amt|}}}|{{#set:ccomponent01amt={{{ccomponent01amt|}}} }}|}}
+
{{#if: {{{ccomponent1amt|}}}|{{#set:ccomponent1amt={{{ccomponent1amt|}}} }}|}}
{{#if: {{{lcomponent01amt|}}}|{{#set:lcomponent01amt={{{lcomponent01amt|}}} }}|}}
+
{{#if: {{{lcomponent1amt|}}}|{{#set:lcomponent1amt={{{lcomponent1amt|}}} }}|}}
{{#if: {{{scomponent01amt|}}}|{{#set:scomponent01amt={{{scomponent01amt|}}} }}|}}
+
{{#if: {{{scomponent1amt|}}}|{{#set:scomponent1amt={{{scomponent1amt|}}} }}|}}
 
{{#if: {{{ccomponent2|}}}|{{#set:ccomponent2={{{ccomponent2|}}} }}|}}
 
{{#if: {{{ccomponent2|}}}|{{#set:ccomponent2={{{ccomponent2|}}} }}|}}
 
{{#if: {{{lcomponent2|}}}|{{#set:lcomponent2={{{lcomponent2|}}} }}|}}
 
{{#if: {{{lcomponent2|}}}|{{#set:lcomponent2={{{lcomponent2|}}} }}|}}
Line 105: Line 105:
 
|storagecapacity = {{{lstoragecapacity|}}}
 
|storagecapacity = {{{lstoragecapacity|}}}
 
|maxstoredenergy = {{{lmaxstoredenergy|}}}
 
|maxstoredenergy = {{{lmaxstoredenergy|}}}
|component01= {{{lcomponent01|}}}
+
|component1 = {{{lcomponent1|}}}
|component01amt = {{{lcomponent01amt|}}}
+
|component1amt = {{{lcomponent1amt|}}}
 
|component2 = {{{lcomponent2|}}}
 
|component2 = {{{lcomponent2|}}}
 
|component2amt = {{{lcomponent2amt|}}}
 
|component2amt = {{{lcomponent2amt|}}}
Line 154: Line 154:
 
|storagecapacity = {{{sstoragecapacity|}}}
 
|storagecapacity = {{{sstoragecapacity|}}}
 
|maxstoredenergy = {{{smaxstoredenergy|}}}
 
|maxstoredenergy = {{{smaxstoredenergy|}}}
|component01= {{{scomponent01|}}}
+
|component1 = {{{scomponent1|}}}
|component01amt = {{{scomponent01amt|}}}
+
|component1amt = {{{scomponent1amt|}}}
 
|component2 = {{{scomponent2|}}}
 
|component2 = {{{scomponent2|}}}
 
|component2amt = {{{scomponent2amt|}}}
 
|component2amt = {{{scomponent2amt|}}}
Line 195: Line 195:
 
|refinespeed = {{{refinespeed|}}}
 
|refinespeed = {{{refinespeed|}}}
 
|capacity = {{{capacity|}}}
 
|capacity = {{{capacity|}}}
|component01= {{{ccomponent01|}}}
+
|component1 = {{{ccomponent1|}}}
|component01amt = {{{ccomponent01amt|}}}
+
|component1amt = {{{ccomponent1amt|}}}
 
|component2 = {{{ccomponent2|}}}
 
|component2 = {{{ccomponent2|}}}
 
|component2amt = {{{ccomponent2amt|}}}
 
|component2amt = {{{ccomponent2amt|}}}
Line 231: Line 231:
 
|refinespeed = {{{refinespeed|}}}
 
|refinespeed = {{{refinespeed|}}}
 
|buildtime = {{{cbuildtime|}}}
 
|buildtime = {{{cbuildtime|}}}
|component01= {{{ccomponent01|}}}
+
|component1 = {{{ccomponent1|}}}
|component01amt = {{{ccomponent01amt|}}}
+
|component1amt = {{{ccomponent1amt|}}}
 
|component2 = {{{ccomponent2|}}}
 
|component2 = {{{ccomponent2|}}}
 
|component2amt = {{{ccomponent2amt|}}}
 
|component2amt = {{{ccomponent2amt|}}}
Line 265: Line 265:
 
|materialefficiency = {{{materialefficiency|}}}
 
|materialefficiency = {{{materialefficiency|}}}
 
|refinespeed = {{{refinespeed|}}}
 
|refinespeed = {{{refinespeed|}}}
|component01= {{{ccomponent01|}}}
+
|component1 = {{{ccomponent1|}}}
|component01amt = {{{ccomponent01amt|}}}
+
|component1amt = {{{ccomponent1amt|}}}
 
|component2 = {{{ccomponent2|}}}
 
|component2 = {{{ccomponent2|}}}
 
|component2amt = {{{ccomponent2amt|}}}
 
|component2amt = {{{ccomponent2amt|}}}
Line 336: Line 336:
  
 
| cbuildtime = build time in seconds, refer to blueprints.sbc file
 
| cbuildtime = build time in seconds, refer to blueprints.sbc file
| ccomponent01 = First build material for component/tool
+
| ccomponent1 = First build material for component/tool
| ccomponent01amt = amount
+
| ccomponent1amt = amount
 
| ccomponent2 ... 9 = Second through ninth build materials
 
| ccomponent2 ... 9 = Second through ninth build materials
 
| ccomponent2 ... 9amt = amount
 
| ccomponent2 ... 9amt = amount
Line 355: Line 355:
 
| scomponentstructure = number where structure begins (red line in user interface in game while building)
 
| 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)
 
| scomponentproperty = number where property begins (green line in user interface in game while building)
| scomponent01 = First build component for small ships
+
| scomponent1 = First build component for small ships
| scomponent01amt = 1 First build component for small ships
+
| scomponent1amt = 1 First build component for small ships
 
| scomponent2 ... 9 = Second through ninth build components
 
| scomponent2 ... 9 = Second through ninth build components
 
| scomponent2 ... amt = amount
 
| scomponent2 ... amt = amount
Line 376: Line 376:
 
| lcomponentstructure = number where structure begins (red line in user interface in game while building)
 
| 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)
 
| lcomponentproperty = number where property begins (green line in user interface in game while building)
| lcomponent01 = First build component for large ships
+
| lcomponent1 = First build component for large ships
| lcomponent01amt = amount
+
| lcomponent1amt = amount
 
| lcomponent2 ... 9 = Second through ninth build components
 
| lcomponent2 ... 9 = Second through ninth build components
 
| lcomponent2 ... 9amt = amount
 
| lcomponent2 ... 9amt = amount

Revision as of 14:53, 16 November 2015

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 
| 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 ... 9 = Second through ninth build materials
| ccomponent2 ... 9amt = amount

| 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
| 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 ... 9 = Second through ninth build components
| scomponent2 ... amt = amount


| 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
| 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 ... 9 = Second through ninth build components
| lcomponent2 ... 9amt = 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. 
}}