Difference between revisions of "Template:Infobox rocket/stage"

From blackwiki
Jump to navigation Jump to search
imported>Redrose64
imported>Frietjes
(allow use with infobox-based templates)
Line 1: Line 1:
<noinclude>{| class="infobox" style="font-size: 88%; width: 22em; text-align: left"
+
{{infobox|child=yes
|-</noinclude>
+
| header1 = {{#ifeq:{{{type|none}}}|none|{{{name|}}}|{{#ifeq:{{{type|}}}|booster|Boosters {{#if:{{{diff|}}}|({{{diff|}}})}}|{{{stageno|}}} stage {{#if:{{{diff|}}}|({{{diff|}}})}} }} {{#if:{{{name|}}}| - {{{name}}} }} }}
! colspan="2" style="text-align: center; font-size: 100%" {{!}} {{#ifeq:{{{type|none}}}|none|{{{name|}}}|{{#ifeq:{{{type|}}}|booster|Boosters {{#if:{{{diff|}}}|({{{diff|}}})}}|{{{stageno|}}} stage {{#if:{{{diff|}}}|({{{diff|}}})}} }} {{#if:{{{name|}}}| - {{{name}}} }} }}
 
|-
 
{{#ifeq:{{{type|}}}|booster|
 
! No. boosters
 
{{!}} {{{number}}}
 
}}
 
|-
 
{{#if:{{{length|}}}|
 
! Length
 
{{!}} {{{length}}}
 
}}
 
|-
 
{{#if:{{{diameter|}}}|
 
! Diameter
 
{{!}} {{{diameter}}}
 
}}
 
|-
 
{{#if:{{{width|}}}|
 
! Width
 
{{!}} {{{width}}}
 
}}
 
|-
 
{{#if:{{{empty|}}}|
 
! Empty mass
 
{{!}} {{{empty}}}
 
}}
 
|-
 
{{#if:{{{gross|}}}|
 
! Gross mass
 
{{!}} {{{gross}}}
 
}}
 
|-
 
{{#if:{{{propmass|}}}|
 
! Propellant mass
 
{{!}} {{{propmass}}}
 
}}
 
|-
 
{{#switch:{{{solid|}}}
 
|yes=
 
{{#switch:{{{engines|}}}
 
|off=
 
|=
 
|#default=
 
! Motor
 
{{!}} {{{engines}}}
 
}}
 
|#default=
 
{{#switch:{{{engines|}}}
 
|off=
 
|=
 
|#default=
 
! Engines
 
{{!}} {{{engines}}}
 
}}
 
}}
 
|-
 
! Thrust
 
| {{{thrust}}} {{#if:{{{alt-thrust|}}}|({{{alt-thrust}}})}}
 
|-
 
{{#ifeq:{{{type|}}}|booster|{{#if:{{{total|}}}|
 
! Total thrust
 
{{!}} {{{total}}} {{#if:{{{alt-total|}}}|({{{alt-total}}})}}
 
}} }}
 
|-
 
{{#if:{{{SI|}}}|
 
! [[Specific impulse]]
 
{{!}} {{{SI}}}
 
}}
 
|-
 
{{#if:{{{burntime|}}}|
 
! Burn time
 
{{!}} {{{burntime}}}
 
}}
 
|-
 
! Fuel
 
| {{{fuel}}}
 
|-<noinclude>
 
|}
 
  
'''Intended for use in conjunction with {{lt|Infobox rocket}}. Not for individual use'''.
+
| label2 = No. boosters
</noinclude>
+
| data2 = {{#ifeq:{{{type|}}}|booster|{{{number|}}}}}
 +
 
 +
| label3 =  Length
 +
| data3 = {{{length|}}}
 +
 
 +
| label4 = Diameter
 +
| data4 = {{{diameter|}}}
 +
 
 +
| label5 =  Width
 +
| data5 = {{{width|}}}
 +
 
 +
| label6 =  Empty mass
 +
| data6 = {{{empty|}}}
 +
 
 +
| label7 = Gross mass
 +
| data7 = {{{gross|}}}
 +
 
 +
| label8 = Propellant mass
 +
| data8 = {{{propmass|}}}
 +
 
 +
| label9 = {{#switch:{{{solid|}}}|yes= Motor|#default=Engines}}
 +
| data9 = {{#switch:{{{engines|}}}|off=|=|#default= {{{engines|}}} }}
 +
 
 +
| label10 = Thrust
 +
| data10 = {{#if:{{{thrust|}}}|{{{thrust}}} {{#if:{{{alt-thrust|}}}|({{{alt-thrust}}})}}}}
 +
 
 +
| label11 = Total thrust
 +
| data11 = {{#ifeq:{{{type|}}}|booster|{{#if:{{{total|}}}|{{{total}}} {{#if:{{{alt-total|}}}|({{{alt-total}}})}} }} }}
 +
 
 +
| label12 = [[Specific impulse]]
 +
| data12 = {{{SI|}}}
 +
 
 +
| label13 = Burn time
 +
| data13 = {{{burntime|}}}
 +
 
 +
| label14 = Fuel
 +
| data14 = {{{fuel|}}}
 +
}}<noinclude>
 +
{{documentation|content=
 +
This subtemplate is intended for use in conjunction with {{lt|Infobox rocket}}. Not for individual use.
 +
}}</noinclude>

Revision as of 16:43, 9 May 2016

Template documentation

This subtemplate is intended for use in conjunction with Template:Infobox rocket (edit | talk | history | links | watch | logs). Not for individual use.