Difference between revisions of "Template:Infobox Ship/v2"

From Holocron - Star Wars Combine
Jump to: navigation, search
(testing conditional variant)
 
(another test, no idea why linebreaks suddenly register in such a sensitive way)
Line 1: Line 1:
 
<table style="border: 1px solid grey; padding: 1px; margin: 5px; width: 25%; float: right; font-size: 11px;">
 
<table style="border: 1px solid grey; padding: 1px; margin: 5px; width: 25%; float: right; font-size: 11px;">
 
<tr><td width="100%" colspan="2" style="background-color: #21314c; font-size: 16px; text-align: center;"><font color="white"><b>{{{name}}}</b></font></td></tr>
 
<tr><td width="100%" colspan="2" style="background-color: #21314c; font-size: 16px; text-align: center;"><font color="white"><b>{{{name}}}</b></font></td></tr>
<tr><td width="100%" colspan="2" style="text-align: center;">{{{image}}}</td></tr>
+
<tr><td width="100%" colspan="2" style="text-align: center;">{{{image}}}</td></tr>{{#if:{{{Hyperspeed|}}}{{{Sublight Speed|}}}{{{Max Speed|}}}{{{Manoeuvrability|}}}{{{Sensors|}}}{{{ECM|}}}|<tr><td width="100%" colspan="2" style="background-color: #21314c; text-align: left; color: white"><b>Navigational Stats:</b></td></tr>}}{{
{{#if:{{{Hyperspeed|}}}{{{Sublight Speed|}}}{{{Max Speed|}}}{{{Manoeuvrability|}}}{{{Sensors|}}}{{{ECM|}}}|<tr><td width="100%" colspan="2" style="background-color: #21314c; text-align: left; color: white"><b>Navigational Stats:</b></td></tr>}}
+
#if:{{{Hyperspeed|}}}|<tr><td width="31%" valign="top">Hyperspeed</td><td width="69%">{{{Hyperspeed}}}</td></tr>}}{{
{{#if:{{{Hyperspeed|}}}|<tr><td width="31%" valign="top">Hyperspeed</td><td width="69%">{{{Hyperspeed}}}</td></tr>}}
+
#if:{{{Sublight Speed|}}}|<tr><td width="31%" valign="top">Sublight Speed</td><td width="69%">{{{Sublight Speed}}}</td></tr>}}{{
{{#if:{{{Sublight Speed|}}}|<tr><td width="31%" valign="top">Sublight Speed</td><td width="69%">{{{Sublight Speed}}}</td></tr>}}
+
#if:{{{Max Speed|}}}|<tr><td width="31%" valign="top">Max Speed</td><td width="69%">{{{Max Speed}}}</td></tr>}}{{
{{#if:{{{Max Speed|}}}|<tr><td width="31%" valign="top">Max Speed</td><td width="69%">{{{Max Speed}}}</td></tr>}}
+
#if:{{{Manoeuvrability|}}}|<tr><td width="31%" valign="top">Manoeuvrability</td><td width="69%">{{{Manoeuvrability}}}</td></tr>}}{{
{{#if:{{{Manoeuvrability|}}}|<tr><td width="31%" valign="top">Manoeuvrability</td><td width="69%">{{{Manoeuvrability}}}</td></tr>}}
+
#if:{{{Sensors|}}}|<tr><td width="31%" valign="top">Sensors</td><td width="69%">{{{Sensors}}}</td></tr>}}{{
{{#if:{{{Sensors|}}}|<tr><td width="31%" valign="top">Sensors</td><td width="69%">{{{Sensors}}}</td></tr>}}
+
#if:{{{ECM|}}}|<tr><td width="31%" valign="top">ECM</td><td width="69%">{{{ECM}}}</td></tr>}}{{
{{#if:{{{ECM|}}}|<tr><td width="31%" valign="top">ECM</td><td width="69%">{{{ECM}}}</td></tr>}}
+
#if:{{{Proton Torpedo Launchers|}}}{{{Ion Cannons|}}}{{{Heavy Lasers|}}}{{{Concussion Missile Launchers|}}}{{{Tractor Beams|}}}{{{Turbo Lasers|}}}{{{Quad Lasers|}}}|<tr><td width="100%" colspan="2" style="background-color: #21314c; text-align: left; color: white"><b>Weapons:</b></td></tr>}}{{
<tr><td width="100%" colspan="2" style="background-color: #21314c; text-align: left; color: white"><b>Weapons:</b></td></tr>
+
#if:{{{Proton Torpedo Launchers|}}}|<tr><td width="31%" valign="top">Proton Torpedo Launchers</td><td width="69%">{{{Proton Torpedo Launchers}}}</td></tr>}}{{
{{#if:{{{Proton Torpedo Launchers|}}}|<tr><td width="31%" valign="top">Proton Torpedo Launchers</td><td width="69%">{{{Proton Torpedo Launchers}}}</td></tr>}}
+
#if:{{{Ion Cannons|}}}|<tr><td width="31%" valign="top">Ion Cannons</td><td width="69%">{{{Ion Cannons}}}</td></tr>}}{{
{{#if:{{{Ion Cannons|}}}|<tr><td width="31%" valign="top">Ion Cannons</td><td width="69%">{{{Ion Cannons}}}</td></tr>}}
+
#if:{{{Heavy Lasers|}}}|<tr><td width="31%" valign="top">Heavy Lasers</td><td width="69%">{{{Heavy Lasers}}}</td></tr>}}{{
{{#if:{{{Heavy Lasers|}}}|<tr><td width="31%" valign="top">Heavy Lasers</td><td width="69%">{{{Heavy Lasers}}}</td></tr>}}
+
#if:{{{Concussion Missile Launchers|}}}|<tr><td width="31%" valign="top">Concussion Missile Launchers</td><td width="69%">{{{Concussion Missile Launchers}}}</td></tr>}}{{
{{#if:{{{Concussion Missile Launchers|}}}|<tr><td width="31%" valign="top">Concussion Missile Launchers</td><td width="69%">{{{Concussion Missile Launchers}}}</td></tr>}}
+
#if:{{{Tractor Beams|}}}|<tr><td width="31%" valign="top">Tractor Beams</td><td width="69%">{{{Tractor Beams}}}</td></tr>}}{{
{{#if:{{{Tractor Beams|}}}|<tr><td width="31%" valign="top">Tractor Beams</td><td width="69%">{{{Tractor Beams}}}</td></tr>}}
+
#if:{{{Turbo Lasers|}}}|<tr><td width="31%" valign="top">Turbo Lasers</td><td width="69%">{{{Turbo Lasers}}}</td></tr>}}{{
{{#if:{{{Turbo Lasers|}}}|<tr><td width="31%" valign="top">Turbo Lasers</td><td width="69%">{{{Turbo Lasers}}}</td></tr>}}
+
#if:{{{Quad Lasers|}}}|<tr><td width="31%" valign="top">Quad Lasers</td><td width="69%">{{{Quad Lasers}}}</td></tr>}}{{
{{#if:{{{Quad Lasers|}}}|<tr><td width="31%" valign="top">Quad Lasers</td><td width="69%">{{{Quad Lasers}}}</td></tr>}}
+
#if:{{{Weight|}}}{{{Volume|}}}{{{Weight Cap|}}}{{{Volume Cap|}}}{{{Max Passengers|}}}|<tr><td width="100%" colspan="2" style="background-color: #21314c; text-align: left; color: white"><b>Cargo Stats:</b></td></tr>}}{{
<tr><td width="100%" colspan="2" style="background-color: #21314c; text-align: left; color: white"><b>Cargo Stats:</b></td></tr>
+
#if:{{{Weight|}}}|<tr><td width="31%" valign="top">Weight</td><td width="69%">{{{Weight}}}</td></tr>}}{{
{{#if:{{{Weight|}}}|<tr><td width="31%" valign="top">Weight</td><td width="69%">{{{Weight}}}</td></tr>}}
+
#if:{{{Volume|}}}|<tr><td width="31%" valign="top">Volume</td><td width="69%">{{{Volume}}}</td></tr>}}{{
{{#if:{{{Volume|}}}|<tr><td width="31%" valign="top">Volume</td><td width="69%">{{{Volume}}}</td></tr>}}
+
#if:{{{Weight Cap|}}}|<tr><td width="31%" valign="top">Weight Cap</td><td width="69%">{{{Weight Cap}}}</td></tr>}}{{
{{#if:{{{Weight Cap|}}}|<tr><td width="31%" valign="top">Weight Cap</td><td width="69%">{{{Weight Cap}}}</td></tr>}}
+
#if:{{{Volume Cap|}}}|<tr><td width="31%" valign="top">Volume Cap</td><td width="69%">{{{Volume Cap}}}</td></tr>}}{{
{{#if:{{{Volume Cap|}}}|<tr><td width="31%" valign="top">Volume Cap</td><td width="69%">{{{Volume Cap}}}</td></tr>}}
+
#if:{{{Max Passengers|}}}|<tr><td width="31%" valign="top">Max Passengers</td><td width="69%">{{{Max Passengers}}}</td></tr>}}{{
{{#if:{{{Max Passengers|}}}|<tr><td width="31%" valign="top">Max Passengers</td><td width="69%">{{{Max Passengers}}}</td></tr>}}
+
#if:{{{Length|}}}{{{Hull|}}}{{{Deflector Shields|}}}{{{Ionic Capacity|}}}{{{Estimated RM Price|}}}{{{Affiliation|}}}|<tr><td width="100%" colspan="2" style="background-color: #21314c; text-align: left; color: white"><b>Hull Stats:</b></td></tr>}}{{
<tr><td width="100%" colspan="2" style="background-color: #21314c; text-align: left; color: white"><b>Hull Stats:</b></td></tr>
+
#if:{{{Length|}}}|<tr><td width="31%" valign="top">Length</td><td width="69%">{{{Length}}}</td></tr>}}{{
{{#if:{{{Length|}}}|<tr><td width="31%" valign="top">Length</td><td width="69%">{{{Length}}}</td></tr>}}
+
#if:{{{Hull|}}}|<tr><td width="31%" valign="top">Hull</td><td width="69%">{{{Hull}}}</td></tr>}}{{
{{#if:{{{Hull|}}}|<tr><td width="31%" valign="top">Hull</td><td width="69%">{{{Hull}}}</td></tr>}}
+
#if:{{{Deflector Shields|}}}|<tr><td width="31%" valign="top">Deflector Shields</td><td width="69%">{{{Deflector Shields}}}</td></tr>}}{{
{{#if:{{{Deflector Shields|}}}|<tr><td width="31%" valign="top">Deflector Shields</td><td width="69%">{{{Deflector Shields}}}</td></tr>}}
+
#if:{{{Ionic Capacity|}}}|<tr><td width="31%" valign="top">Ionic Capacity</td><td width="69%">{{{Ionic Capacity}}}</td></tr>}}{{
{{#if:{{{Ionic Capacity|}}}|<tr><td width="31%" valign="top">Ionic Capacity</td><td width="69%">{{{Ionic Capacity}}}</td></tr>}}
+
#if:{{{Estimated RM Price|}}}|<tr><td width="31%" valign="top">Estimated RM Price</td><td width="69%">{{{Estimated RM Price}}}</td></tr>}}{{
{{#if:{{{Estimated RM Price|}}}|<tr><td width="31%" valign="top">Estimated RM Price</td><td width="69%">{{{Estimated RM Price}}}</td></tr>}}
+
#if:{{{Affiliation|}}}|<tr><td width="31%" valign="top">Affiliation</td><td width="69%">{{{Affiliation}}}</td></tr>}}
{{#if:{{{Affiliation|}}}|<tr><td width="31%" valign="top">Affiliation</td><td width="69%">{{{Affiliation}}}</td></tr>}}
 
 
</table>
 
</table>
 
<noinclude>
 
<noinclude>

Revision as of 22:11, 8 October 2012

{{{name}}}
{{{image}}}

Usage

The Ship Box template is used for ship pages only, to describe the Ship. Paste the following code into the top of an article, filling all known fields:

{{Infobox Ship
| name =
| image =
| Hyperspeed =
| Sublight Speed = 
| Max Speed =
| Manoeuverability =
| Sensors =
| ECM =
| Proton Torpedo Launchers = 
| Ion Cannons =
| Heavy Lasers =  
| Concussion Missile Launchers = 
| Tractor Beams =
| Turbo Lasers =
| Quad Lasers =
| Weight =
| Volume =
| Weight Cap = 
| Volume Cap =
| Max Passengers = 
| Length =
| Hull =
| Deflector Shields = 
| Ionic Capacity = 
| Estimated RM Price =
| Affiliation =
}}