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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (+format num;)
m
Line 1: Line 1:
<includeonly>{{Infobox/Part/Line|{{Infobox/Part/Dict|Maximum thrust}}|{{Formatnum|{{#if: {{{3|}}}|{{#expr: {{{3}}}/{{{2}}}*{{{1}}}}}|{{{1}}}}}|2}}&nbsp;kN|{{#if: {{{3|}}}|{{Formatnum|{{{1}}}|2}}&nbsp;kN}}}}</includeonly><noinclude>Creates one thrust entry for {{Tl|Infobox/Part}}. Has at least two parameters for the vacuum (?) thrust in kN and I<sub>sp</sub> in seconds.
+
<includeonly>{{Infobox/Part/Line|{{Infobox/Part/Dict|Maximum thrust}}|{{Formatnum|{{#if: {{{3|}}}|{{#expr: {{{2}}}/{{{3}}}*{{{1}}}}}|{{{1}}}}}|2}}&nbsp;kN|{{#if: {{{3|}}}|{{Formatnum|{{{1}}}|2}}&nbsp;kN}}}}</includeonly><noinclude>Creates one thrust entry for {{Tl|Infobox/Part}}. Has at least two parameters for the vacuum (?) thrust in kN and I<sub>sp</sub> in seconds.
  
 
<div style="border: 1px solid #000;background: #E0E0E0;padding:0.5em 1em;border-bottom:0;text-align:center;font-weight:bold;">Template usage</div>
 
<div style="border: 1px solid #000;background: #E0E0E0;padding:0.5em 1em;border-bottom:0;text-align:center;font-weight:bold;">Template usage</div>
Line 8: Line 8:
 
{{Parameter Table|name=number|parameters=
 
{{Parameter Table|name=number|parameters=
 
{{Parameter Row|1|Vacuum (?) thrust in kN}}
 
{{Parameter Row|1|Vacuum (?) thrust in kN}}
{{Parameter Row|2|Vacuum I<sub>sp</sub> in seconds}}
+
{{Parameter Row|2|I<sub>sp</sub> in seconds (atmospheric when 3rd parameter is set)}}
{{Parameter Row|3|Atmospheric I<sub>sp</sub> in seconds.|Not set}}
+
{{Parameter Row|3|Vacuum I<sub>sp</sub> in seconds.|Not set}}
 
}}
 
}}
  

Revision as of 15:37, 12 July 2013

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

Template usage
When in a future version the thrust depends on the Isp. With 0.19.1 the fuel consumption is changing, but in future version the fuel consumption is constant and the thrust varies. To support this change, all engine subtemplates should use this template so if the update occurs only this template needs to be changed.

Template:Parameter Table

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

[[Category:Templates]]