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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Add preview)
Line 1: Line 1:
<includeonly>{{Infobox/Part/Line|{{Infobox/Part/Dict|Maximum thrust}}|{{Formatnum|{{#expr: {{{1}}}{{#if: {{{3|}}}|/{{{3}}}*{{{2}}}}}}}|2}}&nbsp;{{Dict|k}}{{Dict|N}}|{{#if: {{{3|}}}|{{Formatnum|{{{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.
+
<noinclude>{{Infobox/Part/preview|
 +
</noinclude>{{Infobox/Part/Line|{{Infobox/Part/Dict|Maximum thrust}}|{{Formatnum|{{#expr: {{{1<noinclude>|175</noinclude>}}}{{#if: {{{3|<noinclude>390</noinclude>}}}|/{{{3<noinclude>|390</noinclude>}}}*{{{2<noinclude>|388</noinclude>}}}}}}}|2}}&nbsp;{{Dict|k}}{{Dict|N}}|{{#if: {{{3|<noinclude>390</noinclude>}}}|{{Formatnum|{{{1<noinclude>|175</noinclude>}}}|2}}&nbsp;{{Dict|k}}{{Dict|N}}}}}}<noinclude>
 +
}}
 +
 
 +
Creates one thrust entry for {{Tl|Infobox/Part}}.
  
 
{{Parameter table|name=number|parameters=
 
{{Parameter table|name=number|parameters=

Revision as of 14:57, 10 September 2024

Maximum thrust (1 atm) 174.10 kN
(vacuum) 175.00 kN

Creates one thrust entry for {{Infobox/Part}}.

# 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}}.