Difference between revisions of "Template:Componentbox"
From Space Engineers Wiki
(+i changed partof - it now has an expensive parser, talk to me if it's too costily) |
m (+fixing slight oversight) |
||
Line 73: | 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/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"> <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: {{{partof|}}} | | |}}{{#if: {{{partof|}}} | | ||
− | <div style="width:100%;background-color:#659bb7;position:relative;height:37px"> <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"> <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}}} |