Difference between revisions of "Template:CargoShipinfobox"

From Space Engineers Wiki
Jump to: navigation, search
(Add speed of ship field)
(Fixed)
Line 1: Line 1:
<div style="position:relative;width:350px;float:right">
+
<div style="width:350px;float:right;border: solid 1px black;">
 
<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">
+
<p style="color:white;font-size:1em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Gotham;margin:0;">Cargo Ship</p>
<div style="font-size:0.5em;width=50%">Cargo Ship</div>
+
<p style="line-height: 1.25;color:white;font-size:2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);font-family:Gotham;margin:0; ">{{#if: {{{name|}}} | {{{name|}}} | {{{name|No Name}}} }}</p>
{{#if: {{{name|}}} | {{{name|}}} | {{{name|No Name}}} }}</div><br />
+
<div style="background:#659bb7;width:100%;height:3px;"></div></div>
<div style="background:#659bb7;width:100%;height:3px;position:relative;">&nbsp;</div>
+
<div style="background:#b2d5e8;padding:0.25em;text-align:center;">
</div><div style="background:#b2d5e8;padding:0.25em;text-align:center;">
 
 
{{#if: {{{class|}}} |
 
{{#if: {{{class|}}} |
<div style="width:100%;position:relative;height:25px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/class{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{{class|}}}</div></div>
+
<div style="width:100%;position:relative;height:25px;padding:2px;">
|}}{{#if: {{{mass|}}} |
+
<div style="float:left;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/class{{lang}}}}:</div>
<div style="width:100%;position:relative;height:25px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/mass{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{{mass|0}}} kg</div></div>
+
<div style="float:right;color:black;font-size:1em;font-family:Gotham;">{{{class|}}}</div>
|}}{{#if: {{{speed|}}} |
+
</div>|}}
<div style="width:100%;position:relative;height:25px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/speed{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{{speed|0}}} m/s</div></div>
+
{{#if: {{{mass|}}} |
|}}{{#if: {{{boobytrap|}}} |
+
<div style="width:100%;position:relative;height:25px;padding:2px;">
<div style="width:100%;position:relative;height:25px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/Boobytrapped{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{{boobytrap|No}}}</div></div>
+
<div style="float:left;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/mass{{lang}}}}:</div>
|}}{{#if: {{{missileturrets|}}} |
+
<div style="float:right;color:black;font-size:1em;font-family:Gotham;">{{{mass}}} kg</div>
<div style="width:100%;position:relative;height:25px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/Missile turrets{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{{missileturrets|0}}}</div></div>
+
</div>|}}
|}}{{#if: {{{gatlingturrets|}}} |
+
{{#if: {{{speed|}}} |
<div style="width:100%;position:relative;height:25px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/Gatling turrets{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{{gatlingturrets}}}</div></div>
+
<div style="width:100%;position:relative;height:25px;padding:2px;">
|}}{{#if: {{{antipersonnelturrets|}}} |
+
<div style="float:left;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/speed{{lang}}}}:</div>
<div style="width:100%;position:relative;height:25px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/Anti-personnel{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{{antipersonnelturrets|0}}}</div></div>
+
<div style="float:right;color:black;font-size:1em;font-family:Gotham;">{{{speed}}} m/s</div>
|}}{{#if: {{{shipsize|}}} |
+
</div>|}}
<div style="width:100%;position:relative;height:25px">&nbsp;<div style="float:left;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/Ship size{{lang}}}}:</div><div style="float:right;padding:2px;color:black;font-size:1em;font-family:Gotham;">{{{shipsize|0}}}</div></div>
+
{{#if: {{{boobytrap|}}} |
 +
<div style="width:100%;position:relative;height:25px;padding:2px;">
 +
<div style="float:left;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/Boobytrapped{{lang}}}}:</div>
 +
<div style="float:right;color:black;font-size:1em;font-family:Gotham;">{{{boobytrap}}}</div>
 +
</div>|}}
 +
{{#if: {{{missileturrets|}}} |
 +
<div style="width:100%;position:relative;height:25px;padding:2px;">
 +
<div style="float:left;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/Missile turrets{{lang}}}}:</div>
 +
<div style="float:right;color:black;font-size:1em;font-family:Gotham;">{{{missileturrets}}}</div>
 +
</div>|}}
 +
{{#if: {{{gatlingturrets|}}} |
 +
<div style="width:100%;position:relative;height:25px;padding:2px;">
 +
<div style="float:left;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/Gatling turrets{{lang}}}}:</div>
 +
<div style="float:right;color:black;font-size:1em;font-family:Gotham;">{{{gatlingturrets}}}</div>
 +
</div>|}}
 +
{{#if: {{{antipersonnelturrets|}}} |
 +
<div style="width:100%;position:relative;height:25px;padding:2px;">
 +
<div style="float:left;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/Anti-personnel{{lang}}}}:</div>
 +
<div style="float:right;color:black;font-size:1em;font-family:Gotham;">{{{antipersonnelturrets}}}</div>
 +
</div>|}}
 +
{{#if: {{{shipsize|}}} |
 +
<div style="width:100%;position:relative;height:25px;padding:2px;">
 +
<div style="float:left;color:black;font-size:1em;font-family:Gotham;">{{CargoShipinfobox/Ship size{{lang}}}}:</div>
 +
<div style="float:right;color:black;font-size:1em;font-family:Gotham;">{{{shipsize}}}</div>
 +
</div>
 
|}}</div></div><noinclude>
 
|}}</div></div><noinclude>
 
[[Category:Templates]]
 
[[Category:Templates]]
Line 29: Line 52:
 
{{CargoShipinfobox
 
{{CargoShipinfobox
 
| name = name of ship
 
| name = name of ship
| image = image of ship
 
 
| class = class of ship (first word of name usually)
 
| class = class of ship (first word of name usually)
 
| mass = mass of ship
 
| mass = mass of ship
Line 38: Line 60:
 
| antipersonnelturrets = number of antipersonnel turrets.  
 
| antipersonnelturrets = number of antipersonnel turrets.  
 
| shipsize = large
 
| shipsize = large
 
+
}}
 +
</pre>
 +
<!--not used:
 +
| image = image of ship
 
| version = 01.023.000 current game version, use {{subst:currentversion}}
 
| version = 01.023.000 current game version, use {{subst:currentversion}}
}}
+
-->
</pre></noinclude>
+
</noinclude>

Revision as of 17:42, 12 February 2015

Cargo Ship

No Name




For cargo ship pages. Usage:

{{CargoShipinfobox
| name = name of ship
| class = class of ship (first word of name usually)
| mass = mass of ship
| speed = speed of ship
| boobytrap = is the ship booby-trapped with warheads? Yes/No
| missileturrets = number of missile turrets.
| gatlingturrets = number of gatling turrets.
| antipersonnelturrets = number of antipersonnel turrets. 
| shipsize = large
}}