Difference between revisions of "Template:Componentbox"
From Space Engineers Wiki
(+this template is now translatable) |
(Introduction of a new category "disabled" and disabled at material and raw the needed components.) |
||
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;"> </div> | <div style="background:#659bb7;width:100%;height:3px;position:relative;"> </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>}} | <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>}} | ||
| | ||
Line 27: | Line 31: | ||
style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative"> </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"> </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"> </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"> </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"> </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"> </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"> </div>|}} | style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative"> </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"> </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"> </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"> </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"> </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"> </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"> </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"> </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"> </div>|}} | ||
− | {{componentbox/itemrow|{{{component10|}}}|{{{component10amt|0}}}}}<div style="background:#659bb7;width:100%;height:3px;text-align:center;margin-top:2px;position:relative"> </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"> </div><!--End components display--> |
<!--start stats--> | <!--start stats--> | ||
− | <div style="width:100%;position:relative;height:27px"> <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"> <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"> <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"> <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"> <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"> <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 69: | Line 73: | ||
<div style="width:100%;position:relative;height:27px"> <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"> <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"> <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}}}} | + | <div style="width:100%;position:relative;height:27px"> <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|}}} | | |}}<!-- these parts should be LAST -->{{#if: {{{resourcesinkgroup|}}} | | ||
<div style="width:100%;position:relative;height:27px"> <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"> <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> | ||
Line 86: | Line 90: | ||
| 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}}]] }} |