Difference between revisions of "Template:Itembox"

From Space Engineers Wiki
Jump to: navigation, search
m (slight tweak)
m (I highlighted the file names)
 
(12 intermediate revisions by 4 users not shown)
Line 33: Line 33:
 
{{#if: {{{lgascapacity|}}}|{{#set:lgascapacity={{{lgascapacity|}}} }}|}}
 
{{#if: {{{lgascapacity|}}}|{{#set:lgascapacity={{{lgascapacity|}}} }}|}}
 
{{#if: {{{sgascapacity|}}}|{{#set:sgascapacity={{{sgascapacity|}}} }}|}}
 
{{#if: {{{sgascapacity|}}}|{{#set:sgascapacity={{{sgascapacity|}}} }}|}}
 +
{{#if: {{{lforcemagnitude|}}}|{{#set:lforcemagnitude={{{lforcemagnitude|}}} }}|}}
 +
{{#if: {{{sforcemagnitude|}}}|{{#set:sforcemagnitude={{{sforcemagnitude|}}} }}|}}
 
{{#if: {{{rmaterialefficiency|}}}|{{#set:rmaterialefficiency={{{rmaterialefficiency|}}} }}|}}
 
{{#if: {{{rmaterialefficiency|}}}|{{#set:rmaterialefficiency={{{rmaterialefficiency|}}} }}|}}
 
{{#if: {{{mmaterialefficiency|}}}|{{#set:mmaterialefficiency={{{mmaterialefficiency|}}} }}|}}
 
{{#if: {{{mmaterialefficiency|}}}|{{#set:mmaterialefficiency={{{mmaterialefficiency|}}} }}|}}
Line 46: Line 48:
 
{{#if: {{{tshotdeviation|}}}|{{#set:tshotdeviation={{{tshotdeviation|}}} }}|}}
 
{{#if: {{{tshotdeviation|}}}|{{#set:tshotdeviation={{{tshotdeviation|}}} }}|}}
 
{{#if: {{{lshotdeviation|}}}|{{#set:lshotdeviation={{{lshotdeviation|}}} }}|}}
 
{{#if: {{{lshotdeviation|}}}|{{#set:lshotdeviation={{{lshotdeviation|}}} }}|}}
{{#if: {{{sshotdeviation|}}}|{{#set:sshotdeviation={{{sshotdeviation|}}} }}|}}}
+
{{#if: {{{sshotdeviation|}}}|{{#set:sshotdeviation={{{sshotdeviation|}}} }}|}}
 
{{#if: {{{tammo|}}}|{{#set:tammo={{{tammo|}}} }}|}}
 
{{#if: {{{tammo|}}}|{{#set:tammo={{{tammo|}}} }}|}}
 
{{#if: {{{lammo|}}}|{{#set:lammo={{{lammo|}}} }}|}}
 
{{#if: {{{lammo|}}}|{{#set:lammo={{{lammo|}}} }}|}}
 
{{#if: {{{sammo|}}}|{{#set:sammo={{{sammo|}}} }}|}}
 
{{#if: {{{sammo|}}}|{{#set:sammo={{{sammo|}}} }}|}}
 +
{{#if: {{{tspeedmult|}}}|{{#set:tspeedmult={{{tspeedmult|}}} }}|}}
 +
{{#if: {{{treachmult|}}}|{{#set:treachmult={{{treachmult|}}} }}|}}
 
{{#if: {{{ccomponent1|}}}|{{#set:ccomponent1={{{ccomponent1|}}} }}|}}
 
{{#if: {{{ccomponent1|}}}|{{#set:ccomponent1={{{ccomponent1|}}} }}|}}
 
{{#if: {{{lcomponent1|}}}|{{#set:lcomponent1={{{lcomponent1|}}} }}|}}
 
{{#if: {{{lcomponent1|}}}|{{#set:lcomponent1={{{lcomponent1|}}} }}|}}
Line 116: Line 120:
 
{{#if: {{{ldepth|}}}|{{#set:ldepth={{{ldepth|}}} }}|}}
 
{{#if: {{{ldepth|}}}|{{#set:ldepth={{{ldepth|}}} }}|}}
 
{{#if: {{{sdepth|}}}|{{#set:sdepth={{{sdepth|}}} }}|}}
 
{{#if: {{{sdepth|}}}|{{#set:sdepth={{{sdepth|}}} }}|}}
 +
{{#if: {{{lpcu|}}}|{{#set:lpcu={{{lpcu|}}} }}|}}
 +
{{#if: {{{spcu|}}}|{{#set:spcu={{{spcu|}}} }}|}}
 +
{{#if: {{{lfuelconverterefficiency|}}}|{{#set:lfuelconverterefficiency={{{lfuelconverterefficiency|}}} }}|}}
 +
{{#if: {{{sfuelconverterefficiency|}}}|{{#set:sfuelconverterefficiency={{{sfuelconverterefficiency|}}} }}|}}
 +
{{#if: {{{spowerconsumption|}}}|{{#set:spowerconsumption={{{spowerconsumption|}}} }}|}}
 +
{{#if: {{{lpowerconsumption|}}}|{{#set:lpowerconsumption={{{lpowerconsumption|}}} }}|}}
 
}} |}}  
 
}} |}}  
 
<!--Version Control-->{{#if: {{NAMESPACE}} | | {{#ifeq: {{#show: {{removelc|{{FULLPAGENAME}}}} | ?version}} | {{#show: {{FULLPAGENAME}} | ?version}} | | {{Notice|{{Notice/OutofDateMsg{{lang}}}}}}}} }}</includeonly>
 
<!--Version Control-->{{#if: {{NAMESPACE}} | | {{#ifeq: {{#show: {{removelc|{{FULLPAGENAME}}}} | ?version}} | {{#show: {{FULLPAGENAME}} | ?version}} | | {{Notice|{{Notice/OutofDateMsg{{lang}}}}}}}} }}</includeonly>
Line 155: Line 165:
 
|gascapacity = {{{lgascapacity|}}}
 
|gascapacity = {{{lgascapacity|}}}
 
|airtightness = {{{lairtightness|}}}
 
|airtightness = {{{lairtightness|}}}
|ROF = {{{lROF}}}
+
|ROF = {{{lROF|}}}
|shotdeviation = {{{lshotdeviation}}}
+
|shotdeviation = {{{lshotdeviation|}}}
|ammo = {{{lammo}}}
+
|ammo = {{{lammo|}}}
 
|partof = {{{lpartof|}}}
 
|partof = {{{lpartof|}}}
 
|component1 = {{{lcomponent1|}}}
 
|component1 = {{{lcomponent1|}}}
Line 184: Line 194:
 
|height = {{{lheight|}}}
 
|height = {{{lheight|}}}
 
|depth = {{{ldepth|}}}
 
|depth = {{{ldepth|}}}
 +
|pcu = {{{lpcu|}}}
 +
|fuelconverterefficiency = {{{lfuelconverterefficiency|}}}
 
|nocat= {{{nocat|}}}
 
|nocat= {{{nocat|}}}
 
}}  {{#set:lmass={{calculate mass|l|{{FULLPAGENAME}} }} }}
 
}}  {{#set:lmass={{calculate mass|l|{{FULLPAGENAME}} }} }}
Line 213: Line 225:
 
|gascapacity = {{{sgascapacity|}}}
 
|gascapacity = {{{sgascapacity|}}}
 
|airtightness = {{{sairtightness|}}}
 
|airtightness = {{{sairtightness|}}}
|ROF = {{{sROF}}}
+
|ROF = {{{sROF|}}}
|shotdeviation = {{{sshotdeviation}}}
+
|shotdeviation = {{{sshotdeviation|}}}
|ammo = {{{sammo}}}
+
|ammo = {{{sammo|}}}
 
|partof = {{{spartof|}}}
 
|partof = {{{spartof|}}}
 
|component1 = {{{scomponent1|}}}
 
|component1 = {{{scomponent1|}}}
Line 242: Line 254:
 
|height = {{{sheight|}}}
 
|height = {{{sheight|}}}
 
|depth = {{{sdepth|}}}
 
|depth = {{{sdepth|}}}
 +
|pcu = {{{spcu|}}}
 +
|fuelconverterefficiency = {{{sfuelconverterefficiency|}}}
 
|nocat = {{{nocat|}}}
 
|nocat = {{{nocat|}}}
 
}} {{#set:smass={{calculate mass|s|{{FULLPAGENAME}}}}}}
 
}} {{#set:smass={{calculate mass|s|{{FULLPAGENAME}}}}}}
Line 294: Line 308:
 
|materialefficiency = {{{tmaterialefficiency|}}}
 
|materialefficiency = {{{tmaterialefficiency|}}}
 
|refinespeed = {{{trefinespeed|}}}
 
|refinespeed = {{{trefinespeed|}}}
|ROF = {{{tROF}}}
+
|ROF = {{{tROF|}}}
|shotdeviation = {{{tshotdeviation}}}
+
|shotdeviation = {{{tshotdeviation|}}}
|ammo = {{{tammo}}}
+
|ammo = {{{tammo|}}}
 +
|speedmult = {{{tspeedmult|}}}
 +
|reachmult = {{{treachmult|}}}
 
|buildtime = {{{cbuildtime|}}}
 
|buildtime = {{{cbuildtime|}}}
 
|component1 = {{{ccomponent1|}}}
 
|component1 = {{{ccomponent1|}}}
Line 368: Line 384:
 
}}  
 
}}  
 
|}} }}</div><noinclude>
 
|}} }}</div><noinclude>
Itembox template
+
 
 
==Usage==
 
==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: 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 deprecated. Mass is now automatically calculated!
 +
 
 +
NOTE: sintegrity and lintegrity have been deprecated. Integrity is now automatically calculated for large and small blocks (not components)
 
<pre>
 
<pre>
NOTE smass and lmass have been depreciated. Mass is now automatically calculated!
 
NOTE sintegrity and lintegrity have been depreciated. Integrity is now automatically calculated for large and small blocks (not components)
 
 
{{itembox
 
{{itembox
 
| item = Item name, use caps on each part, English only
 
| item = Item name, use caps on each part, English only
Line 412: Line 430:
 
| ccomponent2 ... 10amt = amount
 
| ccomponent2 ... 10amt = amount
  
| sresourcesourcegroup = the resource group (power producers) as described in resourcedistributiongroups.sbc
+
| sresourcesourcegroup = the resource group (power producers) as described in "resourcedistributiongroups.sbc"
| sresourcesinkgroup = the resource group (power users) as described in resourcedistributiongroups.sbc
+
| sresourcesinkgroup = the resource group (power users) as described in "resourcedistributiongroups.sbc"
 
| spowerconsumption = power consumed when working, small ship
 
| spowerconsumption = power consumed when working, small ship
 
| spowerstandby = power consumed when idle, small ship
 
| spowerstandby = power consumed when idle, small ship
Line 429: Line 447:
 
| swidth = width of block
 
| swidth = width of block
 
| sdepth = depth of block
 
| sdepth = depth of block
 +
| spcu = PCU cost of block
 +
| sfuelconverterefficiency = MW to m<sup>3</sup> conversion efficiency. (So far only hydrogen thrusters use this)
  
 
| 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)
Line 438: Line 458:
  
  
| lresourcesourcegroup = the resource group (power producers) as described in resourcedistributiongroups.sbc
+
| lresourcesourcegroup = the resource group (power producers) as described in "resourcedistributiongroups.sbc"
| lresourcesinkgroup = the resource group (power users) as described in  resourcedistributiongroups.sbc
+
| lresourcesinkgroup = the resource group (power users) as described in  "resourcedistributiongroups.sbc"
 
| lpowerconsumption = power consumed when working, large ship
 
| lpowerconsumption = power consumed when working, large ship
 
| lpowerstandby = power consumed when idle, large ship
 
| lpowerstandby = power consumed when idle, large ship
Line 455: Line 475:
 
| lwidth = width of block
 
| lwidth = width of block
 
| ldepth = depth of block
 
| ldepth = depth of block
 +
| lpcu = PCU cost of block
 +
| lfuelconverterefficiency = MW to m<sup>3</sup> conversion efficiency. (So far only hydrogen thrusters use this)
  
  

Latest revision as of 17:16, 21 September 2021

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

 

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

 

 
 
Mass (kg):
0
 
Integrity:
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):

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 deprecated. Mass is now automatically calculated!

NOTE: sintegrity and lintegrity have been deprecated. Integrity is now automatically calculated for large and small blocks (not components)

{{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)
| guivisible = false / true defaults to true set the page to disabled, for all block are in .sbc file as guivisible = false blocks are temporary not visible, then the block is not displayed in lists.
| disabledsince = [[version]] if "guivisible = false" then a version should be specified, since when it is disabled.
| 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
| mmaterialefficiency = 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
| rmaterialefficiency = 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
| spcu = PCU cost of block
| sfuelconverterefficiency = MW to m<sup>3</sup> conversion efficiency. (So far only hydrogen thrusters use this)

| 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
| lpcu = PCU cost of block
| lfuelconverterefficiency = MW to m<sup>3</sup> conversion efficiency. (So far only hydrogen thrusters use this)


| 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. 
}}