Difference between revisions of "Template:Componentbox"

From Space Engineers Wiki
Jump to: navigation, search
m (template made slightly less flexible but still flexible to help with parser magic.)
(+this template is now translatable)
Line 69: Line 69:
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/gascapacity{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{gascapacity|0}}}</div></div>
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/gascapacity{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{gascapacity|0}}}</div></div>
 
|}}{{#if: {{{airtightness|}}} |
 
|}}{{#if: {{{airtightness|}}} |
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/airtightness{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{#switch: {{lc:{{{airtightness}}}}}|yes = Always[[Category:Airtight Block]]|sometimes = Yes - <small>depends on orientation</small>[[Category:Airtight Block]]| No}}</div></div>
+
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/airtightness{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{#switch: {{lc:{{{airtightness}}}}}|yes = {{Componentbox/airtightness-yes{{lang}}}}[[Category:Airtight Block]]|sometimes = {{Componentbox/airtightness-sometimes{{lang}}}}[[Category:Airtight Block]]| {{Componentbox/airtightness-no{{lang}}}}}}</div></div>
 
|}}<!-- these parts should be LAST -->{{#if: {{{resourcesinkgroup|}}} |
 
|}}<!-- these parts should be LAST -->{{#if: {{{resourcesinkgroup|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/resourcesinkgroup{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{resourcesinkgroup|0}}}</div></div>
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/resourcesinkgroup{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{resourcesinkgroup|0}}}</div></div>

Revision as of 15:17, 26 March 2016

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

 

 
 
Mass (kg):
0