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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (+ec unit;)
m (Add eva as resource)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch: {{{1<noinclude>|sf</noinclude>}}}
+
{{#switch: {{lc:{{{1<noinclude>|sf</noinclude>}}}}}
|lf|ox|mp|sf={{Mark|fuelu}}
+
|lf|ox|mp|sf|or|eva={{Mark|fuelu}}
 
|xg={{mark|lgu}}
 
|xg={{mark|lgu}}
 
|ia={{mark|airu}}
 
|ia={{mark|airu}}
|ec={{mark|echu}}
+
|ec={{mark|echu}}}}<noinclude>
}}<noinclude>
 
  
 
Shows the unit for a resource type. Accepts one parameter with the abbreviated type.
 
Shows the unit for a resource type. Accepts one parameter with the abbreviated type.
 +
 +
{{Parameter table|name=text|parameters=
 +
{{Parameter row|1|Abbreviated resource type. The following values are supported (not case sensitive):
 +
* <tt>lf</tt>, <tt>ox</tt>, <tt>mp</tt>, <tt>sf</tt>, <tt>or</tt>, <tt>eva</tt>: {{Mark|fuelu}}
 +
* <tt>xg</tt>: {{mark|lgu}}
 +
* <tt>ia</tt>: {{mark|airu}}
 +
* <tt>ec</tt>: {{mark|echu}}
 +
If the value is not known, shows nothing.}}
 +
}}
  
 
[[Category:Infobox/Part metatemplates]]</noinclude>
 
[[Category:Infobox/Part metatemplates]]</noinclude>

Latest revision as of 20:44, 9 September 2024

Units of fuel

Shows the unit for a resource type. Accepts one parameter with the abbreviated type.

Name Optional Description Default
1 No Abbreviated resource type. The following values are supported (not case sensitive):
  • lf, ox, mp, sf, or, eva: Units of fuel
  • xg: Xenon unit
  • ia: Air unit
  • ec: ⚡

If the value is not known, shows nothing.