Difference between revisions of "Template:Infobox/Part/FuelConsumption"
From Kerbal Space Program Wiki
< Template:Infobox | Part
m (*new name;) |
(+changing unit and decimal places;) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{Infobox/Part/FuelConsumption/Cell|{{{1}}}|{{FuelConsumption|{{{3}}}|{{{2}}}|{{{1}}}}}|{{#if: {{{4|}}}|{{FuelConsumption|{{{4}}}|{{{2}}}|{{{1}}}}}}}}}</includeonly><noinclude>Creates one fuel consumption entry for {{Tl|Infobox/Part}}. Has at least three parameters ({{{1}}}) for the density in kg/m<sup>3</sup> ({{{1}}}) and the fuel consumption in L/s at atmospheric pressure ({{{2}}}) (or if no difference exists for all situations) and could be use {{{3}}} for the fuel consumption in L/s in vacuum. | + | <includeonly>{{Infobox/Part/FuelConsumption/Cell|{{{1}}}|{{FuelConsumption|{{{3}}}|{{{2}}}|{{{1}}}}}|{{#if: {{{4|}}}|{{FuelConsumption|{{{4}}}|{{{2}}}|{{{1}}}}}}}|{{{5|l}}}|{{{6|2}}}}}</includeonly><noinclude>Creates one fuel consumption entry for {{Tl|Infobox/Part}}. Has at least three parameters ({{{1}}}) for the density in kg/m<sup>3</sup> ({{{1}}}) and the fuel consumption in L/s at atmospheric pressure ({{{2}}}) (or if no difference exists for all situations) and could be use {{{3}}} for the fuel consumption in L/s in vacuum. |
{{Parameter Table|name=number|parameters= | {{Parameter Table|name=number|parameters= | ||
Line 6: | Line 6: | ||
{{Parameter Row|3|I<sub>sp</sub> in seconds}} | {{Parameter Row|3|I<sub>sp</sub> in seconds}} | ||
{{Parameter Row|4|I<sub>sp</sub> in seconds in vacuum (3rd parameter is then for atmosphere).|Not set}} | {{Parameter Row|4|I<sub>sp</sub> in seconds in vacuum (3rd parameter is then for atmosphere).|Not set}} | ||
+ | {{Parameter Row|5|Visible unit for the consumption in X/s.|<tt>l</tt>}} | ||
+ | {{Parameter Row|6|Number of decimal places shown.|<tt>2</tt>}} | ||
}} | }} | ||
Revision as of 13:08, 13 July 2013
Creates one fuel consumption entry for {{Infobox/Part}}. Has at least three parameters ({{{1}}}) for the density in kg/m3 ({{{1}}}) and the fuel consumption in L/s at atmospheric pressure ({{{2}}}) (or if no difference exists for all situations) and could be use {{{3}}} for the fuel consumption in L/s in vacuum.
This template uses {{FuelConsumption}} to calculate the consumption and then passes it to {{Infobox/Part/FuelConsumption/Cell}} which creates the entry for a {{Infobox/Part}}.