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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Second param is optional)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{Infobox/Part/Line|{{lang|en=[[Specific impulse|I<sub>sp</sub>]]|de=[[Terminology/de#isp|I<sub>sp</sub>]]|ja=[[Specific impulse/ja|比推力]]|ru=[[Specific impulse/ru|I<sub>пуст</sub>]]}}|2=<abbr title="{{#formatnum:{{#expr: {{{1}}}*{{gisp}}}}|1|{{DS}}|t}}&nbsp;{{Lang|en=m/s|ru=м/с}}">{{{1}}}&nbsp;{{Lang|en=s|ru=с}}</abbr>|3={{#if: {{{2|}}}|<abbr title="{{#formatnum:{{#expr: {{{2}}}*9.81}}|1|{{DS}}|t}}&nbsp;{{Lang|en=m/s|ru=м/с}}">{{{2}}}&nbsp;{{Lang|en=s|ru=с}}</abbr>}}}}</includeonly><noinclude>Creates one I<sub>sp</sub> entry for {{Tl|Infobox/Part}}. Has at least one parameter ({{{1}}}) for the I<sub>sp</sub> at atmospheric pressure (or if no difference exists for all situations) and could be use {{{2}}} for the I<sub>sp</sub> in vacuum.
+
<noinclude>{{Infobox/Part/preview|
 +
</noinclude>{{Infobox{{#if: {{{where|}}}||/Part}}/Line|{{Infobox/Part/Dict|Isp}}|2=<abbr title="{{#formatnum:{{#expr: {{{1<noinclude>|388</noinclude>}}}*{{gisp}}}}|1|{{DS}}|t}}&nbsp;{{Dict|m}}/{{Dict|s}}">{{{1<noinclude>|388</noinclude>}}}&nbsp;{{Dict|s}}</abbr>|3={{#if: {{{2|<noinclude>390</noinclude>}}}|<abbr title="{{#formatnum:{{#expr: {{{2<noinclude>|390</noinclude>}}}*{{gisp}}}}|1|{{DS}}|t}}&nbsp;{{Dict|m}}/{{Dict|s}}">{{{2<noinclude>|390</noinclude>}}}&nbsp;{{Dict|s}}</abbr>}}|type1={{#if: {{{where|}}}|{{{where|}}}}}}}<noinclude>
 +
}}
 +
 
 +
Creates one I<sub>sp</sub> entry for {{Tl|Infobox/Part}}.
 +
 
 +
{{Parameter table|name=number|parameters=
 +
{{Parameter row|1|I<sub>sp</sub> in seconds in an atmosphere.}}
 +
{{Parameter row|2|I<sub>sp</sub> in seconds in a vacuum.|Not set}}
 +
{{Parameter row|where|Describes where the first value is defined.|Not set}}
 +
}}
  
 
[[Category:Calculating templates]]
 
[[Category:Calculating templates]]
 
[[Category:Infobox/Part metatemplates]]</noinclude>
 
[[Category:Infobox/Part metatemplates]]</noinclude>

Latest revision as of 13:56, 11 September 2024

Isp (1 atm) 388 s
(vacuum) 390 s

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

# Optional Description Default
1 No Isp in seconds in an atmosphere.
2 Yes Isp in seconds in a vacuum. Not set
where Yes Describes where the first value is defined. Not set