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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (+link in forums;)
m (second param is optional)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{Partbox/Line|{{Partbox/Dict|Maximum thrust}}|{{#if: {{{3|}}}|{{#expr: {{{3}}}/{{{2}}}*{{{1}}}}}|{{{1}}}}}&nbsp;kN|{{#if: {{{3|}}}|{{{1}}}&nbsp;kN}}}}</includeonly><noinclude>Creates one thrust entry for {{Tl|Partbox}}. Has at least two parameters for the vacuum (?) thrust in kN and 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>
 +
}}
  
<div style="border: 1px solid #000;background: #E0E0E0;padding:0.5em 1em;border-bottom:0;text-align:center;font-weight:bold;">Template usage</div>
+
Creates one thrust entry for {{Tl|Infobox/Part}}.
<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:Partbox Templates|subtemplates]] should use this template so if the update occurs only this template needs to be changed.</div>
+
{{Parameter table|name=number|parameters=
 +
{{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)|Not set}}
 +
{{Parameter row|3|Vacuum I<sub>sp</sub> in seconds.|Not set}}
 +
}}
  
{| class="wikitable"
+
This template calculates the thrust range and then creates the entry for a {{Tl|Infobox/Part}}.
! #
 
! Optional
 
! Description
 
{{ParameterRow|1|Vacuum (?) thrust in kN}}
 
{{ParameterRow|2|Vacuum I<sub>sp</sub> in seconds}}
 
{{ParameterRow|3|Atmospheric I<sub>sp</sub> in seconds.|Not set}}
 
|}
 
  
This template calculates the thrust range and then creates the entry for a {{Tl|Partbox}}.
+
[[Category:Calculating templates]]
 
+
[[Category:Infobox/Part metatemplates]]</noinclude>
<nowiki>[[Category:Templates|Partbox/Thrust]]</nowiki></noinclude>
 

Latest revision as of 22:13, 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 Yes Isp in seconds (atmospheric when 3rd parameter is set) Not set
3 Yes Vacuum Isp in seconds. Not set

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