Difference between revisions of "Template:Infobox/Part/FuelConsumption/Cell"
From Kerbal Space Program Wiki
< Template:Infobox | Part
m (-formatnum/core usage;) |
(*use parameter table; +allow manual caption; *made category more specific;) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{Infobox/Part/Line|{{Infobox/Part/Dict|Consumption}}|2=<abbr title="{{#formatnum:{{#expr: {{{2}}}*{{{1}}}/1000}}|{{{5|2}}}|{{DS}}|t}} kg/s">{{Formatnum|{{{2}}}|{{{5|2}}}}}</abbr> {{Unit|{{{4|l}}}}}/s|3={{#if: {{{3|}}}|<abbr title="{{#formatnum:{{#expr: {{{3}}}*{{{1}}}/1000}}|{{{5|2}}}|{{DS}}|t}} kg/s">{{Formatnum|{{{3}}}|{{{5|2}}}}}</abbr> {{Unit|{{{4|l}}}}}/s}}}}</includeonly><noinclude>Creates one fuel consumption entry for {{Tl|Infobox/Part}} | + | <includeonly>{{Infobox/Part/Line|{{#if: {{{6|}}}|{{{6}}}|{{Infobox/Part/Dict|Consumption}}}}|2=<abbr title="{{#formatnum:{{#expr: {{{2}}}*{{{1}}}/1000}}|{{{5|2}}}|{{DS}}|t}} kg/s">{{Formatnum|{{{2}}}|{{{5|2}}}}}</abbr> {{Unit|{{{4|l}}}}}/s|3={{#if: {{{3|}}}|<abbr title="{{#formatnum:{{#expr: {{{3}}}*{{{1}}}/1000}}|{{{5|2}}}|{{DS}}|t}} kg/s">{{Formatnum|{{{3}}}|{{{5|2}}}}}</abbr> {{Unit|{{{4|l}}}}}/s}}}}</includeonly><noinclude>Creates one fuel consumption entry for {{Tl|Infobox/Part}}. |
− | + | {{Parameter Table|name=number|parameters= | |
+ | {{Parameter Row|1|Density in kg/m<sup>3</sup>}} | ||
+ | {{Parameter Row|2|Consumption in L/s at atmospheric pressure (or if no difference exists for all situations)}} | ||
+ | {{Parameter Row|3|Consumption in L/s in vacuum (2rd parameter is then for atmosphere).|Not set}} | ||
+ | {{Parameter Row|4|Visible unit for the consumption in X/s. Will be parsed through {{Tl|Unit}}.|<tt>l</tt>}} | ||
+ | {{Parameter Row|5|Number of decimal places shown.|<tt>2</tt>}} | ||
+ | {{Parameter Row|6|Caption shown by the cell.|Not set (automatically translated <tt>Fuel consumption</tt> by {{Tl|Infobox/Part/Dict}})}} | ||
+ | }} | ||
− | [[Category: | + | [[Category:Calculating templates]]</noinclude> |
Revision as of 13:20, 21 December 2013
Creates one fuel consumption entry for {{Infobox/Part}}.