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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Use dict)
m (Second param is optional)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Infobox{{#if: {{{where|}}}||/Part}}/Line|{{Dict/header|Isp}}|2=<abbr title="{{#formatnum:{{#expr: {{{1}}}*{{gisp}}}}|1|{{DS}}|t}}&nbsp;{{Dict|m}}/{{Dict|s}}">{{{1}}}&nbsp;{{Dict|s}}</abbr>|3={{#if: {{{2|}}}|<abbr title="{{#formatnum:{{#expr: {{{2}}}*{{gisp}}}}|1|{{DS}}|t}}&nbsp;{{Dict|m}}/{{Dict|s}}">{{{2}}}&nbsp;{{Dict|s}}</abbr>}}|type1={{#if: {{{where|}}}|{{{where|}}}}}}}</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>
 +
}}
  
Alternatively {{{where}}} could be used to describe where the first value is defined.
+
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