Difference between revisions of "Template:Componentbox/Component List Part"

From Space Engineers Wiki
Jump to: navigation, search
m (more formatting)
m (formatting)
 
Line 1: Line 1:
<div style="background:#b2d5e8;padding:0.25em;text-align:center;">{{componentbox/itemrow|{{#explode: {{{component1|}}} | , | 0 }}|{{#explode: {{{component1amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|2|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component2|}}} | , | 0 }}|{{#explode: {{{component2amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|3|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component3|}}} | , | 0 }}|{{#explode: {{{component3amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|4|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component4|}}} | , | 0 }}|{{#explode: {{{component4amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|5|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component5|}}} | , | 0 }}|{{#explode: {{{component5amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|6|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component6|}}} | , | 0 }}|{{#explode: {{{component6amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|7|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component7|}}} | , | 0 }}|{{#explode: {{{component7amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|8|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component8|}}} | , | 0 }}|{{#explode: {{{component8amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|9|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component9|}}} | , | 0 }}|{{#explode: {{{component9amt|0}}} | , | 0 }}}}<div style="background:#659bb7;width:100%;height:3px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>
+
{{#if: {{{component1|}}}|<div style="background:#b2d5e8;padding:0.25em;text-align:center;">{{componentbox/itemrow|{{#explode: {{{component1|}}} | , | 0 }}|{{#explode: {{{component1amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|2|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component2|}}} | , | 0 }}|{{#explode: {{{component2amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|3|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component3|}}} | , | 0 }}|{{#explode: {{{component3amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|4|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component4|}}} | , | 0 }}|{{#explode: {{{component4amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|5|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component5|}}} | , | 0 }}|{{#explode: {{{component5amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|6|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component6|}}} | , | 0 }}|{{#explode: {{{component6amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|7|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component7|}}} | , | 0 }}|{{#explode: {{{component7amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|8|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component8|}}} | , | 0 }}|{{#explode: {{{component8amt|0}}} | , | 0 }}}}{{#ifeq: {{#explode: {{{structure}}} | , | 0 }}|9|<div style="background:#9c0c0c;width:100%;height:2px;text-align:center;margin-top:2px;position:relative">&nbsp;</div>|}}{{componentbox/itemrow|{{#explode: {{{component9|}}} | , | 0 }}|{{#explode: {{{component9amt|0}}} | , | 0 }}}}</div>|}}

Latest revision as of 03:03, 17 April 2014