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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Add eva propellant)
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|</noinclude>{{if||{{{lf|<noinclude>2880</noinclude>}}}|{{Infobox/Line|{{if lang link|Liquid fuel|de=Flüssigtreibstoff|hu=Folyékony üzemanyag|ru=Жидкое топливо|ja=液体燃料}}|{{formatnum|{{{lf<noinclude>|2880</noinclude>}}}|3}}&nbsp;{{{unit|L}}}}}
+
<noinclude>{{Infobox/Part/preview|
}}{{if||{{#ifeq: {{{ox}}}|0||{{{ox|}}}}}{{Booland|{{{lf|<noinclude>2880</noinclude>}}}|{{#ifeq: {{{ox}}}|0||1}}|1}}|{{Infobox/Line|{{if lang link|Oxidizer|de=Oxidator|hu=Oxidálószer|ru=Окислитель|ja=酸化剤}}|{{formatnum|{{#if: {{{ox|}}}|{{{ox}}}|{{#expr: {{{lf<noinclude>|2880</noinclude>}}}/9*11}}}}|3}}&nbsp;{{{unit|L}}}}}
+
</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>}}}}}{{Infobox/Part/tank/line|eva|{{{eva|<noinclude>5</noinclude>}}}|{{{eva-max|}}}}}<noinclude>
}}{{if||{{{mp|<noinclude>74</noinclude>}}}|{{Infobox/Line|{{if lang link|Monopropellant|hu=Egykomponensű hajtóanyag|ru=Монотопливо|ja=モノプロペラント}}|{{formatnum|{{{mp<noinclude>|74</noinclude>}}}|3}}&nbsp;{{{unit|L}}}}}
+
}}
}}{{if||{{{sf|<noinclude>1337</noinclude>}}}|{{Infobox/Line|{{if lang link|Solid fuel|de=Festtreibstoff|hu=Szilárd hajtóanyag|ru=Твердое топливо|ja=固体燃料}}|{{formatnum|{{{sf<noinclude>|1337</noinclude>}}}|3}}&nbsp;{{{unit|L}}}}}
 
}}{{if||{{{xg|<noinclude>42</noinclude>}}}|{{Infobox/Line|{{if lang link|Xenon gas|de=Xenon Gas|hu=Xenon|ru=Газ ксенон|ja=キセノンガス}}|{{formatnum|{{{xg<noinclude>|42</noinclude>}}}|3}}&nbsp;{{lang|en=units|de=Einheiten|hu=egység|ru=единиц}}}}
 
}}{{if||{{{ia|<noinclude>4.7</noinclude>}}}|{{Infobox/Line|{{if lang link|Intake air|de=Ansaugluft|hu=Beszívott evegő|ru=Поступающий воздух|ja=吸気量}}|{{formatnum|{{{ia<noinclude>|4.7</noinclude>}}}|3}}&nbsp;{{{unit|L}}}}}
 
}}<noinclude>}}
 
  
{{Tl|Infobox/Part}} modules for fuel tanks. Currently only [[liquid fuel]] and [[oxidizer]] are supported. Future versions of this template most likely support additional fuel types.
+
{{Tl|Infobox/Part}} modules for fuel tanks.
  
{{Parameter Table|name=text|parameters=
+
{{Parameter table|name=text|parameters=
{{Parameter Row|lf|Amount of liquid fuel in the tank in liters.|Not set/Hidden}}
+
{{Parameter row|lf|Amount of liquid fuel in the tank in units.|Not set/Hidden}}
{{Parameter Row|ox|Amount of oxidizer in the tank in liters. 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|lf-max|Maximum amount of liquid fuel in the tank in units.|Not set/Hidden}}
{{Parameter Row|mp|Amount of monopropellant in the tank in liters.|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|sf|Amount of solid fuel in the tank in liters.|Not set/Hidden}}
+
{{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|xg|Amount of xenon gas in the tank in liters.|Not set/Hidden}}
+
{{Parameter row|mp|Amount of monopropellant in the tank in units.|Not set/Hidden}}
{{Parameter Row|ia|Amount of intake air in the tank in liters.|Not set/Hidden}}
+
{{Parameter row|mp-max|Maximum amount of monopropellant in the tank in units.|Not set/Hidden}}
 +
{{Parameter row|sf|Amount of solid fuel in the tank in units.|Not set/Hidden}}
 +
{{Parameter row|sf-max|Maximum amount of solid fuel in the tank in units.|Not set/Hidden}}
 +
{{Parameter row|xg|Amount of xenon gas in the tank in units.|Not set/Hidden}}
 +
{{Parameter row|xg-max|Maximum amount of xenon gas in the tank in units.|Not set/Hidden}}
 +
{{Parameter row|ia|Amount of intake air in the tank in units.|Not set/Hidden}}
 +
{{Parameter row|ia-max|Maximum amount of intake air in the tank in units.|Not set/Hidden}}
 +
{{Parameter row|or|Amount of ore in the tank in units.|Not set/Hidden}}
 +
{{Parameter row|or-max|Maximum amount of ore in the tank in units.|Not set/Hidden}}
 +
{{Parameter row|eva|Amount of eva propellant in the tank in units.|Not set/Hidden}}
 +
{{Parameter row|eva-max|Maximum amount of eva propellant in the tank in units.|Not set/Hidden}}
 
}}
 
}}
 
{{Subcategory|modules}}</noinclude>
 
{{Subcategory|modules}}</noinclude>

Latest revision as of 21:10, 9 September 2024

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
EVA propellant 5 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 ore in the tank in units. Not set/Hidden
eva Yes Amount of eva propellant in the tank in units. Not set/Hidden
eva-max Yes Maximum amount of eva propellant in the tank in units. Not set/Hidden