Difference between revisions of "Template:CargoShipinfobox"

From Space Engineers Wiki
Jump to: navigation, search
(+hopefully this does it)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{#if: 1|
 +
{{#if: {{{image|}}}|{{#set:image={{{image|}}}}}|}}
 +
{{#if: {{{mass|}}}|{{#set:mass={{{mass|}}}}}|}}
 +
{{#if: {{{speed|}}}|{{#set:speed={{{speed|}}}}}|}}
 +
{{#if: {{{boobytrap|}}}|{{#set:boobytrap={{{boobytrap|}}}}}|}}
 +
{{#if: {{{shipsize|}}}|{{#set:shipsize={{{shipsize|}}}}}|}}
 +
<!--
 +
{{#if: {{{directfireweapons|}}}|{{#set:directfireweapons={{{directfireweapons|}}} }}|}}
 +
{{#if: {{{exteriordefense|}}}|{{#set:exteriordefense={{{exteriordefense|}}} }}|}}
 +
{{#if: {{{interiordefense|}}}|{{#set:interiordefense={{{interiordefense|}}} }}|}}
 +
-->
 +
|}}
 
<div style="width:350px;float:right;border: solid 1px black;">
 
<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;">
Line 4: Line 16:
 
<p style="line-height: 1.25;color:white;font-size:2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);;margin:0; ">{{#if: {{{name|}}} | {{{name|}}} | {{{name|No Name}}} }}</p>
 
<p style="line-height: 1.25;color:white;font-size:2em;text-shadow:0px 0px 0.40em rgba(0,0,0,1);;margin:0; ">{{#if: {{{name|}}} | {{{name|}}} | {{{name|No Name}}} }}</p>
 
{{#if: {{{image|}}} |
 
{{#if: {{{image|}}} |
<div style="width:100%;position:relative;height:25px;padding:200px;">
+
<table border="0" style="text-align:center;width:100%;">
<div style="color:black;font-size:1em;">{{{image}}}</div>
+
<tr>
</div>|}}
+
<td>[[File:{{{image}}}|frameless|300px]]</td>
 +
</tr>
 +
</table>
 +
|}}
 
<div style="background:#659bb7;width:100%;height:3px;"></div></div>
 
<div style="background:#659bb7;width:100%;height:3px;"></div></div>
 
<div style="background:#b2d5e8;padding:0.25em;text-align:center;">
 
<div style="background:#b2d5e8;padding:0.25em;text-align:center;">
 
{{#if: {{{class|}}} |
 
{{#if: {{{class|}}} |
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
<div style="float:left;color:black;font-size:1em;">{{CargoShipinfobox/class{{lang}}}}:</div>
+
<div style="float:left;color:black;font-size:1em;">'''{{CargoShipinfobox/class{{lang}}}}:'''</div>
 
<div style="float:right;color:black;font-size:1em;">{{{class|}}}</div>
 
<div style="float:right;color:black;font-size:1em;">{{{class|}}}</div>
 
</div>|}}
 
</div>|}}
 
{{#if: {{{mass|}}} |
 
{{#if: {{{mass|}}} |
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
<div style="float:left;color:black;font-size:1em;">{{CargoShipinfobox/mass{{lang}}}}:</div>
+
<div style="float:left;color:black;font-size:1em;">'''{{CargoShipinfobox/mass{{lang}}}}:'''</div>
 
<div style="float:right;color:black;font-size:1em;">{{{mass}}} kg</div>
 
<div style="float:right;color:black;font-size:1em;">{{{mass}}} kg</div>
 
</div>|}}
 
</div>|}}
 
{{#if: {{{speed|}}} |
 
{{#if: {{{speed|}}} |
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
<div style="float:left;color:black;font-size:1em;">{{CargoShipinfobox/speed{{lang}}}}:</div>
+
<div style="float:left;color:black;font-size:1em;">'''{{CargoShipinfobox/speed{{lang}}}}:'''</div>
 
<div style="float:right;color:black;font-size:1em;">{{{speed}}} m/s</div>
 
<div style="float:right;color:black;font-size:1em;">{{{speed}}} m/s</div>
 
</div>|}}
 
</div>|}}
 
{{#if: {{{boobytrap|}}} |
 
{{#if: {{{boobytrap|}}} |
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
<div style="float:left;color:black;font-size:1em;">{{CargoShipinfobox/Boobytrapped{{lang}}}}:</div>
+
<div style="float:left;color:black;font-size:1em;">'''{{CargoShipinfobox/Boobytrapped{{lang}}}}:'''</div>
 
<div style="float:right;color:black;font-size:1em;">{{{boobytrap}}}</div>
 
<div style="float:right;color:black;font-size:1em;">{{{boobytrap}}}</div>
 
</div>|}}
 
</div>|}}
 
{{#if: {{{directfireweapons|}}} |
 
{{#if: {{{directfireweapons|}}} |
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
<div style="float:left;color:black;font-size:1em;">{{CargoShipinfobox/directfireweapons{{lang}}}}:</div>
+
<div style="float:left;color:black;font-size:1em;">'''{{CargoShipinfobox/directfireweapons{{lang}}}}:'''</div>
 
<div style="float:right;color:black;font-size:1em;">{{{directfireweapons}}}</div>
 
<div style="float:right;color:black;font-size:1em;">{{{directfireweapons}}}</div>
 
</div>|}}
 
</div>|}}
 
{{#if: {{{exteriordefense|}}} |
 
{{#if: {{{exteriordefense|}}} |
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
<div style="float:left;color:black;font-size:1em;">{{CargoShipinfobox/exteriordefense{{lang}}}}:</div>
+
<div style="float:left;color:black;font-size:1em;">'''{{CargoShipinfobox/exteriordefense{{lang}}}}:'''</div>
 
<div style="float:right;color:black;font-size:1em;">{{{exteriordefense}}}</div>
 
<div style="float:right;color:black;font-size:1em;">{{{exteriordefense}}}</div>
 
</div>|}}
 
</div>|}}
 
{{#if: {{{interiordefense|}}} |
 
{{#if: {{{interiordefense|}}} |
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
<div style="float:left;color:black;font-size:1em;">{{CargoShipinfobox/interiordefense{{lang}}}}:</div>
+
<div style="float:left;color:black;font-size:1em;">'''{{CargoShipinfobox/interiordefense{{lang}}}}:'''</div>
 
<div style="float:right;color:black;font-size:1em;">{{{interiordefense}}}</div>
 
<div style="float:right;color:black;font-size:1em;">{{{interiordefense}}}</div>
 
</div>|}}
 
</div>|}}
 
{{#if: {{{shipsize|}}} |
 
{{#if: {{{shipsize|}}} |
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
 
<div style="width:100%;position:relative;height:25px;padding:2px;">
<div style="float:left;color:black;font-size:1em;">{{CargoShipinfobox/Ship size{{lang}}}}:</div>
+
<div style="float:left;color:black;font-size:1em;">'''{{CargoShipinfobox/Ship size{{lang}}}}:'''</div>
 
<div style="float:right;color:black;font-size:1em;">{{{shipsize}}}</div>
 
<div style="float:right;color:black;font-size:1em;">{{{shipsize}}}</div>
 
</div>
 
</div>
Line 56: Line 71:
 
{{CargoShipinfobox
 
{{CargoShipinfobox
 
| name = name of ship
 
| name = name of ship
 +
| image = image of ship (file name without 'File:')
 
| 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
| speed = speed of ship
+
| speed = speed of ship (usually cargo ships spawn at a set speed)
 
| boobytrap = is the ship booby-trapped with warheads? Yes/No
 
| boobytrap = is the ship booby-trapped with warheads? Yes/No
 
| directfireweapons = number of directly fired weapons (gatling gun, rocket launchers)
 
| directfireweapons = number of directly fired weapons (gatling gun, rocket launchers)
 
| exteriordefense = number of exterior defenses (gatling, interior, missile)
 
| exteriordefense = number of exterior defenses (gatling, interior, missile)
 
| interiordefense = number of interior defenses (gatling, interior, missile)
 
| interiordefense = number of interior defenses (gatling, interior, missile)
| shipsize = large
+
| shipsize = block size of the ship (large or small)
 
}}
 
}}
 
</pre>
 
</pre>
 
<!--not used:
 
<!--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}}
 
-->
 
-->
 
</noinclude>
 
</noinclude>

Latest revision as of 17:54, 30 November 2015

Cargo Ship

No Name




For cargo ship pages. Usage:

{{CargoShipinfobox
| name = name of ship
| image = image of ship (file name without 'File:')
| class = class of ship (first word of name usually)
| mass = mass of ship
| speed = speed of ship (usually cargo ships spawn at a set speed)
| boobytrap = is the ship booby-trapped with warheads? Yes/No
| directfireweapons = number of directly fired weapons (gatling gun, rocket launchers)
| exteriordefense = number of exterior defenses (gatling, interior, missile)
| interiordefense = number of interior defenses (gatling, interior, missile)
| shipsize = block size of the ship (large or small)
}}