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

From Kerbal Space Program Wiki
Jump to: navigation, search
(+show maximum and default value; +)
m (!make mp, sf, xg, ia and or actually optional values; +proper support for ox-max;)
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}}}}}}}}|{{{ox-max|}}}}}{{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: {{Booland|{{{lf-max|<noinclude>2880</noinclude>}}}|{{#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.
 
''TODO:'' What happens with maximum oxidizer amount by default?
 
  
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
Line 9: Line 7:
 
{{Parameter row|lf-max|Maximum amount of liquid fuel in the tank in units.|Not set/Hidden}}
 
{{Parameter row|lf-max|Maximum amount of liquid fuel in the tank in units.|Not set/Hidden}}
 
{{Parameter row|ox|Amount of oxidizer in the tank in units. Must be set to <tt>0</tt> if the tank contains liquid fuel but not oxidizer.|Not set/Hidden or set to 11/9<sup>th</sup> of the amount of liquid fuel if given}}
 
{{Parameter row|ox|Amount of oxidizer in the tank in units. Must be set to <tt>0</tt> if the tank contains liquid fuel but not oxidizer.|Not set/Hidden or set to 11/9<sup>th</sup> of the amount of liquid fuel if given}}
{{Parameter row|ox-max|Maximum amount of oxidizer in the tank in units.}}
+
{{Parameter row|ox-max|Maximum amount of oxidizer in the tank in units. Must be set to <tt>0</tt> if the tank can contain liquid fuel but cannot contain oxidizer. If <code>ox</code> is set to 0, this value won't be displayed even if <code>lf-max</code> is and <code>ox-max</code> isn't.|Not set/Hidden or set to 11/9<sup>th</sup> of the maximum amount of liquid fuel if given}}
 
{{Parameter row|mp|Amount of monopropellant in the tank in units.|Not set/Hidden}}
 
{{Parameter row|mp|Amount of monopropellant in the tank in units.|Not set/Hidden}}
 
{{Parameter row|mp-max|Maximum amount of monopropellant in the tank in units.|Not set/Hidden}}
 
{{Parameter row|mp-max|Maximum amount of monopropellant in the tank in units.|Not set/Hidden}}

Revision as of 16:55, 3 May 2015

Liquid fuel 2 880 Units of fuel
Oxidizer (default) 3 520 Units of fuel
(max) 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