Difference between revisions of "Template:Componentbox"
From Space Engineers Wiki
Line 1: | Line 1: | ||
<div style="position:relative;width:350px;float:right"> | <div style="position:relative;width:350px;float:right"> | ||
<div style="background:#486d82;padding:0.25em;text-align:center;"> | <div style="background:#486d82;padding:0.25em;text-align:center;"> | ||
− | <div style="color:white;font-size:2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Gotham;height:30px;position:relative">{{{item|No Item}}}<div style="float:left">{{icon|{{{item|No Image}}}|medium}}</div><div style="float:right">{{icon|{{#switch: {{{type| | + | <div style="color:white;font-size:2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Gotham;height:30px;position:relative">{{{item|No Item}}}<div style="float:left">{{icon|{{{item|No Image}}}|medium}}</div><div style="float:right">{{icon|{{#switch: {{{type|l}}} |
| l = Large Ship | | l = Large Ship | ||
| s = Small Ship | | s = Small Ship | ||
Line 14: | Line 14: | ||
</div> | </div> | ||
<div style="background:#b2d5e8;padding:0.25em;text-align:center;"><!--components display--> | <div style="background:#b2d5e8;padding:0.25em;text-align:center;"><!--components display--> | ||
− | {{#if: {{{3|}}} | <div style="width:100%;position:relative;height:40px"> <div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{icon|{{{ | + | {{#if: {{{3|}}} | <div style="width:100%;position:relative;height:40px"> <div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{icon|{{{component1|No Image}}}|small}} [[{{{component1|No Item}}}]]</div><div style="float:right;padding:5px;color:black;font-size:1em;font-family:Gotham;">{{{component1amt|0}}}</div></div>|}}{{#if: {{{component2|}}} | <div style="width:100%;position:relative;height:40px"> <div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{icon|{{{component2|No Image}}}|small}} [[{{{component2|No Item}}}]]</div><div style="float:right;padding:5px;color:black;font-size:1em;font-family:Gotham;">{{{component2amt|0}}}</div></div>|}}{{#if: {{{7|}}} | <div style="width:100%;position:relative;height:40px"> <div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{icon|{{{7|No Image}}}|small}} [[{{{7|No Item}}}]]</div><div style="float:right;padding:5px;color:black;font-size:1em;font-family:Gotham;">{{{8|0}}}</div></div>|}}{{#if: {{{9|}}} | <div style="width:100%;position:relative;height:40px"> <div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{icon|{{{9|No Image}}}|small}} [[{{{9|No Item}}}]]</div><div style="float:right;padding:5px;color:black;font-size:1em;font-family:Gotham;">{{{10|0}}}</div></div>|}}{{#if: {{{11|}}} | <div style="width:100%;position:relative;height:40px"> <div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{icon|{{{11|No Image}}}|small}} [[{{{11|No Item}}}]]</div><div style="float:right;padding:5px;color:black;font-size:1em;font-family:Gotham;">{{{12|0}}}</div></div>|}}{{#if: {{{13|}}} | <div style="width:100%;position:relative;height:40px"> <div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{icon|{{{13|No Image}}}|small}} [[{{{13|No Item}}}]]</div><div style="float:right;padding:5px;color:black;font-size:1em;font-family:Gotham;">{{{14|0}}}</div></div>|}}{{#if: {{{15|}}} | <div style="width:100%;position:relative;height:40px"> <div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{icon|{{{15|No Image}}}|small}} [[{{{15|No Item}}}]]</div><div style="float:right;padding:5px;color:black;font-size:1em;font-family:Gotham;">{{{16|0}}}</div></div>|}}{{#if: {{{17|}}} | <div style="width:100%;position:relative;height:40px"> <div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{icon|{{{17|No Image}}}|small}} [[{{{17|No Item}}}]]</div><div style="float:right;padding:5px;color:black;font-size:1em;font-family:Gotham;">{{{18|0}}}</div></div>|}}{{#if: {{{19|}}} | <div style="width:100%;position:relative;height:40px"> <div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{icon|{{{19|No Image}}}|small}} [[{{{19|No Item}}}]]</div><div style="float:right;padding:5px;color:black;font-size:1em;font-family:Gotham;">{{{20|0}}}</div></div>|}} |
<div style="background:#659bb7;width:100%;height:3px;text-align:center;margin-top:20px;position:relative"> </div><!--End components display--> | <div style="background:#659bb7;width:100%;height:3px;text-align:center;margin-top:20px;position:relative"> </div><!--End components display--> | ||
}}<!--start stats--> | }}<!--start stats--> | ||
<!--end stats--></div> | <!--end stats--></div> | ||
</div><noinclude>[[Category:Templates]]</noinclude> | </div><noinclude>[[Category:Templates]]</noinclude> |