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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Upgrade booland to parser function)
m (Fix ox calculation)
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|</noinclude>{{Infobox/Part/tank/line|lf|{{{lf|<noinclude>2880</noinclude>}}}|{{{lf-max|}}}}}{{Infobox/Part/tank/line|ox|{{#ifeq: {{{ox}}}|0||{{#if: {{{ox|}}}|{{{ox}}}|{{#if: {{{lf|<noinclude>2880</noinclude>}}}|{{#expr: {{{lf<noinclude>|2880</noinclude>}}}/9*11}}}}}}}}|{{#ifeq: {{{ox-max}}}|0||{{#if: {{{ox-max|}}}|{{{ox-max}}}|{{#if: {{{lf-max|<noinclude>2880</noinclude>}}}{{#if: {{#ifeq: {{{ox}}}|0||1}}|1}}|{{#expr: {{{lf-max<noinclude>|2880</noinclude>}}}/9*11}}}}}}}}}}{{Infobox/Part/tank/line|mp|{{{mp|<noinclude>74</noinclude>}}}|{{{mp-max|}}}}}{{Infobox/Part/tank/line|sf|{{{sf|<noinclude>1337</noinclude>}}}|{{{sf-max|}}}}}{{Infobox/Part/tank/line|xg|{{{xg|<noinclude>42</noinclude>}}}|{{{xg-max|}}}}}{{Infobox/Part/tank/line|ia|{{{ia|<noinclude>4.7</noinclude>}}}|{{{ia-max|}}}}}{{Infobox/Part/tank/line|or|{{{or|<noinclude>0</noinclude>}}}|{{{or-max|<noinclude>1701</noinclude>}}}}}<noinclude>}}
+
<noinclude>{{Infobox/Part/preview|</noinclude>{{Infobox/Part/tank/line|lf|{{{lf|<noinclude>2880</noinclude>}}}|{{{lf-max|}}}}}{{Infobox/Part/tank/line|ox|{{#ifeq: {{{ox}}}|0||{{#if: {{{ox|}}}|{{{ox}}}|{{#if: {{{lf|<noinclude>2880</noinclude>}}}|{{#expr: {{{lf<noinclude>|2880</noinclude>}}}/9*11}}}}}}}}|{{#ifeq: {{{ox-max}}}|0||{{#if: {{{ox-max|}}}|{{{ox-max}}}|{{#if: {{{lf-max|<noinclude>2880</noinclude>}}}{{#if: {{#ifeq: {{{ox}}}|0||1}}|{{#expr: {{{lf-max<noinclude>|2880</noinclude>}}}/9*11}}}}}}}}}}}}{{Infobox/Part/tank/line|mp|{{{mp|<noinclude>74</noinclude>}}}|{{{mp-max|}}}}}{{Infobox/Part/tank/line|sf|{{{sf|<noinclude>1337</noinclude>}}}|{{{sf-max|}}}}}{{Infobox/Part/tank/line|xg|{{{xg|<noinclude>42</noinclude>}}}|{{{xg-max|}}}}}{{Infobox/Part/tank/line|ia|{{{ia|<noinclude>4.7</noinclude>}}}|{{{ia-max|}}}}}{{Infobox/Part/tank/line|or|{{{or|<noinclude>0</noinclude>}}}|{{{or-max|<noinclude>1701</noinclude>}}}}}<noinclude>}}
  
 
{{Tl|Infobox/Part}} modules for fuel tanks.
 
{{Tl|Infobox/Part}} modules for fuel tanks.

Revision as of 23:21, 4 February 2020

Liquid fuel 2 880 Units of fuel
Oxidizer 3 520 Units of fuel
Monopropellant 74 Units of fuel
Solid fuel 1 337 Units of fuel
Xenon gas 42 Xenon unit
Intake air 5 Air unit
Ore (default) 0 Units of fuel
(max) 1 701 Units of fuel

{{Infobox/Part}} modules for fuel tanks.

Name Optional Description Default
lf Yes Amount of liquid fuel in the tank in units. Not set/Hidden
lf-max Yes Maximum amount of liquid fuel in the tank in units. Not set/Hidden
ox Yes Amount of oxidizer in the tank in units. Must be set to 0 if the tank contains liquid fuel but not oxidizer. Not set/Hidden or set to 11/9th of the amount of liquid fuel if given
ox-max Yes Maximum amount of oxidizer in the tank in units. Must be set to 0 if the tank can contain liquid fuel but cannot contain oxidizer. If ox is set to 0, this value won't be displayed even if lf-max is and ox-max isn't. Not set/Hidden or set to 11/9th of the maximum amount of liquid fuel if given
mp Yes Amount of monopropellant in the tank in units. Not set/Hidden
mp-max Yes Maximum amount of monopropellant in the tank in units. Not set/Hidden
sf Yes Amount of solid fuel in the tank in units. Not set/Hidden
sf-max Yes Maximum amount of solid fuel in the tank in units. Not set/Hidden
xg Yes Amount of xenon gas in the tank in units. Not set/Hidden
xg-max Yes Maximum amount of xenon gas in the tank in units. Not set/Hidden
ia Yes Amount of intake air in the tank in units. Not set/Hidden
ia-max Yes Maximum amount of intake air in the tank in units. Not set/Hidden
or Yes Amount of ore in the tank in units. Not set/Hidden
or-max Yes Maximum amount of or in the tank in units. Not set/Hidden