Difference between revisions of "Template:Componentbox"

From Space Engineers Wiki
Jump to: navigation, search
(+i changed partof - it now has an expensive parser, talk to me if it's too costily)
m (Removed Fuel consumption replacement label of Power consumption. It is not a 1:1 ratio.)
 
(27 intermediate revisions by 3 users not shown)
Line 9: Line 9:
 
  | r = Raw
 
  | r = Raw
 
  | m = Material
 
  | m = Material
 +
| d = disabled
 
}}|medium}}</div>
 
}}|medium}}</div>
 
<div style="font-size:0.5em;width=50%;position:relative;top:-2px">{{Componentbox/{{#switch: {{{type|l}}}
 
<div style="font-size:0.5em;width=50%;position:relative;top:-2px">{{Componentbox/{{#switch: {{{type|l}}}
Line 17: Line 18:
 
  | r = Raw Material
 
  | r = Raw Material
 
  | m = Material
 
  | m = Material
 +
| d = disabled
 
}}{{lang}}}}</div>
 
}}{{lang}}}}</div>
 
{{#if: {{{translation|}}} | {{{translation|}}} | {{{item|No Item}}} }}</div>
 
{{#if: {{{translation|}}} | {{{translation|}}} | {{{item|No Item}}} }}</div>
 +
{{#switch:{{{type|}}}|m|r=<!-- -->
 +
|d=<div style="float:left;padding:5px;color:white;font-size:1.2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Arial;">{{Componentbox/disabledsince{{lang}}}}</div><div style="float:right;padding:5px;color:white;font-size:1.2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Arial;">{{{disabledsince|}}}</div>
 +
|#default=
 
<div style="background:#659bb7;width:100%;height:3px;position:relative;">&nbsp;</div>
 
<div style="background:#659bb7;width:100%;height:3px;position:relative;">&nbsp;</div>
{{#switch:{{{type|}}}|m|r|#default=
 
 
<div style="float:left;padding:5px;color:white;font-size:1.2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Arial;">{{Componentbox/Components{{lang}}}}</div><div style="float:right;padding:5px;color:white;font-size:1.2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Arial;">{{Componentbox/Required{{lang}}}}</div>}}
 
<div style="float:left;padding:5px;color:white;font-size:1.2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Arial;">{{Componentbox/Components{{lang}}}}</div><div style="float:right;padding:5px;color:white;font-size:1.2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Arial;">{{Componentbox/Required{{lang}}}}</div>}}
 
&nbsp;
 
&nbsp;
Line 27: Line 31:
 
style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component3|}}}|{{{component3amt|0}}}}}{{#ifeq: {{{structure}}}|4|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component4|}}}|{{{component4amt|0}}}}}{{#ifeq: {{{structure}}}|5|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component5|}}}|{{{component5amt|0}}}}}{{#ifeq: {{{structure}}}|6|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component6|}}}|{{{component6amt|0}}}}}{{#ifeq: {{{structure}}}|7|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component7|}}}|{{{component7amt|0}}}}}{{#ifeq: {{{structure}}}|8|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component8|}}}|{{{component8amt|0}}}}}{{#ifeq: {{{structure}}}|9|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}
 
style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component3|}}}|{{{component3amt|0}}}}}{{#ifeq: {{{structure}}}|4|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component4|}}}|{{{component4amt|0}}}}}{{#ifeq: {{{structure}}}|5|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component5|}}}|{{{component5amt|0}}}}}{{#ifeq: {{{structure}}}|6|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component6|}}}|{{{component6amt|0}}}}}{{#ifeq: {{{structure}}}|7|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component7|}}}|{{{component7amt|0}}}}}{{#ifeq: {{{structure}}}|8|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{{component8|}}}|{{{component8amt|0}}}}}{{#ifeq: {{{structure}}}|9|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}
 
{{componentbox/itemrow|{{{component9|}}}|{{{component9amt|0}}}}}{{#ifeq: {{{structure}}}|10|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}
 
{{componentbox/itemrow|{{{component9|}}}|{{{component9amt|0}}}}}{{#ifeq: {{{structure}}}|10|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}
{{componentbox/itemrow|{{{component10|}}}|{{{component10amt|0}}}}}<div style="background:#659bb7;width:100%;height:3px;text-align:center;margin-top:2px;position:relative">&nbsp;</div><!--End components display-->
+
{{componentbox/itemrow|{{{component10|}}}|{{{component10amt|0}}}}}{{#switch:{{{type|}}}|d=<!-- blank -->|#default=<div style="background:#659bb7;width:100%;height:3px;text-align:center;margin-top:2px;position:relative">&nbsp;</div><!--End components display-->
 
<!--start stats-->
 
<!--start stats-->
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Mass{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{mass|0}}}</div></div>{{#if: {{{volume|}}} |
+
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Mass{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{mass|0}}}</div></div>}}{{#if: {{{integrity|}}} |
 +
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Integrity{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{integrity|0}}}</div></div>
 +
|}}{{#if: {{{volume|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Volume{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{volume|0}}} l</div></div>|}}{{#if: {{{refinetime|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Volume{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{volume|0}}} l</div></div>|}}{{#if: {{{refinetime|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Refine time{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{refinetime|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/Refine time{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{refinetime|0}}}</div></div>
Line 44: Line 50:
 
|}}{{#if: {{{deformationratio|}}} |
 
|}}{{#if: {{{deformationratio|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Deformation Ratio{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{deformationratio|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/Deformation Ratio{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{deformationratio|0}}}</div></div>
 +
|}}{{#if: {{{ROF|}}} |
 +
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/ROF{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{ROF|0}}}</div></div>
 +
|}}{{#if: {{{shotdeviation|}}} |
 +
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Shot Deviation{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{shotdeviation|0}}}</div></div>
 +
|}}{{#if: {{{ammo|}}} |
 +
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Ammo{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{ammo|0}}}</div></div>
 +
|}}{{#if: {{{speedmult|}}} |
 +
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Speed Multiplier{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{speedmult|0}}}</div></div>
 +
|}}{{#if: {{{reachmult|}}} |
 +
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Reach Multiplier{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{reachmult|0}}}</div></div>
 
|}}{{#if: {{{refinespeed|}}} |
 
|}}{{#if: {{{refinespeed|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Refine Speed{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{refinespeed|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/Refine Speed{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{refinespeed|0}}}</div></div>
Line 52: Line 68:
 
|}}{{#if: {{{powerstandby|}}} |
 
|}}{{#if: {{{powerstandby|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Idle Power Consumption{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{powerstandby|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/Idle Power Consumption{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{powerstandby|0}}}</div></div>
|}}{{#if: {{{integrity|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Integrity{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{integrity|0}}}</div></div>
 
 
|}}{{#if: {{{maxpoweroutput|}}} |
 
|}}{{#if: {{{maxpoweroutput|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Max power output{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{maxpoweroutput|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/Max power output{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{maxpoweroutput|0}}}</div></div>
 
|}}{{#if: {{{movementcoefficient|}}} |
 
|}}{{#if: {{{movementcoefficient|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Movement coefficient{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{movementcoefficient|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/Movement coefficient{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{movementcoefficient|0}}}</div></div>
|}}{{#if: {{{resourcesinkgroup|}}} |
+
|}}{{#if: {{{forcemagnitude|}}} |
<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>|}}{{#if: {{{resourcesourcegroup|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/resourcesourcegroup{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{resourcesourcegroup|0}}}</div></div>|}}{{#if: {{{forcemagnitude|}}} |
 
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Force magnitude{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{forcemagnitude|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/Force magnitude{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{forcemagnitude|0}}}</div></div>
 
|}}{{#if: {{{virtualmass|}}} |
 
|}}{{#if: {{{virtualmass|}}} |
Line 70: Line 82:
 
|}}{{#if: {{{gascapacity|}}} |
 
|}}{{#if: {{{gascapacity|}}} |
 
<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|}}} |
 +
<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}}}}|sometimes = {{Componentbox/airtightness-sometimes{{lang}}}}| {{Componentbox/airtightness-no{{lang}}}}}}</div></div>
 +
|}}<!-- 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>
 +
|}}{{#if: {{{resourcesourcegroup|}}} |
 +
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/resourcesourcegroup{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{resourcesourcegroup|0}}}</div></div>
 
|}}{{#if: {{{height|}}} |
 
|}}{{#if: {{{height|}}} |
 
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/Dimensions{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{width|0}}} x {{{height|0}}} x {{{depth|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/Dimensions{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{width|0}}} x {{{height|0}}} x {{{depth|0}}}</div></div>
 +
|}}{{#if: {{{pcu|}}} |
 +
<div style="width:100%;position:relative;height:27px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Arial;">{{Componentbox/PCU Cost{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{{pcu|0}}}</div></div>
 
|}}{{#if: {{{partof|}}} |
 
|}}{{#if: {{{partof|}}} |
<div style="width:100%;background-color:#659bb7;position:relative;height:37px">&nbsp;<div style="float:left;padding:7px 2px;color:white;font-size:1em;font-weight:bold;font-family:Arial;">{{Componentbox/partof{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{#ifexist: {{{partof}}} Icon.png|{{icon|{{{partof}}}|small}}|}}[[{{{partof|None}}}]]</div></div>
+
<div style="width:100%;background-color:#659bb7;position:relative;height:37px">&nbsp;<div style="float:left;padding:7px 2px;color:white;font-size:1em;font-weight:bold;font-family:Arial;">{{Componentbox/partof{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Arial;">{{#ifexist:File:{{{partof}}} Icon.png|{{icon|{{{partof}}}|small}}|}}[[{{{partof|None}}}]]</div></div>
 
|}}<!--end stats--></div>
 
|}}<!--end stats--></div>
 
</div>{{#if: {{NAMESPACE}} | | {{#if: {{{nocat|}}} | |<includeonly>[[Category:{{#switch: {{{type|l}}}
 
</div>{{#if: {{NAMESPACE}} | | {{#if: {{{nocat|}}} | |<includeonly>[[Category:{{#switch: {{{type|l}}}
Line 82: Line 102:
 
  | r = Raw Materials
 
  | r = Raw Materials
 
  | m = Materials
 
  | m = Materials
 +
| d = disabled
 
}}{{lang}}]]
 
}}{{lang}}]]
 +
{{#switch: {{lc:{{{airtightness}}}}}|yes = [[Category:Airtight Block]]|sometimes = [[Category:Airtight Block]]| }}
 
{{#if: {{{refinefrom|}}} | [[Category:{{{refinefrom|}}}{{lang}}]] }}
 
{{#if: {{{refinefrom|}}} | [[Category:{{{refinefrom|}}}{{lang}}]] }}
 
{{#if: {{{component1|}}} | [[Category:{{{component1|}}}{{lang}}]] }}
 
{{#if: {{{component1|}}} | [[Category:{{{component1|}}}{{lang}}]] }}

Latest revision as of 14:10, 31 March 2020

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

 

 
 
Mass (kg):
0