Difference between revisions of "Template:Infobox/Part/Thrust"

From Kerbal Space Program Wiki
Jump to: navigation, search
(*update to 1.0;)
(!part config uses vacuum;)
Line 1: Line 1:
<includeonly>{{Infobox/Part/Line|{{Infobox/Part/Dict|Maximum thrust}}|{{Formatnum|{{{2}}}|2}}&nbsp;{{Dict|k}}{{Dict|N}}|{{#if: {{{3|}}}|{{Formatnum|{{#expr: {{{1}}}/{{{2}}}*{{{3}}}}}|2}}&nbsp;{{Dict|k}}{{Dict|N}}}}}}</includeonly><noinclude>Creates one thrust entry for {{Tl|Infobox/Part}}. Has at least two parameters for the atmospheric thrust in kN and I<sub>sp</sub> in seconds.
+
<includeonly>{{Infobox/Part/Line|{{Infobox/Part/Dict|Maximum thrust}}|{{Formatnum|{{#expr: {{{1}}}/{{#if: {{{3|}}}|{{{3}}}|{{{2}}}}}*{{{2}}}|2}}&nbsp;{{Dict|k}}{{Dict|N}}|{{#if: {{{3|}}}|{{Formatnum|{{#expr: {{{1}}}}}|2}}&nbsp;{{Dict|k}}{{Dict|N}}}}}}</includeonly><noinclude>Creates one thrust entry for {{Tl|Infobox/Part}}. Has at least two parameters for the vacuum thrust in kN and (atmospheric) I<sub>sp</sub> in seconds.
  
 
{{Parameter table|name=number|parameters=
 
{{Parameter table|name=number|parameters=
{{Parameter row|1|Thrust at 1&nbsp;atm in kN (the value given in the part configuration)}}
+
{{Parameter row|1|Thrust in a vacuum in kN (the value given in the part configuration)}}
 
{{Parameter row|2|I<sub>sp</sub> in seconds (atmospheric when 3rd parameter is set)}}
 
{{Parameter row|2|I<sub>sp</sub> in seconds (atmospheric when 3rd parameter is set)}}
 
{{Parameter row|3|Vacuum I<sub>sp</sub> in seconds.|Not set}}
 
{{Parameter row|3|Vacuum I<sub>sp</sub> in seconds.|Not set}}

Revision as of 13:36, 6 May 2015

Creates one thrust entry for {{Infobox/Part}}. Has at least two parameters for the vacuum thrust in kN and (atmospheric) Isp in seconds.

# Optional Description Default
1 No Thrust in a vacuum in kN (the value given in the part configuration)
2 No Isp in seconds (atmospheric when 3rd parameter is set)
3 Yes Vacuum Isp in seconds. Not set

This template calculates the thrust range and then creates the entry for a {{Infobox/Part}}.