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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*renamed Parameter Table to Parameter table;)
(*update to 1.0;)
Line 1: Line 1:
<includeonly>{{Infobox/Part/Line|{{Infobox/Part/Dict|Maximum thrust}}|{{Formatnum|{{#if:<!-- CHECK IF {{{3|}}} SET TO ACTIVATE -->|{{#expr: {{{2}}}/{{{3}}}*{{{1}}}}}|{{{1}}}}}|2}}&nbsp;kN|{{#if:<!-- CHECK IF {{{3|}}} SET TO ACTIVATE -->|{{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|{{{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.
 
 
<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: #F7F7F7;padding:1em;border-top:0;">When in a future version the thrust depends on the I<sub>sp</sub>. With 0.19.1 the fuel consumption is changing, but in [http://forum.kerbalspaceprogram.com/showthread.php/26107-Isp-doesn-t-work-right?p=327805&viewfull=1#post327805 future version] the fuel consumption is constant and the thrust varies.
 
 
 
To support this change, all engine [[:Category:Infobox/Part subtemplates|subtemplates]] should use this template so if the update occurs only this template needs to be changed.</div>
 
  
 
{{Parameter table|name=number|parameters=
 
{{Parameter table|name=number|parameters=
{{Parameter row|1|Vacuum (?) thrust in kN}}
+
{{Parameter row|1|Thrust at 1&nbsp;atm 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}}
Line 14: Line 9:
 
This template calculates the thrust range and then creates the entry for a {{Tl|Infobox/Part}}.
 
This template calculates the thrust range and then creates the entry for a {{Tl|Infobox/Part}}.
  
[[Category:Templates]]</noinclude>
+
[[Category:Calculating templates]]
 +
[[Category:Infobox/Part metatemplates]]</noinclude>

Revision as of 09:20, 1 May 2015

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

# Optional Description Default
1 No Thrust at 1 atm 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}}.