Template:Convert/list of units

From Vanatas

The table below lists units supported by Template:Tlf. More complete lists are linked for each dimension. For a complete list of all dimensions, see full list of units.

Template:Divbox

Template:Tlf uses unit-codes, which are similar to, but not necessarily exactly the same as, the usual written abbreviation for a given unit. These unit-codes are displayed in column 3 of the following tables. These are accepted as input by Template:Tlf as the second and third unnamed parameters:

The unit-codes should be treated as case-sensitive:

The output of Template:Tlf can display multiple converted units, if further unit-codes are specified after the second unnamed parameter (without the pipe separator). Typical combination output units are listed below in column 7.

Some units have alternative unit-codes. These are shown in brackets in column 3, e.g. °F (F). Either may be entered for Fahrenheit (but not a lower-case f).

Abridged list of supported units
Template:Large
system unit unit-
code
symbol or
abbrev.
notes sample default
conversion
combination
output units
the system(s) to which the unit belongs units listed by name unit-code to use in template symbols shown in output other notes about the units sample of the default conversion for the unit output codes for multiple conversions

Template:Convert/list of units/area/short list Template:Convert/list of units/density/short list Template:Convert/list of units/energy/short list Template:Convert/list of units/force/short list Template:Convert/list of units/length/short list Template:Convert/list of units/mass/short list Template:Convert/list of units/speed/short list Template:Convert/list of units/temperature/short list Template:Convert/list of units/torque/short list Template:Convert/list of units/volume/short list

Template:Large
(Full list)
unit unit-
code
symbol or
abbrev.
sample default
conversion
gigapascal GPa GPa 1.0 GPa (150,000 psi)
megapascal MPa MPa 1.0 MPa (150 psi)
kilopascal kPa kPa 1.0 kPa (0.15 psi)
hectopascal hPa hPa 1.0 hPa (0.015 psi)
pascal Pa Pa 1.0 Pa (0.00015 psi)
millipascal mPa mPa 1.0 mPa (1.5×10−7 psi)
millibar mbar mbar 1.0 mbar (1.0 hPa)

Template:Convert/list of units/unitaltab

decibar dbar dbar 1.0 dbar (10 kPa)
bar bar (none) 1.0 bar (100 kPa)
kilobarye kBa kBa 1.0 kBa (1.0 hPa)
barye Ba Ba 1.0 Ba (0.10 Pa)
standard atmosphere atm atm 1.0 atm (100 kPa)
torr Torr Torr 1.0 Torr (0.13 kPa)
millimetre of mercury mmHg mmHg 1.0 mmHg (0.13 kPa)
inch of mercury inHg inHg 1.0 inHg (3.4 kPa)
pound per square inch psi psi 1.0 psi (6.9 kPa)
Template:Large
unit unit-
code
notes combinations
kilometres per litre km/l (km/L) Use km/L to get "km/L"
  • km/l mpgimp
  • km/l mpgus
litres per 100 kilometres l/100 km (L/100 km) Use L/100 km to get "L/100 km"
  • l/100 km mpgimp
  • l/100 km mpgus
litres per kilometre l/km (L/km) Use L/km to get "L/km"
  • l/km impgal/mi
  • l/km usgal/mi
miles per imperial gallon mpgimp
  • mpgimp mpgus
miles per US gallon mpgus (mpgUS, mpgU.S.) Use mpgUS to get "US"

Use mpgU.S. to get "U.S."
mpgus will give "U.S." if spelling is
set to US & "US" otherwise

  • mpgus mpgimp
imperial gallons per mile impgal/mi
  • impgal/mi
US gallons per mile usgal/mi (USgal/mi, U.S.gal/mi) As above with the us vs US vs U.S.
  • usgal/mi
The mpgUS, mpgU.S., USgal/mi vs U.S.gal/mi, km/L, L/100 km and L/km variants work within combinations also (making 36 combinations in total).
Template:Large
unit unit-
code
notes combinations
inhabitants per square kilometre PD/km2 PD stands for population density, i.e. humans (inhabitants)
  • PD/km2 PD/sqmi
per square kilometre /km2 Used when the word 'inhabitants' would be inappropriate.
  • /km2 /sqmi
inhabitants per hectare PD/ha
  • PD/ha PD/acre
per hectare /ha
  • /ha /acre
inhabitants per square mile PD/sqmi PD stands for population density, i.e. humans (inhabitants)
  • PD/sqmi PD/km2
per square mile /sqmi Used when the word 'inhabitants' would be inappropriate.
  • /sqmi /km2
inhabitants per acre PD/acre
  • PD/acre PD/ha
per acre /acre
  • /acre /ha
Template:Large
unit unit-
code
notes combinations
dollars per pound $/lb "$" can mean US$, HK$, etc.
  • (none)
dollars per kilogram $/kg
  • (none)
dollars per troy ounce $/ozt 12 troy ounces in 1 troy pound
  • (none)