Difference between revisions of "Template:Ship box"

From FreeSpace Wiki
Jump to: navigation, search
(test of templates and conditionals)
 
m
 
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{|
+
{| {{#if: {{{table_style|}}}|{{{table_style}}}|style="margin: 0 0 1em 1em; background: #302020; border: 1px #AA2020 solid; border-collapse: collapse; font-size: 95%"}}
{{#if: {{{test|}}}|
+
| style="width:200px" | '''Name'''
{{!}} [[TEST|test]]
+
| style="width:200px" | {{{name}}}
{{!}} {{{test}}}
+
|-
 +
{{#if: {{{type|}}}|
 +
{{!}} '''[[Technical_Terms_and_Definitions#Type|Type]]'''
 +
{{!}} {{{type}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{description|}}}|
 +
{{!}} '''Description'''
 +
{{!}} {{{description}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{manufacturer|}}}|
 +
{{!}} '''[[Technical_Terms_and_Definitions#Manufacturer|Manufacturer]]'''
 +
{{!}} {{{manufacturer}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{maneuverability|}}}|
 +
{{!}} '''[[Technical_Terms_and_Definitions#Maneuverability|Maneuverability]]'''
 +
{{!}} {{{maneuverability}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{yaw_pitch_roll|}}}|
 +
{{!}} [[Technical_Terms_and_Definitions#Yaw, Pitch, Roll|Yaw, Pitch, Roll]]
 +
{{!}} {{{yaw_pitch_roll}}} s
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{max_velocity|}}}|
 +
{{!}} [[Technical_Terms_and_Definitions#Max Velocity|Max Velocity]]
 +
{{!}} {{{max_velocity}}} ms<sup>-1</sup>
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{rear_velocity|}}}|
 +
{{!}} Rear Velocity
 +
{{!}} {{{rear_velocity}}} ms<sup>-1</sup>
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{max_ab_velocity|}}}|
 +
{{!}} [[Technical_Terms_and_Definitions#Max Afterburner Velocity|Max Afterburner Velocity]]
 +
{{!}} {{{max_ab_velocity}}} ms<sup>-1</sup>
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{max_ab_duration|}}}|
 +
{{!}} [[Technical_Terms_and_Definitions#Max Afterburner Duration|Max Afterburner Duration]]
 +
{{!}} {{{max_ab_duration}}} s
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{armor|}}}|
 +
{{!}} '''[[Technical_Terms_and_Definitions#Armor|Armor]]'''
 +
{{!}} {{{armor}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{hitpoints|}}}|
 +
{{!}} [[Technical_Terms_and_Definitions#Hitpoints|Hitpoints]]
 +
{{!}} {{{hitpoints}}} pts
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{shields|}}}|
 +
{{!}} [[Technical_Terms_and_Definitions#Shields|Shields]]
 +
{{!}} {{{shields}}} pts
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{length|}}}|
 +
{{!}} '''[[Technical_Terms_and_Definitions#Length|Length]]'''
 +
{{!}} {{{length}}} m
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{width|}}}|
 +
{{!}} '''[[Technical_Terms_and_Definitions#Length|Width]]'''
 +
{{!}} {{{width}}} m
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{height|}}}|
 +
{{!}} '''[[Technical_Terms_and_Definitions#Length|Height]]'''
 +
{{!}} {{{height}}} m
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{gun_bank_1|}}}{{{gun_bank_2|}}}{{{gun_bank_3|}}}{{{missile_bank_1|}}}{{{missile_bank_2|}}}{{{missile_bank_3|}}}{{{missile_bank_4|}}}|
 +
{{!}}colspan=2{{!}} '''[[Technical_Terms_and_Definitions#Weaponry|Weaponry]]'''
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{gun_bank_1|}}}{{{gun_bank_2|}}}{{{gun_bank_3|}}}|
 +
{{!}}colspan=2{{!}} ''[[Technical_Terms_and_Definitions#Primary_weapons|Primary weapons]]''
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{gun_bank_1|}}}|
 +
{{!}} style="padding-left: 20px" {{!}} ''1st bank''
 +
{{!}} style="padding-left: 20px" {{!}} {{{gun_bank_1}}} guns
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{gun_bank_2|}}}|
 +
{{!}} style="padding-left: 20px" {{!}} ''2nd bank''
 +
{{!}} style="padding-left: 20px" {{!}} {{{gun_bank_2}}} guns
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{gun_bank_3|}}}|
 +
{{!}} style="padding-left: 20px" {{!}} ''3rd bank''
 +
{{!}} style="padding-left: 20px" {{!}} {{{gun_bank_3}}} guns
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{missile_bank_1|}}}{{{missile_bank_2|}}}{{{missile_bank_3|}}}{{{missile_bank_4|}}}|
 +
{{!}}colspan=2{{!}} ''[[Technical_Terms_and_Definitions#Secondary_weapons|Secondary weapons]]''
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{missile_bank_1|}}}|
 +
{{!}} style="padding-left: 20px" {{!}} ''1st bank capacity''
 +
{{!}} style="padding-left: 20px" {{!}} {{{missile_bank_1}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{missile_bank_2|}}}|
 +
{{!}} style="padding-left: 20px" {{!}} ''2nd bank capacity''
 +
{{!}} style="padding-left: 20px" {{!}} {{{missile_bank_2}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{missile_bank_3|}}}|
 +
{{!}} style="padding-left: 20px" {{!}} ''3rd bank capacity''
 +
{{!}} style="padding-left: 20px" {{!}} {{{missile_bank_3}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{missile_bank_4|}}}|
 +
{{!}} style="padding-left: 20px" {{!}} ''4th bank capacity''
 +
{{!}} style="padding-left: 20px" {{!}} {{{missile_bank_4}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{countermeasures|}}}|
 +
{{!}}colspan=2{{!}} ''[[Technical_Terms_and_Definitions#Countermeasures|Countermeasures]]''
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{countermeasures|}}}|
 +
{{!}} style="padding-left: 20px" {{!}} ''Countermeasure capacity''
 +
{{!}} style="padding-left: 20px" {{!}} {{{countermeasures}}} countermeasures
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{turrets|}}}|
 +
{{!}} '''[[Technical_Terms_and_Definitions#Turrets|Turrets]]'''
 +
{{!}} {{{turrets}}} turrets
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{containers|}}}|
 +
{{!}} '''[[Technical_Terms_and_Definitions#Compatible Containers|Compatible Containers]]'''
 +
{{!}} {{{containers}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{fighterbays|}}}|
 +
{{!}} '''Fighterbays'''
 +
{{!}} {{{fighterbays}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{cargodocks|}}}|
 +
{{!}} '''Cargo docks'''
 +
{{!}} {{{cargodocks}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{fighters|}}}|
 +
{{!}} '''[[Technical_Terms_and_Definitions#Fighter Complement|Fighter Complement]]'''
 +
{{!}} {{{fighters}}}
 
{{!}}
 
{{!}}
 
}}
 
}}
 
|-
 
|-
 
|}
 
|}
 +
<noinclude>
 +
 +
== Usage ==
 +
<pre>{{Ship_box
 +
|table_style =
 +
|name =
 +
|type =
 +
|description =
 +
|manufacturer =
 +
|maneuverability =
 +
|yaw_pitch_roll =
 +
|max_velocity =
 +
|rear_velocity =
 +
|max_ab_velocity =
 +
|max_ab_duration =
 +
|armor =
 +
|hitpoints =
 +
|shields =
 +
|length =
 +
|width =
 +
|height =
 +
|gun_bank_1 =
 +
|gun_bank_2 =
 +
|gun_bank_3 =
 +
|missile_bank_1 =
 +
|missile_bank_2 =
 +
|missile_bank_3 =
 +
|missile_bank_4 =
 +
|countermeasures =
 +
|turrets =
 +
|containers =
 +
|fighterbays =
 +
|cargodocks =
 +
|fighters =
 +
}}
 +
</pre>
 +
Entries in actual page do not have to follow the same order.
 +
 +
[[Category:Templates|Ship box]]
 +
</noinclude>

Latest revision as of 19:20, 23 May 2020

Name {{{name}}}


Usage

{{Ship_box
|table_style = 
|name = 
|type = 
|description = 
|manufacturer = 
|maneuverability = 
|yaw_pitch_roll = 
|max_velocity = 
|rear_velocity = 
|max_ab_velocity = 
|max_ab_duration = 
|armor = 
|hitpoints = 
|shields = 
|length = 
|width = 
|height = 
|gun_bank_1 = 
|gun_bank_2 = 
|gun_bank_3 = 
|missile_bank_1 = 
|missile_bank_2 = 
|missile_bank_3 = 
|missile_bank_4 = 
|countermeasures = 
|turrets = 
|containers = 
|fighterbays = 
|cargodocks = 
|fighters = 
}}

Entries in actual page do not have to follow the same order.