Difference between revisions of "Template:Infobox/Part/FuelConsumption"
From Kerbal Space Program Wiki
< Template:Infobox | Part
m (*updated to new name;) |
m (*renamed Parameter Table to Parameter table;) |
||
(6 intermediate revisions by 2 users not shown) | |||
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}}}|{{{7|}}}}}</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 | + | {{Parameter table|name=number|parameters= |
− | {{ | + | {{Parameter row|1|Density in kg/m<sup>3</sup>}} |
− | {{ | + | {{Parameter row|2|Thrust in kN}} |
− | {{ | + | {{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|5|Visible unit for the consumption in X/s.|<tt>l</tt>}} | ||
+ | {{Parameter row|6|Number of decimal places shown.|<tt>2</tt>}} | ||
+ | {{Parameter row|7|Caption shown by the cell.|Not set (automatically translated <tt>Fuel consumption</tt> by {{Tl|Infobox/Part/Dict}})}} | ||
}} | }} | ||
This template uses {{Tl|FuelConsumption}} to calculate the consumption and then passes it to {{Tl|Infobox/Part/FuelConsumption/Cell}} which creates the entry for a {{Tl|Infobox/Part}}. | This template uses {{Tl|FuelConsumption}} to calculate the consumption and then passes it to {{Tl|Infobox/Part/FuelConsumption/Cell}} which creates the entry for a {{Tl|Infobox/Part}}. | ||
− | [[Category: | + | [[Category:Calculating templates]] |
+ | [[Category:Infobox/Part metatemplates]]</noinclude> |
Latest revision as of 12:04, 19 December 2014
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.
# | Optional | Description | Default |
---|---|---|---|
1 | No | Density in kg/m3 | |
2 | No | Thrust in kN | |
3 | No | Isp in seconds | |
4 | Yes | Isp in seconds in vacuum (3rd parameter is then for atmosphere). | Not set |
5 | Yes | Visible unit for the consumption in X/s. | l |
6 | Yes | Number of decimal places shown. | 2 |
7 | Yes | Caption shown by the cell. | Not set (automatically translated Fuel consumption by {{Infobox/Part/Dict}}) |
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}}.