Module:Val/units: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>The Mol Man
No edit summary
Ookami (talk | contribs)
m 118 revisions imported
 
(97 intermediate revisions by 14 users not shown)
Line 1: Line 1:
-- TODO: Need to see what units are missing and add them
-- Definitions for units known to val
-- File format is two strings and a return statement with them in it:
-- string in quotes [=[ ... builtin_units ... ]=].
-- string in quotes [=[ ... builtin_units_long_scale ... ]=].
-- First string, builtin_units, is short-scale, second string is long scale.


local units_tbl = {}--[=[ {
-- Entry format:
-- No space before unit
-- One record per line, starting in first column, having 2-4 fields.
arcminute = { abbr='′', link='minute of arc', nospace=true },
-- Field separator: two or more spaces
arcmin = { abbr='′', link='minute of arc', nospace=true },
-- Between first and second fields: two or more spaces
["'"] = { abbr='′', link='minute of arc', nospace=true },
-- Between all other fields: two or more spaces, or one or more tabs
['′'] = { abbr='′', link='minute of arc', nospace=true },
-- Entries without two spaces in them are ignored.
arcsecond = { abbr='″', link='second of arc', nospace=true },
arcsec = { abbr='″', link='second of arc', nospace=true },
['"'] = { abbr='″', link='second of arc', nospace=true },
['″'] = { abbr='″', link='second of arc', nospace=true },
['deg'] = { abbr='°', link='degree (angle)', nospace=true },
['°'] = { abbr='°', link='degree (angle)', nospace=true },
percent = { abbr='%', link='percent', nospace=true },
['per cent'] = { abbr='%', link='percent', nospace=true },
['%'] = { abbr='%', link='percent', nospace=true },
permil = { abbr='‰', link='per mil', nospace=true },
permill = { abbr='‰', link='per mil', nospace=true },
permille = { abbr='‰', link='per mil', nospace=true },
['per mil'] = { abbr='‰', link='per mil', nospace=true },
['per mill'] = { abbr='‰', link='per mil', nospace=true },
['per mille'] = { abbr='‰', link='per mil', nospace=true },
['‰'] = { abbr='‰', link='per mil', nospace=true },
-- Space before unit
A = { abbr='A', link='ampere' },
aA = { abbr='aA', link='attoampere' },
AD = { abbr='AD', link='Anno Domini' },
aG = { abbr='aG', link='attogauss' },
ag = { abbr='ag', link='attogram' },
aHz = { abbr='aHz', link='attohertz' },
aK = { abbr='aK', link='attokelvin' },
am = { abbr='am', link='attometre' },
aT = { abbr='aT', link='attotesla' },
BC = { abbr='BC', link='Before Christ' },
BCE = { abbr='BCE', link='Before the Common Era' },
['bit/s'] = { abbr='bit/s', link='bit per second' },
bps = { abbr='bit/s', link='bit per second' },
BP = { abbr='BP', link='Before present' },
bya = { abbr='bya', link='billion years ago' },
byr = { abbr='byr', link='billion years' },
C = { abbr='C', link='coulomb' },
c = { abbr='<i>c</i>', link='speed of light' },
cA = { abbr='cA', link='centiampere' },
CE = { abbr='CE', link='Common Era' },
cG = { abbr='cG', link='centigauss' },
cg = { abbr='cg', link='centigram' },
cHz = { abbr='cHz', link='centihertz' },
cK = { abbr='cK', link='centikelvin' },
['cm-1'] = { abbr='cm<sup>&minus;1</sup>', link='wavenumber' },
cT = { abbr='cT', link='centitesla' },
cV = { abbr='cV', link='volt' },
dA = { abbr='dA', link='ampere' },
daA = { abbr='daA', link='decaampere' },
daG = { abbr='daG', link='decagauss' },
dag = { abbr='dag', link='decagram' },
daHz = { abbr='daHz', link='decahertz' },
daK = { abbr='daK', link='decakelvin' },
daT = { abbr='daT', link='decatesla' },
daV = { abbr='daV', link='volt' },
degC = { abbr='°C', link='degree Celsius' },
degF = { abbr='°F', link='Fahrenheit' },
degR = { abbr='°R', link='Rankine scale' },
dG = { abbr='dG', link='decigauss' },
dg = { abbr='dg', link='decigram' },
dHz = { abbr='dHz', link='hertz' },
dK = { abbr='dK', link='decikelvin' },
dT = { abbr='dT', link='decitesla' },
dV = { abbr='dV', link='volt' },
e = { abbr='<i>e</i>', link='Elementary charge' },
EA = { abbr='EA', link='ampere' },
['Earth mass'] = { abbr='<i>M</i><sub>⊕</sub>', link='Earth mass' },
['Earth radius'] = { abbr='<i>R</i><sub>⊕</sub>', link='Earth radius' },
EG = { abbr='EG', link='exagauss' },
Eg = { abbr='Eg', link='exagram' },
EHz = { abbr='EHz', link='exahertz' },
EK = { abbr='EK', link='exakelvin' },
ET = { abbr='ET', link='exatesla' },
EV = { abbr='EV', link='volt' },
['eV/c2'] = { abbr='eV/<i>c</i><sup>2</sup>', link='electronvolt#Mass' },
F = { abbr='F', link='farad' },
fA = { abbr='fA', link='femtoampere' },
['fb-1'] = { abbr='fb<sup>&minus;1</sup>', link='Barn (unit)' },
fG = { abbr='fG', link='femtogauss' },
fg = { abbr='fg', link='femtogram' },
fHz = { abbr='fHz', link='femtohertz' },
fK = { abbr='fK', link='femtokelvin' },
fT = { abbr='fT', link='femtotesla' },
fV = { abbr='fV', link='femtovolt' },
gal = { abbr='gal', link='gallon' },
['g/cm3'] = { abbr='g/cm<sup>3</sup>', link='gram per cubic centimetre' },
['g/l'] = { abbr='g/l', link='gram per litre' },
['g/L'] = { abbr='g/L', link='gram per litre' },
['g*mol-1'] = { abbr='g&sdot;mol<sup>&minus;1</sup>', link='molar mass' },
['g/mol'] = { abbr='g&sdot;mol<sup>&minus;1</sup>', link='molar mass' },
GA = { abbr='GA', link='gigaampere' },
Ga = { abbr='Ga', link='gigaannum' },
['Gbit/s'] = { abbr='Gbit/s', link='gigabit per second' },
['GeV/c2'] = { abbr='GeV/<i>c</i><sup>2</sup>', link='electronvolt#Mass' },
GG = { abbr='GG', link='gigagauss' },
Gg = { abbr='Gg', link='gigagram' },
GHz = { abbr='GHz', link='gigahertz' },
['GJ*mol-1'] = { abbr='GJ&sdot;mol<sup>&minus;1</sup>', link='joule per mole' },
['GJ/mol'] = { abbr='GJ/mol', link='joule per mole' },
GK = { abbr='GK', link='gigakelvin' },
GPa = { abbr='GPa', link='gigapascal' },
Gpc = { abbr='Gpc', link='megaparsec#Megaparsecs_and_gigaparsecs' },
['Gpc2'] = { abbr='Gpc<sup>2</sup>', link='megaparsec#Megaparsecs_and_gigaparsecs' },
['Gpc3'] = { abbr='Gpc<sup>3</sup>', link='megaparsec#Megaparsecs_and_gigaparsecs' },
GT = { abbr='GT', link='gigatesla' },
GV = { abbr='GV', link='gigavolt' },
Gyr = { abbr='Ga', link='gigaannum' },
H = { abbr='H', link='Henry (unit)' },
['H*m-1'] = { abbr='H', link='Henry (unit)' },
hA = { abbr='hA', link='hectoampere' },
hG = { abbr='hG', link='hectogauss' },
hg = { abbr='hg', link='hectogram' },
hHz = { abbr='hHz', link='hectohertz' },
hK = { abbr='hK', link='hectokelvin' },
hT = { abbr='hT', link='hectotesla' },
hV = { abbr='hV', link='volt' },
Hz = { abbr='Hz', link='hertz' },
['Jupiter mass'] = { abbr='<i>M</i><sub>J</sub>', link='Jupiter mass' },
['Jupiter radius'] = { abbr='<i>R</i><sub>J</sub>', link='Jupiter radius' },
['J/kg'] = { abbr='J/kg', link='joule' },
['J*mol-1'] = { abbr='J&sdot;mol<sup>&minus;1</sup>', link='joule per mole' },
['J/mol'] = { abbr='J/mol', link='joule per mole' },
Js = { abbr='J&sdot;s', link='joule-second' },
['J*s'] = { abbr='J&sdot;s', link='joule-second' },
kA = { abbr='kA', link='kiloampere' },
ka = { abbr='ka', link='kiloannum' },
['kbit/s'] = { abbr='kbit/s', link='kilobit per second' },
['keV/c2'] = { abbr='keV/<i>c</i><sup>2</sup>', link='electronvolt#Mass' },
kG = { abbr='kG', link='kilogauss' },
['kg/cm3'] = { abbr='kg/cm<sup>3</sup>', link='density#Formula_and_common_units' },
['kg/m3'] = { abbr='kg/m<sup>3</sup>', link='kilogram per cubic metre' },
['kg/mol'] = { abbr='kg&sdot;mol<sup>&minus;1</sup>', link='molar mass' },
kHz = { abbr='kHz', link='Kilohertz' },
kpc = { abbr='kpc', link='kiloparsec' },
['kpc2'] = { abbr='kpc<sup>2</sup>', link='kiloparsec' },
['kpc3'] = { abbr='kpc<sup>3</sup>', link='kiloparsec' },
['kJ*mol-1'] = { abbr='kJ&sdot;mol<sup>&minus;1</sup>', link='joule per mole' },
['kJ/mol'] = { abbr='kJ/mol', link='joule per mole' },
kK = { abbr='kK', link='kilokelvin' },
KPa = { abbr='kPa', link='pascal (unit)' },
kT = { abbr='kT', link='kilotesla' },
kV = { abbr='kV', link='kilovolt' },
['kW·h'] = { abbr='kW&sdot;h', link='kilowatt hour' },
['kW.h'] = { abbr='kW&sdot;h', link='kilowatt hour' },
kWh = { abbr='kWh', link='kilowatt hour' },
kya = { abbr='kya', link='kyr' },
kyr = { abbr='kyr', link='kyr' },
lbf = { abbr='{{lbf}}', link='Pound (force)' },
lbm = { abbr='{{lbm}}', link='Pound (mass)' },
ly = { abbr='ly', link='light-year' },
['L_solar'] = { abbr='<i>L</i><sub>&#x2609;</sub>', link='solar luminosity' },
['m-3'] = { abbr='m<sup>&minus;3</sup>', link='cubic metre' },
['m-2'] = { abbr='m<sup>&minus;2</sup>', link='square metre' },
['m-1'] = { abbr='m<sup>&minus;1</sup>', link='metre' },
m = { abbr='m', link='metre' },
['m2'] = { abbr='m<sup>2</sup>', link='Square metre' },
['m3'] = { abbr='m<sup>3</sup>', link='Cubic metre' },
metre = { abbr='m', link='metre' },
meter = { abbr='m', link='metre' },
['m*s-1'] = { abbr='m&sdot;s<sup>&minus;1</sup>', link='metre per second' },
['m*s-2'] = { abbr='m&sdot;s<sup>&minus;2</sup>', link='metre per second squared' },
['M_Earth'] = { abbr='<i>M</i><sub>⊕</sub>', link='Earth mass' },
['M_Jupiter'] = { abbr='<i>M</i><sub>J</sub>', link='Jupiter mass' },
['M_Solar'] = { abbr='<i>M</i><sub>&#x2609;</sub>', link='solar mass' },
['M_solar'] = { abbr='<i>M</i><sub>&#x2609;</sub>', link='solar mass' },
mA = { abbr='mA', link='milliampere' },
MA = { abbr='MA', link='megaampere' },
Ma = { abbr='Ma', link='megaannum' },
['Mbit/s'] = { abbr='Mbit/s', link='megabit per second' },
mcg = { abbr='µg', link='microgram' },
['mcg/dL'] = { abbr='µg/dL', link='gram per' },
['mcg/dl'] = { abbr='µg/dl', link='gram per' },
['MeV/c2'] = { abbr='MeV/<i>c</i><sup>2</sup>', link='electronvolt#Mass' },
MG = { abbr='MG', link='megagauss' },
Mg = { abbr='Mg', link='megagram' },
mG = { abbr='mG', link='milligauss' },
['mg/mL'] = { abbr='mg/mL', link='gram per litre' },
['mg/ml'] = { abbr='mg/mL', link='gram per litre' },
MHz = { abbr='MHz', link='megahertz' },
mHz = { abbr='mHz', link='hertz' },
['MJ*mol-1'] = { abbr='MJ&sdot;mol<sup>&minus;1</sup>', link='joule per mole' },
['MJ/mol'] = { abbr='MJ/mol', link='joule per mole' },
MK = { abbr='MK', link='megakelvin' },
mK = { abbr='mK', link='millikelvin' },
Mpc = { abbr='Mpc', link='parsec#Megaparsecs_and_gigaparsecs' },
['Mpc2'] = { abbr='Mpc<sup>2</sup>', link='parsec#Megaparsecs_and_gigaparsecs' },
['Mpc3'] = { abbr='Mpc<sup>3</sup>', link='parsec#Megaparsecs_and_gigaparsecs' },
MT = { abbr='MT', link='megatesla' },
mT = { abbr='mT', link='millitesla' },
muA = { abbr='µA', link='ampere' },
muG = { abbr='µG', link='microgauss' },
mug = { abbr='µg', link='microgram' },
muGal = { abbr='µGal', link='Gal (unit)' },
muHz = { abbr='µHz', link='hertz' },
muJ = { abbr='µJ', link='joule' },
muK = { abbr='µK', link='microkelvin' },
mum = { abbr='µm', link='micrometre' },
mus = { abbr='µs', link='microsecond' },
muT = { abbr='µT', link='microtesla' },
muV = { abbr='µV', link='volt' },
MV = { abbr='MV', link='volt' },
mV = { abbr='mV', link='volt' },
mya = { abbr='mya', link='million years ago' },
myr = { abbr='myr', link='million years' },
nA = { abbr='nA', link='ampere' },
['N*A-2'] = { abbr='N&sdot;A<sup>&minus;2</sup>', link='permeability (electromagnetism)' },
nG = { abbr='nG', link='nanogauss' },
ng = { abbr='ng', link='nanogram' },
nHz = { abbr='nHz', link='hertz' },
nK = { abbr='nK', link='nanokelvin' },
['N*m-1'] = { abbr='N&sdot;m<sup>&minus;1</sup>', link='joule (unit)' },
nT = { abbr='nT', link='nanotesla' },
nV = { abbr='nV', link='volt' },
PA = { abbr='PA', link='ampere' },
pA = { abbr='pA', link='ampere' },
['pc2'] = { abbr='pc<sup>2</sup>', link='Parsec' },
['pc3'] = { abbr='pc<sup>3</sup>', link='Parsec' },
PG = { abbr='PG', link='petagauss' },
Pg = { abbr='Pg', link='petagram' },
pG = { abbr='pG', link='picogauss' },
pg = { abbr='pg', link='picogram' },
PHz = { abbr='PHz', link='petahertz' },
pHz = { abbr='pHz', link='hertz' },
PK = { abbr='PK', link='petakelvin' },
pK = { abbr='pK', link='picokelvin' },
ppb = { abbr='ppb', link='parts per billion' },
ppm = { abbr='ppm', link='parts per million' },
PT = { abbr='PT', link='petatesla' },
pT = { abbr='pT', link='picotesla' },
PV = { abbr='PV', link='volt' },
pV = { abbr='pV', link='volt' },
R = { abbr='R', link='rayleigh (unit)' },
['R_Earth'] = { abbr='<i>R</i><sub>⊕</sub>', link='Earth radius' },
['R_Jupiter'] = { abbr='<i>R</i><sub>J</sub>', link='Jupiter radius' },
['R_Solar'] = { abbr='<i>R</i><sub>&#x2609;</sub>', link='solar radius' },
['R_solar'] = { abbr='<i>R</i><sub>&#x2609;</sub>', link='solar radius' },
s = { abbr='s', link='second' },
second = { abbr='s', link='second' },
seconds = { abbr='s', link='second' },
['s-1'] = { abbr='s<sup>&minus;1</sup>', link='second' },
['s-2'] = { abbr='s<sup>&minus;2</sup>', link='second' },
['s2'] = { abbr='s<sup>2</sup>', link='second' },
['Solar luminosity'] = { abbr='<i>L</i><sub>&#x2609;</sub>', link='solar luminosity' },
['solar luminosity'] = { abbr='<i>L</i><sub>&#x2609;</sub>', link='solar luminosity' },
['Solar mass'] = { abbr='<i>M</i><sub>&#x2609;</sub>', link='solar mass' },
['solar mass'] = { abbr='<i>M</i><sub>&#x2609;</sub>', link='solar mass' },
['Solar radius'] = { abbr='<i>R</i><sub>&#x2609;</sub>', link='solar radius' },
['solar radius'] = { abbr='<i>R</i><sub>&#x2609;</sub>', link='solar radius' },
TA = { abbr='TA', link='ampere' },
['Tbit/s'] = { abbr='Tbit/s', link='terabit per second' },
['TeV/c2'] = { abbr='TeV/<i>c</i><sup>2</sup>', link='electronvolt#Mass' },
TG = { abbr='TG', link='teragauss' },
Tg = { abbr='Tg', link='teragram' },
THz = { abbr='THz', link='terahertz' },
['TJ*mol-1'] = { abbr='TJ&sdot;mol<sup>&minus;1</sup>', link='joule per mole' },
['TJ/mol'] = { abbr='TJ/mol', link='joule per mole' },
TK = { abbr='TK', link='terakelvin' },
Torr = { abbr='Torr', link='Torr' },
torr = { abbr='Torr', link='Torr' },
TT = { abbr='TT', link='teratesla' },
TV = { abbr='TV', link='volt' },
u = { abbr='u', link='atomic mass unit' },
uBP = { abbr='<sup>14</sup>C yr BP', link='Radiocarbon dating#Calibration' },
USgal = { abbr='US gal', link='US gallon' },
V = { abbr='V', link='volt' },
VV = { abbr='VV', link='volt' },
['V/m'] = { abbr='V/m', link='electric field' },
['Vm-1'] = { abbr='V&sdot;m<sup>&minus;1</sup>', link='electric field' },
['V*m-1'] = { abbr='V&sdot;m<sup>&minus;1</sup>', link='electric field' },
W = { abbr='W', link='Watt' },
Wb = { abbr='Wb', link='Weber (unit)' },
y = { abbr='y', link='year' },
yA = { abbr='yA', link='ampere' },
YA = { abbr='YA', link='ampere' },
year = { abbr='year', link='year' },
years = { abbr='years', link='year' },
YG = { abbr='YG', link='yottagauss' },
Yg = { abbr='Yg', link='yottagram' },
yG = { abbr='yG', link='yoctogauss' },
yg = { abbr='yg', link='yoctogram' },
YHz = { abbr='YHz', link='yottahertz' },
yHz = { abbr='yHz', link='hertz' },
YK = { abbr='YK', link='yottakelvin' },
yK = { abbr='yK', link='yoctokelvin' },
ym = { abbr='ym', link='yoctometre' },
yr = { abbr='yr', link='year#Symbols_y_and_yr' },
YT = { abbr='YT', link='Yottatesla' },
yT = { abbr='yT', link='yoctotesla' },
YV = { abbr='YV', link='volt' },
yV = { abbr='yV', link='volt' },
ZA = { abbr='ZA', link='ampere' },
zA = { abbr='zA', link='ampere' },
ZG = { abbr='ZG', link='zettagauss' },
Zg = { abbr='Zg', link='zettagram' },
zG = { abbr='zG', link='zeptogauss' },
zg = { abbr='zg', link='zeptogram' },
ZHz = { abbr='ZHz', link='hertz' },
zHz = { abbr='zHz', link='hertz' },
ZK = { abbr='ZK', link='zettakelvin' },
zK = { abbr='zK', link='zeptokelvin' },
zm = { abbr='zm', link='zeptometre' },
ZT = { abbr='ZT', link='zettatesla' },
zT = { abbr='zT', link='zeptotesla' },
ZV = { abbr='ZV', link='volt' },
zV = { abbr='zV', link='volt' },
['µA'] = { abbr='µA', link='microampere' },
['µB'] = { abbr='µ<sub>B</sub>', link='Bohr magneton' },
['µG'] = { abbr='µG', link='microgauss' },
['µGal'] = { abbr='µGal', link='Gal (unit)' },
['μg/dl'] = { abbr='μg/dL', link='gram per litre' },
['μg/dL'] = { abbr='μg/dL', link='gram per litre' },
['µHz'] = { abbr='µHz', link='hertz' },
['µK'] = { abbr='µK', link='microkelvin' },
['µN'] = { abbr='µ<sub>N</sub>', link='nuclear magneton' },
['μN'] = { abbr='µ<sub>N</sub>', link='nuclear magneton' },
['µT'] = { abbr='µT', link='microtesla' },
['µV'] = { abbr='µV', link='microvolt' }
}--]=]


return function (u, tbl)
-- There must be a blank line before the first entry and after the last.
if not tbl then
-- I.e. the first two and last two characters of the string must be newlines.
tbl = {}
end
local per = tbl.per
local link = tbl.link
local perl = tbl.per_link


function get_unit(_u)
-- Format of entry. Two record types:
if units_tbl[_u] then
--
return units_tbl[_u]
-- One record type is a wikilink:
else
-- Unit-code        [[ pagename | Symbol-accepts-HTML-only ]]
-- load convert module data
-- Text-field separator is still two spaces. Two spaces not allowed in wikilink.
local convert_data = mw.loadData('Module:Convert/data').all_units
--
local c_unit = convert_data[_u]
-- The other record type is all fields:
if c_unit then
-- Unit-code        symbol-accepts-HTML-only        pagename#section-OK
if c_unit.target then
--
c_unit = convert_data[c_unit.target]
-- Plus there is an optional field that goes at the end after two or more spaces.
end
-- Whether it is a number or an equation or the letters SI,
return {abbr=c_unit.symbol or _u, link=c_unit.link or c_unit.name1 or _u, symlink=c_unit.symlink}
-- any of these three has the same function: a wikitable sorting "scale".
else
-- It is for sorting, and it works for either record type.
return {abbr=u, link=u}
-- Difference is SI can't accept HTML. But SI correctly scales any SI prefix.
end
-- (Optional fields ALIAS and NOSPACE and ANGLE are for advanced users.)
end
end


local unit = get_unit(u)
-- "Invalid unit" error:
-- Using SI requires that the symbol equal unit-code, so never allows HTML.
-- Any difference between SI or symbol must be an SI prefix, such as k, M, or G.
-- A space at the end of an entry is an error. No space at each EOL.


if link and unit.symlink then
local builtin_units = [=[
unit = unit.symlink
elseif link then
unit = '[['..unit.link..'|'..unit.abbr..']]'
else
unit = unit.abbr
end
if per then
-- Look for "*" "." or "/"
-- If found, add parentheses
if u:find('[%*%.%/]') then
unit = '('..unit..')'
end
local per_u = get_unit(per_u)
if perl and per_u.symlink then
per_u = per_u.symlink
elseif perl then
per_u = '[['..per_u..'|'..per_u.abbr..']]'
else
per_u = per_u.abbr
end
-- Look for "*" "." or "/"
-- If found, add parentheses
if per:find('[%*%.%/]') then
per_u = '('..per_u..')'
end
unit = unit..'/'..per_u
end


if not unit.nospace then
== Test ==
unit = '&nbsp;'..unit
Foo  [[Hz|<samp>Foo</samp>]]
end
Baz  [[Hertz|baz<sub>0</sub>]]
return unit
Baz  [[Kelvins|baz<sub>0</sub>]]
end
Bar  [[Foobar|bar<abbr title="super duper">0</abbr>]]
quux  [[Foobar|<span title="super duper 2">bar0</span>]]
 
== Unsorted units ==
c0  [[Speed of light#Numerical value, notation, and units|''c''<sub>0</sub>]]
lbf  [[Pound (force)|<span title="pound-force">lb<sub>F</sub></span> ]]
N.s  [[Newton-second|N&sdot;s]]
J.K-1  [[Joule per kelvin|J&sdot;K<sup>−1</sup>]]
C.mol-1  [[Faraday constant|C&sdot;mol<sup>−1</sup>]]
C/mol  [[Faraday constant|C/mol]]
C.kg-1  [[Roentgen (unit)|C&sdot;kg<sup>−1</sup>]]
C/kg  [[Roentgen (unit)|C/kg]]
F.m-1  [[vacuum permittivity|F&sdot;m<sup>−1</sup>]]
F/m  [[vacuum permittivity|F/m]]
e  [[Elementary charge|''e'']]
kB  [[Kilobyte|kB]]  8e3
MB  [[Megabyte|MB]]  8e6
GB  [[Gigabyte|GB]]  8e9
TB  [[Terabyte|TB]]  8e12
lx  [[Lux (unit)|lx]]
nat  [[nat (unit)|nat]]
 
== Time and frequency ==
byte/s  [[Data rate units|byte/s]]  8
kB/s  [[Data rate units#Kilobyte per second|<span title="Kilobytes per second">kB/s</span>]]  8e3
MB/s  [[Data rate units#Megabyte per second|<span title="Megabytes per second">MB/s</span>]]  8e6
GB/s  [[Data rate units#Gigabyte per second|<span title="Gigabytes per second">GB/s</span>]]  8e9
TB/s  [[Data rate units#Terabyte per second|<span title="Terabytes per second">TB/s</span>]]  8e12
bit/s  [[Bit per second|bit/s]]  1
bps  [[Bit per second|bit/s]]  1
kbit/s  [[Kilobit per second|kbit/s]]  1e3
Mbit/s  [[Megabit per second|Mbit/s]]  1e6
Gbit/s  [[Gigabit per second|Gbit/s]]  1e9
Tbit/s  [[Terabit per second|Tbit/s]]  1e12
kT/s  [[Transfer (computing)|<span title="Kilotransfers per second">kT/s</span>]]  1e3
MT/s  [[Transfer (computing)|<span title="Megatransfers per second">MT/s</span>]]  1e6
GT/s  [[Transfer (computing)|<span title="Gigatransfers per second">GT/s</span>]]  1e9
year  [[Year|year]]  31557600
years  [[Year|years]]  31557600
yr  [[Year#Symbols y and yr|yr]]  31557600
y  [[Year|y]]  31557600
a  [[Annum|a]]  31557600
Ga  [[Gigaannum|Ga]]  31557600000000000
Ma  [[Megaannum|Ma]]  31557600000000
ka  [[Kiloannum|ka]]  31557600000
kyr  [[kyr|kyr]]  31557600000
kya  [[kyr|kya]]  31557600000
myr  [[myr|myr]]  31557600000000
mya  [[Mya (unit)|mya]]  31557600000000
byr  [[Billion years|byr]]  31557600000000000
bya  [[Billion years ago|bya]]  31557600000000000
Gyr  [[billion years|Gyr]]  31557600000000000
BP  [[Before present|BP]]
uBP  [[Radiocarbon dating#Calibration|<sup>14</sup>C yr BP]]
BC  [[Before Christ|BC]]  -1
AD  [[Anno Domini|AD]]  1
BCE  [[Before the Common Era|BCE]]  -1
CE  [[Common Era|CE]]  1
JD  [[Julian date|JD]]  1
MJD  [[Modified Julian date|MJD]]  1
 
s-1  [[Second|s<sup>−1</sup>]]
s-2  [[Second|s<sup>−2</sup>]]
s2  [[Second|s<sup>2</sup>]]
 
s  [[Second|s]]  SI
as  [[Attosecond|s]]  SI
cs  [[Second|s]]  SI
das  [[Second|s]]  SI
ds  [[Second|s]]  SI
Es  [[Second|s]]  SI
fs  [[Femtosecond|s]]  SI
Gs  [[Second|s]]  SI
hs  [[Second|s]]  SI
ks  [[Second|s]]  SI
ms  [[Millisecond|s]]  SI
µs  [[Microsecond|s]]  SI
us  [[Microsecond|s]]  SI
Ms  [[Second|s]]  SI
ns  [[Nanosecond|s]]  SI
ps  [[Picosecond|s]]  SI
Ps  [[Second|s]]  SI
Ts  [[Second|s]]  SI
Ys  [[Second|s]]  SI
ys  [[Yoctosecond|s]]  SI
Zs  [[Second|s]]  SI
zs  [[Zeptosecond|s]]  SI
 
Hz  [[Hertz|Hz]]  SI
aHz  [[Hertz|Hz]]  SI
cHz  [[Hertz|Hz]]  SI
daHz  [[Hertz|Hz]]  SI
dHz  [[Hertz|Hz]]  SI
EHz  [[Hertz|Hz]]  SI
fHz  [[Hertz|Hz]]  SI
hHz  [[Hertz|Hz]]  SI
GHz  [[Gigahertz|Hz]]  SI
kHz  [[Kilohertz|Hz]]  SI
MHz  [[Megahertz|Hz]]  SI
mHz  [[Hertz|Hz]]  SI
uHz  [[Hertz|Hz]]  SI
µHz  [[Hertz|Hz]]  SI
nHz  [[Hertz|Hz]]  SI
pHz  [[Hertz|Hz]]  SI
PHz  [[Hertz|Hz]]  SI
THz  [[Hertz|Hz]]  SI
yHz  [[Hertz|Hz]]  SI
YHz  [[Hertz|Hz]]  SI
zHz  [[Hertz|Hz]]  SI
ZHz  [[Hertz|Hz]]  SI
 
== Length, area, volume ==
fb-1  [[Barn (unit)|fb<sup>−1</sup>]]
m-1  [[Metre|m<sup>−1</sup>]]
m-2  [[Square metre|m<sup>−2</sup>]]
m-3  [[Cubic metre|m<sup>−3</sup>]]
km2  [[Square kilometre|km<sup>2</sup>]]
km3  [[Cubic kilometre|km<sup>3</sup>]]
µm2  [[Square metre|µm<sup>2</sup>]]
um2  [[Square metre|µm<sup>2</sup>]]
am2  [[Square metre|am<sup>2</sup>]]
cm2  [[Square centimetre|cm<sup>2</sup>]]
dam2  [[Square metre|dam<sup>2</sup>]]
dm2  [[Square metre|dm<sup>2</sup>]]
Em2  [[Square metre|Em<sup>2</sup>]]
fm2  [[Square metre|fm<sup>2</sup>]]
Gm2  [[Square metre|Gm<sup>2</sup>]]
hm2  [[Square metre|hm<sup>2</sup>]]
mm2  [[Square metre|mm<sup>2</sup>]]
Mm2  [[Square metre|Mm<sup>2</sup>]]
nm2  [[Square metre|nm<sup>2</sup>]]
pm2  [[Square metre|pm<sup>2</sup>]]
Pm2  [[Square metre|Pm<sup>2</sup>]]
Tm2  [[Square metre|Tm<sup>2</sup>]]
ym2  [[Square metre|ym<sup>2</sup>]]
Ym2  [[Square metre|Ym<sup>2</sup>]]
zm2  [[Square metre|zm<sup>2</sup>]]
Zm2  [[Square metre|Zm<sup>2</sup>]]
gal  [[Gallon|gal]]
Gal  [[Gal (unit)|Gal]]
uGal  [[Gal (unit)|µGal]]
µGal  [[Gal (unit)|µGal]]
mGal  [[Gal (unit)|mGal]]
 
b  [[Barn (unit)|b]]  SI
ab  [[Barn (unit)|b]]  SI
cb  [[Barn (unit)|b]]  SI
dab  [[Barn (unit)|b]]  SI
db  [[Barn (unit)|b]]  SI
Eb  [[Barn (unit)|b]]  SI
fb  [[Barn (unit)|b]]  SI
Gb  [[Barn (unit)|b]]  SI
hb  [[Barn (unit)|b]]  SI
kb  [[Barn (unit)|b]]  SI
mb  [[Barn (unit)|b]]  SI
µb  [[Barn (unit)|b]]  SI
ub  [[Barn (unit)|b]]  SI
Mb  [[Barn (unit)|b]]  SI
nb  [[Barn (unit)|b]]  SI
pb  [[Barn (unit)|b]]  SI
Pb  [[Barn (unit)|b]]  SI
Tb  [[Barn (unit)|b]]  SI
Yb  [[Barn (unit)|b]]  SI
yb  [[Barn (unit)|b]]  SI
Zb  [[Barn (unit)|b]]  SI
zb  [[Barn (unit)|b]]  SI
 
== Velocity and acceleration ==
m.s-2  [[Metre per second squared|m&sdot;s<sup>−2</sup>]]
m/s2  [[Metre per second squared|m/s<sup>2</sup>]]
m.s-1  [[Metre per second|m&sdot;s<sup>−1</sup>]]
m/s  [[Metre per second|m/s]]
km.s-1  [[Metre per second|km&sdot;s<sup>−1</sup>]]
km/s  [[Metre per second|km/s]]
 
== Mass and energy ==
lbm  [[Pound (mass)|<span title="pound-mass">lb<sub>m</sub></span>]]
uJ  [[Joule|µJ]]
J.s  [[Joule-second|J&sdot;s]]
kWh  [[Kilowatt hour|kWh]]
kW.h  [[Kilowatt hour|kW&sdot;h]]
J/C  [[Volt|J/C]]
J/kg  [[Joule|J/kg]]
 
Da  [[Dalton (unit)|Da]]  SI
EDa  [[Dalton (unit)|Da]]  SI
PDa  [[Dalton (unit)|Da]]  SI
TDa  [[Dalton (unit)|Da]]  SI
GDa  [[Dalton (unit)|Da]]  SI
MDa  [[Dalton (unit)|Da]]  SI
kDa  [[Dalton (unit)|Da]]  SI
mDa  [[Dalton (unit)|Da]]  SI
uDa  [[Dalton (unit)|Da]]  SI
μDa  [[Dalton (unit)|Da]]  SI
nDa  [[Dalton (unit)|Da]]  SI
pDa  [[Dalton (unit)|Da]]  SI
fDa  [[Dalton (unit)|Da]]  SI
aDa  [[Dalton (unit)|Da]]  SI
 
g  [[Gram|g]]  SI
ag  [[Attogram|g]]  SI
cg  [[Centigram|g]]  SI
dag  [[Gram|g]]  SI
dg  [[Decigram|g]]  SI
Eg  [[Exagram|g]]  SI
fg  [[Femtogram|g]]  SI
Gg  [[Gigagram|g]]  SI
hg  [[Kilogram#SI multiples|g]]  SI
kg  [[Kilogram|g]]  SI
mcg  [[Microgram|g]]  SI
Mg  [[Megagram|g]]  SI
mg  [[Milligram|g]]  SI
ug  [[Microgram|g]]  SI
µg  [[Microgram|g]]  SI
ng  [[Nanogram|g]]  SI
Pg  [[Petagram|g]]  SI
pg  [[Picogram|g]]  SI
Tg  [[Tonne|g]]  SI
yg  [[Yoctogram|g]]  SI
Yg  [[Yottagram|g]]  SI
zg  [[Zeptogram|g]]  SI
Zg  [[Zettagram|g]]  SI
 
== Pressure and density ==
psi  [[Pounds per square inch|psi]]
g.cm-3  [[Gram per cubic centimetre|g&sdot;cm<sup>−3</sup>]]
g/cm3  [[Gram per cubic centimetre|g/cm<sup>3</sup>]]
kg.m-3  [[Kilogram per cubic metre|kg&sdot;m<sup>−3</sup>]]
kg/m3  [[Kilogram per cubic metre|kg/m<sup>3</sup>]]
kg/cm3  [[Density#Formula and common units|kg/cm<sup>3</sup>]]
g/L  [[Gram per litre|g/L]]
g/l  [[Gram per litre|g/l]]
mcg/dL  [[Gram per litre|µg/dL]]
mcg/dl  [[Gram per litre|µg/dl]]
mg/mL  [[Gram per litre|mg/mL]]
mg/ml  [[Gram per litre|mg/ml]]
ug/dL  [[Gram per litre|µg/dL]]
ug/dl  [[Gram per litre|µg/dl]]
μg/dL  [[Gram per litre|μg/dL]]
μg/dl  [[Gram per litre|μg/dl]]
mg.L-1  [[Gram per litre|<abbr title="milligrams per liter">mg/L</abbr>]]
mg/L  [[Gram per litre|<abbr title="milligrams per liter">mg/L</abbr>]]
mg.l-1  [[Gram per litre|<abbr title="milligrams per liter">mg/l</abbr>]]
mg/l  [[Gram per litre|<abbr title="milligrams per liter">mg/l</abbr>]]
 
== Temperature ==
degC  °C  ALIAS
degF  °F  ALIAS
degR  °R  ALIAS
 
K  [[Kelvin|K]]  SI
YK  [[Yottakelvin|K]]  SI
ZK  [[Zettakelvin|K]]  SI
EK  [[Kelvin|K]]  SI
PK  [[Petakelvin|K]]  SI
TK  [[Terakelvin|K]]  SI
GK  [[Gigakelvin|K]]  SI
MK  [[Megakelvin|K]]  SI
kK  [[Kilokelvin|K]]  SI
hK  [[Hectokelvin|K]]  SI
daK  [[Decakelvin|K]]  SI
dK  [[Decikelvin|K]]  SI
cK  [[Centikelvin|K]]  SI
mK  [[Millikelvin|K]]  SI
µK  [[Microkelvin|K]]  SI
uK  [[Microkelvin|K]]  SI
nK  [[Nanokelvin|K]]  SI
pK  [[Picokelvin|K]]  SI
fK  [[Femtokelvin|K]]  SI
aK  [[Attokelvin|K]]  SI
zK  [[Zeptokelvin|K]]  SI
yK  [[Yoctokelvin|K]]  SI
 
== Electromagnetism ==
Wb  [[Weber (unit)|Wb]]
N.A-2  [[Permeability (electromagnetism)|N&sdot;A<sup>−2</sup>]]
H.m-1  [[Permeability (electromagnetism)|H&sdot;m<sup>−1</sup>]]
V.m-1  [[Electric field|V&sdot;m<sup>−1</sup>]]
V/m  [[Electric field|V/m]]
 
C  [[Coulomb|C]]  SI
YC  [[Coulomb|C]]  SI
ZC  [[Coulomb|C]]  SI
EC  [[Coulomb|C]]  SI
PC  [[Coulomb|C]]  SI
TC  [[Coulomb|C]]  SI
GC  [[Coulomb|C]]  SI
MC  [[Coulomb|C]]  SI
kC  [[Coulomb|C]]  SI
hC  [[Coulomb|C]]  SI
daC  [[Coulomb|C]]  SI
dC  [[Coulomb|C]]  SI
cC  [[Coulomb|C]]  SI
mC  [[Coulomb|C]]  SI
µC  [[Coulomb|C]]  SI
uC  [[Coulomb|C]]  SI
nC  [[Coulomb|C]]  SI
pC  [[Coulomb|C]]  SI
fC  [[Coulomb|C]]  SI
aC  [[Coulomb|C]]  SI
zC  [[Coulomb|C]]  SI
yC  [[Coulomb|C]]  SI
 
F  [[Farad|F]]  SI
YF  [[Farad|F]]  SI
ZF  [[Farad|F]]  SI
EF  [[Farad|F]]  SI
PF  [[Farad|F]]  SI
TF  [[Farad|F]]  SI
GF  [[Farad|F]]  SI
MF  [[Farad|F]]  SI
kF  [[Farad|F]]  SI
hF  [[Farad|F]]  SI
daF  [[Farad|F]]  SI
dF  [[Farad|F]]  SI
cF  [[Farad|F]]  SI
mF  [[Farad|F]]  SI
µF  [[Farad|F]]  SI
uF  [[Farad|F]]  SI
nF  [[Farad|F]]  SI
pF  [[Farad|F]]  SI
fF  [[Farad|F]]  SI
aF  [[Farad|F]]  SI
zF  [[Farad|F]]  SI
yF  [[Farad|F]]  SI
 
H  [[Henry (unit)|H]]  SI
YH  [[Henry (unit)|H]]  SI
ZH  [[Henry (unit)|H]]  SI
EH  [[Henry (unit)|H]]  SI
PH  [[Henry (unit)|H]]  SI
TH  [[Henry (unit)|H]]  SI
GH  [[Henry (unit)|H]]  SI
MH  [[Henry (unit)|H]]  SI
kH  [[Henry (unit)|H]]  SI
hH  [[Henry (unit)|H]]  SI
daH  [[Henry (unit)|H]]  SI
dH  [[Henry (unit)|H]]  SI
cH  [[Henry (unit)|H]]  SI
mH  [[Henry (unit)|H]]  SI
µH  [[Henry (unit)|H]]  SI
uH  [[Henry (unit)|H]]  SI
nH  [[Henry (unit)|H]]  SI
pH  [[Henry (unit)|H]]  SI
fH  [[Henry (unit)|H]]  SI
aH  [[Henry (unit)|H]]  SI
zH  [[Henry (unit)|H]]  SI
yH  [[Henry (unit)|H]]  SI
 
A  [[Ampere|A]]  SI
YA  [[Ampere|A]]  SI
ZA  [[Ampere|A]]  SI
EA  [[Ampere|A]]  SI
PA  [[Ampere|A]]  SI
TA  [[Ampere|A]]  SI
GA  [[Ampere|A]]  SI
MA  [[Ampere|A]]  SI
kA  [[Ampere|A]]  SI
hA  [[Ampere|A]]  SI
daA  [[Ampere|A]]  SI
dA  [[Ampere|A]]  SI
cA  [[Ampere|A]]  SI
mA  [[Ampere|A]]  SI
µA  [[Ampere|A]]  SI
uA  [[Ampere|A]]  SI
nA  [[Ampere|A]]  SI
pA  [[Ampere|A]]  SI
fA  [[Ampere|A]]  SI
aA  [[Ampere|A]]  SI
zA  [[Ampere|A]]  SI
yA  [[Ampere|A]]  SI
 
V  [[Volt|V]]  SI
YV  [[Volt|V]]  SI
ZV  [[Volt|V]]  SI
EV  [[Volt|V]]  SI
PV  [[Volt|V]]  SI
TV  [[Volt|V]]  SI
GV  [[Volt|V]]  SI
MV  [[Volt|V]]  SI
kV  [[Volt|V]]  SI
hV  [[Volt|V]]  SI
daV  [[Volt|V]]  SI
dV  [[Volt|V]]  SI
cV  [[Volt|V]]  SI
mV  [[Volt|V]]  SI
µV  [[Volt|V]]  SI
uV  [[Volt|V]]  SI
nV  [[Volt|V]]  SI
pV  [[Volt|V]]  SI
fV  [[Volt|V]]  SI
aV  [[Volt|V]]  SI
zV  [[Volt|V]]  SI
yV  [[Volt|V]]  SI
 
VA  [[Volt-ampere|VA]]  SI
YVA  [[Volt-ampere|VA]]  SI
ZVA  [[Volt-ampere|VA]]  SI
EVA  [[Volt-ampere|VA]]  SI
PVA  [[Volt-ampere|VA]]  SI
TVA  [[Volt-ampere|VA]]  SI
GVA  [[Volt-ampere|VA]]  SI
MVA  [[Volt-ampere|VA]]  SI
kVA  [[Volt-ampere|VA]]  SI
hVA  [[Volt-ampere|VA]]  SI
daVA  [[Volt-ampere|VA]]  SI
dVA  [[Volt-ampere|VA]]  SI
cVA  [[Volt-ampere|VA]]  SI
mVA  [[Volt-ampere|VA]]  SI
µVA  [[Volt-ampere|VA]]  SI
uVA  [[Volt-ampere|VA]]  SI
nVA  [[Volt-ampere|VA]]  SI
pVA  [[Volt-ampere|VA]]  SI
fVA  [[Volt-ampere|VA]]  SI
aVA  [[Volt-ampere|VA]]  SI
zVA  [[Volt-ampere|VA]]  SI
yVA  [[Volt-ampere|VA]]  SI
 
Ω  [[Ohm|Ω]]  SI
 
R  [[Rayleigh (unit)|R]]  SI
 
G  [[Gauss (unit)|G]]  SI
aG  [[Attogauss|G]]  SI
cG  [[Centigauss|G]]  SI
daG  [[Decagauss|G]]  SI
dG  [[Decigauss|G]]  SI
EG  [[Exagauss|G]]  SI
fG  [[Femtogauss|G]]  SI
GG  [[Gigagauss|G]]  SI
hG  [[Hectogauss|G]]  SI
kG  [[Kilogauss|G]]  SI
MG  [[Megagauss|G]]  SI
mG  [[Milligauss|G]]  SI
uG  [[Microgauss|G]]  SI
µG  [[Microgauss|G]]  SI
nG  [[Nanogauss|G]]  SI
PG  [[Petagauss|G]]  SI
pG  [[Picogauss|G]]  SI
TG  [[Teragauss|G]]  SI
yG  [[Yoctogauss|G]]  SI
YG  [[Yottagauss|G]]  SI
zG  [[Zeptogauss|G]]  SI
ZG  [[Zettagauss|G]]  SI
 
T  [[Tesla (unit)|T]]  SI
aT  [[Attotesla|T]]  SI
cT  [[Centitesla|T]]  SI
daT  [[Decatesla|T]]  SI
dT  [[Decitesla|T]]  SI
ET  [[Exatesla|T]]  SI
fT  [[Femtotesla|T]]  SI
GT  [[Gigatesla|T]]  SI
hT  [[Hectotesla|T]]  SI
kT  [[Kilotesla|T]]  SI
MT  [[Megatesla|T]]  SI
mT  [[Millitesla|T]]  SI
uT  [[Microtesla|T]]  SI
µT  [[Microtesla|T]]  SI
nT  [[Nanotesla|T]]  SI
PT  [[Petatesla|T]]  SI
pT  [[Picotesla|T]]  SI
TT  [[Teratesla|T]]  SI
yT  [[Yoctotesla|T]]  SI
YT  [[Yottatesla|T]]  SI
zT  [[Zeptotesla|T]]  SI
ZT  [[Zettatesla|T]]  SI
 
== Astrophysics ==
au  [[Astronomical unit|au]]
c  [[Speed of light|''c'']]
ly  [[Light-year|ly]]
Earth mass  [[Earth mass|''M''<sub>⊕</sub>]]
Earth radius  [[Earth radius|''R''<sub>⊕</sub>]]
M_Earth  [[Earth mass|''M''<sub>⊕</sub>]]
R_Earth  [[Earth radius|''R''<sub>⊕</sub>]]
M+  [[Earth mass|''M''<sub>⊕</sub>]]
R+  [[Earth radius|''R''<sub>⊕</sub>]]
Jupiter mass  [[Jupiter mass|''M''<sub>J</sub>]]
Jupiter radius  [[Jupiter radius|''R''<sub>J</sub>]]
M_Jupiter  [[Jupiter mass|''M''<sub>J</sub>]]
R_Jupiter  [[Jupiter radius|''R''<sub>J</sub>]]
Solar mass  [[Solar mass|''M''<sub>&#x2609;</sub>]]
solar mass  [[Solar mass|''M''<sub>&#x2609;</sub>]]
M_Solar  [[Solar mass|''M''<sub>&#x2609;</sub>]]
M_solar  [[Solar mass|''M''<sub>&#x2609;</sub>]]
R_Solar  [[Solar radius|''R''<sub>&#x2609;</sub>]]
R_solar  [[Solar radius|''R''<sub>&#x2609;</sub>]]
Solar radius  [[Solar radius|''R''<sub>&#x2609;</sub>]]
solar radius  [[Solar radius|''R''<sub>&#x2609;</sub>]]
Solar luminosity  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
solar luminosity  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
L_solar  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
L_Solar  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
Lo  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
pc2  [[Parsec|pc<sup>2</sup>]]
pc3  [[Parsec|pc<sup>3</sup>]]
kpc2  [[Parsec#Parsecs and kiloparsecs|kpc<sup>2</sup>]]
kpc3  [[Parsec#Parsecs and kiloparsecs|kpc<sup>3</sup>]]
kpc  [[Parsec#Parsecs and kiloparsecs|kpc]]
Mpc2  [[Parsec#Megaparsecs and gigaparsecs|Mpc<sup>2</sup>]]
Mpc3  [[Parsec#Megaparsecs and gigaparsecs|Mpc<sup>3</sup>]]
Mpc  [[Parsec#Megaparsecs and gigaparsecs|Mpc]]
Gpc2  [[Parsec#Megaparsecs and gigaparsecs|Gpc<sup>2</sup>]]
Gpc3  [[Parsec#Megaparsecs and gigaparsecs|Gpc<sup>3</sup>]]
Gpc  [[Parsec#Megaparsecs and gigaparsecs|Gpc]]
 
== Nuclear physics and chemistry ==
cm-1  [[Wavenumber|cm<sup>−1</sup>]]
u  [[Unified atomic mass unit|u]]
osmol  [[Osmole (unit)|osmol]]
Osm  [[Osmole (unit)|Osm]]
M  [[Molarity|M]]
TM  [[Molarity|M]]  SI
GM  [[Molarity|M]]  SI
MM  [[Molarity|M]]  SI
kM  [[Molarity|M]]  SI
hM  [[Molarity|M]]  SI
daM  [[Molarity|M]]  SI
dM  [[Molarity|M]]  SI
cM  [[Molarity|M]]  SI
mM  [[Molarity|M]]  SI
uM  [[Molarity|M]]  1e-6
nM  [[Molarity|M]]  SI
pM  [[Molarity|M]]  SI
kg.mol-1  [[Molar mass|kg&sdot;mol<sup>−1</sup>]]
kg/mol  [[Molar mass|kg/mol]]
g.mol-1  [[Molar mass|g&sdot;mol<sup>−1</sup>]]
g/mol  [[Molar mass|g/mol]]
eV/c2  [[Electronvolt#Mass|eV/''c''<sup>2</sup>]]
keV/c2  [[Electronvolt#Mass|keV/''c''<sup>2</sup>]]
MeV/c2  [[Electronvolt#Mass|MeV/''c''<sup>2</sup>]]
GeV/c2  [[Electronvolt#Mass|GeV/''c''<sup>2</sup>]]
TeV/c2  [[Electronvolt#Mass|TeV/''c''<sup>2</sup>]]
µN  [[Nuclear magneton|µ<span style="display:inline-block;margin-bottom:-0.3em;vertical-align:-0.4em;line-height:1.2em;font-size:85%;text-align:left"><br />N</span>]]
µB  [[Bohr magneton|µ<span style="display:inline-block;margin-bottom:-0.3em;vertical-align:-0.4em;line-height:1.2em;font-size:85%;text-align:left"><br />B</span>]]
eV  [[Electronvolt|eV]]
meV  [[Electronvolt|meV]]
keV  [[Electronvolt|keV]]
MeV  [[Electronvolt|MeV]]
GeV  [[Electronvolt|GeV]]
TeV  [[Electronvolt|TeV]]
mol-1  [[Avogadro constant|mol<sup>−1</sup>]]
J.mol-1  [[Joule per mole|J&sdot;mol<sup>−1</sup>]]
J/mol  [[Joule per mole|J/mol]]
kJ.mol-1  [[Joule per mole|kJ&sdot;mol<sup>−1</sup>]]
kJ/mol  [[Joule per mole|kJ/mol]]
MJ.mol-1  [[Joule per mole|MJ&sdot;mol<sup>−1</sup>]]
MJ/mol  [[Joule per mole|MJ/mol]]
GJ.mol-1  [[Joule per mole|GJ&sdot;mol<sup>−1</sup>]]
GJ/mol  [[Joule per mole|GJ/mol]]
TJ.mol-1  [[Joule per mole|TJ&sdot;mol<sup>−1</sup>]]
TJ/mol  [[Joule per mole|TJ/mol]]
 
== Numbers and phrases ==
pp  [[Page (paper)|pp]]
ppb  [[Parts per billion|ppb]]  1e-9
ppm  [[Parts per million|ppm]]  1e-6
billiard  [[Orders of magnitude (numbers)#1015|billiard]]  1e15
billion  [[1,000,000,000|billion]]  1e9
billionth  [[1,000,000,000|billionth]]  1e-9
billionths  [[1,000,000,000|billionths]]  1e-9
decilliard  [[Orders of magnitude (numbers)#1063|decilliard]]  1e63
decillion  [[Orders of magnitude (numbers)#1033|decillion]]  1e33
decillionth  [[Orders of magnitude (numbers)#1033|decillionth]]  1e-33
decillionths  [[Orders of magnitude (numbers)#1033|decillionths]]  1e-33
milliard  [[1,000,000,000|milliard]]  1e9
million  [[Million|million]]  1e6
millionth  [[Million|millionth]]  1e-6
millionths  [[Million|millionths]]  1e-6
nonilliard  [[Orders of magnitude (numbers)#1057|nonilliard]]  1e57
nonillion  [[Orders of magnitude (numbers)#1030|nonillion]]  1e30
nonillionth  [[Orders of magnitude (numbers)#1030|nonillionth]]  1e-30
nonillionths  [[Orders of magnitude (numbers)#1030|nonillionths]]  1e-30
octilliard  [[Orders of magnitude (numbers)#1051|octilliard]]  1e51
octillion  [[Orders of magnitude (numbers)#1027|octillion]]  1e27
octillionth  [[Orders of magnitude (numbers)#1027|octillionth]]  1e-27
octillionths  [[Orders of magnitude (numbers)#1027|octillionths]]  1e-27
quadrilliard  [[Orders of magnitude (numbers)#1027|quadrilliard]]  1e27
quadrillion  [[Orders of magnitude (numbers)#1015|quadrillion]]  1e15
quadrillionth  [[Orders of magnitude (numbers)#1015|quadrillionth]]  1e-15
quadrillionths  [[Orders of magnitude (numbers)#1015|quadrillionths]]  1e-15
quintilliard  [[Orders of magnitude (numbers)#1033|quintilliard]]  1e33
quintillion  [[Orders of magnitude (numbers)#1018|quintillion]]  1e18
quintillionth  [[Orders of magnitude (numbers)#1018|quintillionth]]  1e-18
quintillionths  [[Orders of magnitude (numbers)#1018|quintillionths]]  1e-18
septilliard  [[Orders of magnitude (numbers)#1045|septilliard]]  1e45
septillion  [[Orders of magnitude (numbers)#1024|septillion]]  1e24
septillionth  [[Orders of magnitude (numbers)#1024|septillionth]]  1e-24
septillionths  [[Orders of magnitude (numbers)#1024|septillionths]]  1e-24
sextilliard  [[Orders of magnitude (numbers)#1039|sextilliard]]  1e39
sextillion  [[Orders of magnitude (numbers)#1021|sextillion]]  1e21
sextillionth  [[Orders of magnitude (numbers)#1021|sextillionth]]  1e-21
sextillionths  [[Orders of magnitude (numbers)#1021|sextillionths]]  1e-21
trilliard  [[Orders of magnitude (numbers)#1021|trilliard]]  1e21
trillion  [[Orders of magnitude (numbers)#1012|trillion]]  1e12
trillionth  [[Orders of magnitude (numbers)#1012|trillionth]]  1e-12
trillionths  [[Orders of magnitude (numbers)#1012|trillionths]]  1e-12
 
== Angles ==
%                  %                                    Percent                                ANGLE  0.01
percent            %                                    Percent                                ANGLE  0.01
per cent          %                                    Percent                                ANGLE  0.01
‰                  ‰                                    Per mil                                ANGLE  1e-3
per mil            ‰                                    Per mil                                ANGLE  1e-3
per mill          ‰                                    Per mil                                ANGLE  1e-3
per mille          ‰                                    Per mil                                ANGLE  1e-3
permil            ‰                                    Per mil                                ANGLE  1e-3
permill            ‰                                    Per mil                                ANGLE  1e-3
permille          ‰                                    Per mil                                ANGLE  1e-3
°                  °                                    Degree (angle)                        ANGLE  pi/180
deg                °                                    Degree (angle)                        ANGLE  pi/180
'                  ′                                    Minute of arc                          ANGLE  pi/10800
′                  ′                                    Minute of arc                          ANGLE  pi/10800
arcmin            ′                                    Minute of arc                          ANGLE  pi/10800
arcminute          ′                                    Minute of arc                          ANGLE  pi/10800
"                  ″                                    Second of arc                          ANGLE  pi/648000
″                  ″                                    Second of arc                          ANGLE  pi/648000
arcsec            ″                                    Second of arc                          ANGLE  pi/648000
arcsecond          ″                                    Second of arc                          ANGLE  pi/648000
mas  [[Milliarcsecond|mas]]  pi/648000000
 
]=]
 
-- If val has "|long scale=on" the following definitions are used
-- (then, if not found here, the normal definitions are used).
-- Unit code  [[Link|Symbol]]  Flags/Scale
local builtin_units_long_scale = [=[
 
== Long scale numbers and phrases ==
billion  [[Orders of magnitude (numbers)#1012|billion]]  1e12
billionth  [[Orders of magnitude (numbers)#1012|billionth]]  1e-12
billionths  [[Orders of magnitude (numbers)#1012|billionths]]  1e-12
decillion  [[Orders of magnitude (numbers)#1060|decillion]]  1e60
decillionth  [[Orders of magnitude (numbers)#1060|decillionth]]  1e-60
decillionths  [[Orders of magnitude (numbers)#1060|decillionths]]  1e-60
nonillion  [[Orders of magnitude (numbers)#1054|nonillion]]  1e54
nonillionth  [[Orders of magnitude (numbers)#1054|nonillionth]]  1e-54
nonillionths  [[Orders of magnitude (numbers)#1054|nonillionths]]  1e-54
octillion  [[Orders of magnitude (numbers)#1048|octillion]]  1e48
octillionth  [[Orders of magnitude (numbers)#1048|octillionth]]  1e-48
octillionths  [[Orders of magnitude (numbers)#1048|octillionths]]  1e-48
quadrillion  [[Orders of magnitude (numbers)#1024|quadrillion]]  1e24
quadrillionth  [[Orders of magnitude (numbers)#1024|quadrillionth]]  1e-24
quadrillionths  [[Orders of magnitude (numbers)#1024|quadrillionths]]  1e-24
quintillion  [[Orders of magnitude (numbers)#1030|quintillion]]  1e30
quintillionth  [[Orders of magnitude (numbers)#1030|quintillionth]]  1e-30
quintillionths  [[Orders of magnitude (numbers)#1030|quintillionths]]  1e-30
septillion  [[Orders of magnitude (numbers)#1042|septillion]]  1e42
septillionth  [[Orders of magnitude (numbers)#1042|septillionth]]  1e-42
septillionths  [[Orders of magnitude (numbers)#1042|septillionths]]  1e-42
sextillion  [[Orders of magnitude (numbers)#1036|sextillion]]  1e36
sextillionth  [[Orders of magnitude (numbers)#1036|sextillionth]]  1e-36
sextillionths  [[Orders of magnitude (numbers)#1036|sextillionths]]  1e-36
trillion  [[Orders of magnitude (numbers)#1018|trillion]]  1e18
trillionth  [[Orders of magnitude (numbers)#1018|trillionth]]  1e-18
trillionths  [[Orders of magnitude (numbers)#1018|trillionths]]  1e-18
 
]=]
 
return { builtin_units = builtin_units, builtin_units_long_scale = builtin_units_long_scale }

Latest revision as of 14:09, 3 September 2020

Documentation for this module may be created at Module:Val/units/doc

-- Definitions for units known to val
-- File format is two strings and a return statement with them in it:
-- string in quotes [=[ ... builtin_units ... ]=].
-- string in quotes [=[ ... builtin_units_long_scale ... ]=].
-- First string, builtin_units, is short-scale, second string is long scale.

-- Entry format:
-- One record per line, starting in first column, having 2-4 fields.
-- Field separator: two or more spaces
-- Between first and second fields: two or more spaces
-- Between all other fields: two or more spaces, or one or more tabs
-- Entries without two spaces in them are ignored.

-- There must be a blank line before the first entry and after the last.
-- I.e. the first two and last two characters of the string must be newlines.

-- Format of entry. Two record types:
--
-- One record type is a wikilink:
-- Unit-code        [[ pagename | Symbol-accepts-HTML-only ]]
-- Text-field separator is still two spaces.  Two spaces not allowed in wikilink.
--
-- The other record type is all fields:
-- Unit-code        symbol-accepts-HTML-only        pagename#section-OK
--
-- Plus there is an optional field that goes at the end after two or more spaces.
-- Whether it is a number or an equation or the letters SI,
-- any of these three has the same function: a wikitable sorting "scale".
-- It is for sorting, and it works for either record type.
-- Difference is SI can't accept HTML. But SI correctly scales any SI prefix.
-- (Optional fields ALIAS and NOSPACE and ANGLE are for advanced users.)

-- "Invalid unit" error:
-- Using SI requires that the symbol equal unit-code, so never allows HTML.
-- Any difference between SI or symbol must be an SI prefix, such as k, M, or G.
-- A space at the end of an entry is an error. No space at each EOL.

local builtin_units = [=[

== Test ==
Foo  [[Hz|<samp>Foo</samp>]]
Baz  [[Hertz|baz<sub>0</sub>]]
Baz  [[Kelvins|baz<sub>0</sub>]]
Bar  [[Foobar|bar<abbr title="super duper">0</abbr>]]
quux  [[Foobar|<span title="super duper 2">bar0</span>]]

== Unsorted units ==
c0  [[Speed of light#Numerical value, notation, and units|''c''<sub>0</sub>]]
lbf  [[Pound (force)|<span title="pound-force">lb<sub>F</sub></span> ]]
N.s  [[Newton-second|N&sdot;s]]
J.K-1  [[Joule per kelvin|J&sdot;K<sup>−1</sup>]]
C.mol-1  [[Faraday constant|C&sdot;mol<sup>−1</sup>]]
C/mol  [[Faraday constant|C/mol]]
C.kg-1  [[Roentgen (unit)|C&sdot;kg<sup>−1</sup>]]
C/kg  [[Roentgen (unit)|C/kg]]
F.m-1  [[vacuum permittivity|F&sdot;m<sup>−1</sup>]]
F/m  [[vacuum permittivity|F/m]]
e  [[Elementary charge|''e'']]
kB  [[Kilobyte|kB]]  8e3
MB  [[Megabyte|MB]]  8e6
GB  [[Gigabyte|GB]]  8e9
TB  [[Terabyte|TB]]  8e12
lx  [[Lux (unit)|lx]]
nat  [[nat (unit)|nat]]

== Time and frequency ==
byte/s  [[Data rate units|byte/s]]  8
kB/s  [[Data rate units#Kilobyte per second|<span title="Kilobytes per second">kB/s</span>]]  8e3
MB/s  [[Data rate units#Megabyte per second|<span title="Megabytes per second">MB/s</span>]]  8e6
GB/s  [[Data rate units#Gigabyte per second|<span title="Gigabytes per second">GB/s</span>]]  8e9
TB/s  [[Data rate units#Terabyte per second|<span title="Terabytes per second">TB/s</span>]]  8e12
bit/s  [[Bit per second|bit/s]]  1
bps  [[Bit per second|bit/s]]  1
kbit/s  [[Kilobit per second|kbit/s]]  1e3
Mbit/s  [[Megabit per second|Mbit/s]]  1e6
Gbit/s  [[Gigabit per second|Gbit/s]]  1e9
Tbit/s  [[Terabit per second|Tbit/s]]  1e12
kT/s  [[Transfer (computing)|<span title="Kilotransfers per second">kT/s</span>]]  1e3
MT/s  [[Transfer (computing)|<span title="Megatransfers per second">MT/s</span>]]  1e6
GT/s  [[Transfer (computing)|<span title="Gigatransfers per second">GT/s</span>]]  1e9
year  [[Year|year]]  31557600
years  [[Year|years]]  31557600
yr  [[Year#Symbols y and yr|yr]]  31557600
y  [[Year|y]]  31557600
a  [[Annum|a]]  31557600
Ga  [[Gigaannum|Ga]]  31557600000000000
Ma  [[Megaannum|Ma]]  31557600000000
ka  [[Kiloannum|ka]]  31557600000
kyr  [[kyr|kyr]]  31557600000
kya  [[kyr|kya]]  31557600000
myr  [[myr|myr]]  31557600000000
mya  [[Mya (unit)|mya]]  31557600000000
byr  [[Billion years|byr]]  31557600000000000
bya  [[Billion years ago|bya]]  31557600000000000
Gyr  [[billion years|Gyr]]  31557600000000000
BP  [[Before present|BP]]
uBP  [[Radiocarbon dating#Calibration|<sup>14</sup>C yr BP]]
BC  [[Before Christ|BC]]  -1
AD  [[Anno Domini|AD]]  1
BCE  [[Before the Common Era|BCE]]  -1
CE  [[Common Era|CE]]  1
JD  [[Julian date|JD]]  1
MJD  [[Modified Julian date|MJD]]  1

s-1  [[Second|s<sup>−1</sup>]]
s-2  [[Second|s<sup>−2</sup>]]
s2  [[Second|s<sup>2</sup>]]

s  [[Second|s]]  SI
as  [[Attosecond|s]]  SI
cs  [[Second|s]]  SI
das  [[Second|s]]  SI
ds  [[Second|s]]  SI
Es  [[Second|s]]  SI
fs  [[Femtosecond|s]]  SI
Gs  [[Second|s]]  SI
hs  [[Second|s]]  SI
ks  [[Second|s]]  SI
ms  [[Millisecond|s]]  SI
µs  [[Microsecond|s]]  SI
us  [[Microsecond|s]]  SI
Ms  [[Second|s]]  SI
ns  [[Nanosecond|s]]  SI
ps  [[Picosecond|s]]  SI
Ps  [[Second|s]]  SI
Ts  [[Second|s]]  SI
Ys  [[Second|s]]  SI
ys  [[Yoctosecond|s]]  SI
Zs  [[Second|s]]  SI
zs  [[Zeptosecond|s]]  SI

Hz  [[Hertz|Hz]]  SI
aHz  [[Hertz|Hz]]  SI
cHz  [[Hertz|Hz]]  SI
daHz  [[Hertz|Hz]]  SI
dHz  [[Hertz|Hz]]  SI
EHz  [[Hertz|Hz]]  SI
fHz  [[Hertz|Hz]]  SI
hHz  [[Hertz|Hz]]  SI
GHz  [[Gigahertz|Hz]]  SI
kHz  [[Kilohertz|Hz]]  SI
MHz  [[Megahertz|Hz]]  SI
mHz  [[Hertz|Hz]]  SI
uHz  [[Hertz|Hz]]  SI
µHz  [[Hertz|Hz]]  SI
nHz  [[Hertz|Hz]]  SI
pHz  [[Hertz|Hz]]  SI
PHz  [[Hertz|Hz]]  SI
THz  [[Hertz|Hz]]  SI
yHz  [[Hertz|Hz]]  SI
YHz  [[Hertz|Hz]]  SI
zHz  [[Hertz|Hz]]  SI
ZHz  [[Hertz|Hz]]  SI

== Length, area, volume ==
fb-1  [[Barn (unit)|fb<sup>−1</sup>]]
m-1  [[Metre|m<sup>−1</sup>]]
m-2  [[Square metre|m<sup>−2</sup>]]
m-3  [[Cubic metre|m<sup>−3</sup>]]
km2  [[Square kilometre|km<sup>2</sup>]]
km3  [[Cubic kilometre|km<sup>3</sup>]]
µm2  [[Square metre|µm<sup>2</sup>]]
um2  [[Square metre|µm<sup>2</sup>]]
am2  [[Square metre|am<sup>2</sup>]]
cm2  [[Square centimetre|cm<sup>2</sup>]]
dam2  [[Square metre|dam<sup>2</sup>]]
dm2  [[Square metre|dm<sup>2</sup>]]
Em2  [[Square metre|Em<sup>2</sup>]]
fm2  [[Square metre|fm<sup>2</sup>]]
Gm2  [[Square metre|Gm<sup>2</sup>]]
hm2  [[Square metre|hm<sup>2</sup>]]
mm2  [[Square metre|mm<sup>2</sup>]]
Mm2  [[Square metre|Mm<sup>2</sup>]]
nm2  [[Square metre|nm<sup>2</sup>]]
pm2  [[Square metre|pm<sup>2</sup>]]
Pm2  [[Square metre|Pm<sup>2</sup>]]
Tm2  [[Square metre|Tm<sup>2</sup>]]
ym2  [[Square metre|ym<sup>2</sup>]]
Ym2  [[Square metre|Ym<sup>2</sup>]]
zm2  [[Square metre|zm<sup>2</sup>]]
Zm2  [[Square metre|Zm<sup>2</sup>]]
gal  [[Gallon|gal]]
Gal  [[Gal (unit)|Gal]]
uGal  [[Gal (unit)|µGal]]
µGal  [[Gal (unit)|µGal]]
mGal  [[Gal (unit)|mGal]]

b  [[Barn (unit)|b]]  SI
ab  [[Barn (unit)|b]]  SI
cb  [[Barn (unit)|b]]  SI
dab  [[Barn (unit)|b]]  SI
db  [[Barn (unit)|b]]  SI
Eb  [[Barn (unit)|b]]  SI
fb  [[Barn (unit)|b]]  SI
Gb  [[Barn (unit)|b]]  SI
hb  [[Barn (unit)|b]]  SI
kb  [[Barn (unit)|b]]  SI
mb  [[Barn (unit)|b]]  SI
µb  [[Barn (unit)|b]]  SI
ub  [[Barn (unit)|b]]  SI
Mb  [[Barn (unit)|b]]  SI
nb  [[Barn (unit)|b]]  SI
pb  [[Barn (unit)|b]]  SI
Pb  [[Barn (unit)|b]]  SI
Tb  [[Barn (unit)|b]]  SI
Yb  [[Barn (unit)|b]]  SI
yb  [[Barn (unit)|b]]  SI
Zb  [[Barn (unit)|b]]  SI
zb  [[Barn (unit)|b]]  SI

== Velocity and acceleration ==
m.s-2  [[Metre per second squared|m&sdot;s<sup>−2</sup>]]
m/s2  [[Metre per second squared|m/s<sup>2</sup>]]
m.s-1  [[Metre per second|m&sdot;s<sup>−1</sup>]]
m/s  [[Metre per second|m/s]]
km.s-1  [[Metre per second|km&sdot;s<sup>−1</sup>]]
km/s  [[Metre per second|km/s]]

== Mass and energy ==
lbm  [[Pound (mass)|<span title="pound-mass">lb<sub>m</sub></span>]]
uJ  [[Joule|µJ]]
J.s  [[Joule-second|J&sdot;s]]
kWh  [[Kilowatt hour|kWh]]
kW.h  [[Kilowatt hour|kW&sdot;h]]
J/C  [[Volt|J/C]]
J/kg  [[Joule|J/kg]]

Da  [[Dalton (unit)|Da]]  SI
EDa  [[Dalton (unit)|Da]]  SI
PDa  [[Dalton (unit)|Da]]  SI
TDa  [[Dalton (unit)|Da]]  SI
GDa  [[Dalton (unit)|Da]]  SI
MDa  [[Dalton (unit)|Da]]  SI
kDa  [[Dalton (unit)|Da]]  SI
mDa  [[Dalton (unit)|Da]]  SI
uDa  [[Dalton (unit)|Da]]  SI
μDa  [[Dalton (unit)|Da]]  SI
nDa  [[Dalton (unit)|Da]]  SI
pDa  [[Dalton (unit)|Da]]  SI
fDa  [[Dalton (unit)|Da]]  SI
aDa  [[Dalton (unit)|Da]]  SI

g  [[Gram|g]]  SI
ag  [[Attogram|g]]  SI
cg  [[Centigram|g]]  SI
dag  [[Gram|g]]  SI
dg  [[Decigram|g]]  SI
Eg  [[Exagram|g]]  SI
fg  [[Femtogram|g]]  SI
Gg  [[Gigagram|g]]  SI
hg  [[Kilogram#SI multiples|g]]  SI
kg  [[Kilogram|g]]  SI
mcg  [[Microgram|g]]  SI
Mg  [[Megagram|g]]  SI
mg  [[Milligram|g]]  SI
ug  [[Microgram|g]]  SI
µg  [[Microgram|g]]  SI
ng  [[Nanogram|g]]  SI
Pg  [[Petagram|g]]  SI
pg  [[Picogram|g]]  SI
Tg  [[Tonne|g]]  SI
yg  [[Yoctogram|g]]  SI
Yg  [[Yottagram|g]]  SI
zg  [[Zeptogram|g]]  SI
Zg  [[Zettagram|g]]  SI

== Pressure and density ==
psi  [[Pounds per square inch|psi]]
g.cm-3  [[Gram per cubic centimetre|g&sdot;cm<sup>−3</sup>]]
g/cm3  [[Gram per cubic centimetre|g/cm<sup>3</sup>]]
kg.m-3  [[Kilogram per cubic metre|kg&sdot;m<sup>−3</sup>]]
kg/m3  [[Kilogram per cubic metre|kg/m<sup>3</sup>]]
kg/cm3  [[Density#Formula and common units|kg/cm<sup>3</sup>]]
g/L  [[Gram per litre|g/L]]
g/l  [[Gram per litre|g/l]]
mcg/dL  [[Gram per litre|µg/dL]]
mcg/dl  [[Gram per litre|µg/dl]]
mg/mL  [[Gram per litre|mg/mL]]
mg/ml  [[Gram per litre|mg/ml]]
ug/dL  [[Gram per litre|µg/dL]]
ug/dl  [[Gram per litre|µg/dl]]
μg/dL  [[Gram per litre|μg/dL]]
μg/dl  [[Gram per litre|μg/dl]]
mg.L-1  [[Gram per litre|<abbr title="milligrams per liter">mg/L</abbr>]]
mg/L  [[Gram per litre|<abbr title="milligrams per liter">mg/L</abbr>]]
mg.l-1  [[Gram per litre|<abbr title="milligrams per liter">mg/l</abbr>]]
mg/l  [[Gram per litre|<abbr title="milligrams per liter">mg/l</abbr>]]

== Temperature ==
degC  °C  ALIAS
degF  °F  ALIAS
degR  °R  ALIAS

K  [[Kelvin|K]]  SI
YK  [[Yottakelvin|K]]  SI
ZK  [[Zettakelvin|K]]  SI
EK  [[Kelvin|K]]  SI
PK  [[Petakelvin|K]]  SI
TK  [[Terakelvin|K]]  SI
GK  [[Gigakelvin|K]]  SI
MK  [[Megakelvin|K]]  SI
kK  [[Kilokelvin|K]]  SI
hK  [[Hectokelvin|K]]  SI
daK  [[Decakelvin|K]]  SI
dK  [[Decikelvin|K]]  SI
cK  [[Centikelvin|K]]  SI
mK  [[Millikelvin|K]]  SI
µK  [[Microkelvin|K]]  SI
uK  [[Microkelvin|K]]  SI
nK  [[Nanokelvin|K]]  SI
pK  [[Picokelvin|K]]  SI
fK  [[Femtokelvin|K]]  SI
aK  [[Attokelvin|K]]  SI
zK  [[Zeptokelvin|K]]  SI
yK  [[Yoctokelvin|K]]  SI

== Electromagnetism ==
Wb  [[Weber (unit)|Wb]]
N.A-2  [[Permeability (electromagnetism)|N&sdot;A<sup>−2</sup>]]
H.m-1  [[Permeability (electromagnetism)|H&sdot;m<sup>−1</sup>]]
V.m-1  [[Electric field|V&sdot;m<sup>−1</sup>]]
V/m  [[Electric field|V/m]]

C  [[Coulomb|C]]  SI
YC  [[Coulomb|C]]  SI
ZC  [[Coulomb|C]]  SI
EC  [[Coulomb|C]]  SI
PC  [[Coulomb|C]]  SI
TC  [[Coulomb|C]]  SI
GC  [[Coulomb|C]]  SI
MC  [[Coulomb|C]]  SI
kC  [[Coulomb|C]]  SI
hC  [[Coulomb|C]]  SI
daC  [[Coulomb|C]]  SI
dC  [[Coulomb|C]]  SI
cC  [[Coulomb|C]]  SI
mC  [[Coulomb|C]]  SI
µC  [[Coulomb|C]]  SI
uC  [[Coulomb|C]]  SI
nC  [[Coulomb|C]]  SI
pC  [[Coulomb|C]]  SI
fC  [[Coulomb|C]]  SI
aC  [[Coulomb|C]]  SI
zC  [[Coulomb|C]]  SI
yC  [[Coulomb|C]]  SI

F  [[Farad|F]]  SI
YF  [[Farad|F]]  SI
ZF  [[Farad|F]]  SI
EF  [[Farad|F]]  SI
PF  [[Farad|F]]  SI
TF  [[Farad|F]]  SI
GF  [[Farad|F]]  SI
MF  [[Farad|F]]  SI
kF  [[Farad|F]]  SI
hF  [[Farad|F]]  SI
daF  [[Farad|F]]  SI
dF  [[Farad|F]]  SI
cF  [[Farad|F]]  SI
mF  [[Farad|F]]  SI
µF  [[Farad|F]]  SI
uF  [[Farad|F]]  SI
nF  [[Farad|F]]  SI
pF  [[Farad|F]]  SI
fF  [[Farad|F]]  SI
aF  [[Farad|F]]  SI
zF  [[Farad|F]]  SI
yF  [[Farad|F]]  SI

H  [[Henry (unit)|H]]  SI
YH  [[Henry (unit)|H]]  SI
ZH  [[Henry (unit)|H]]  SI
EH  [[Henry (unit)|H]]  SI
PH  [[Henry (unit)|H]]  SI
TH  [[Henry (unit)|H]]  SI
GH  [[Henry (unit)|H]]  SI
MH  [[Henry (unit)|H]]  SI
kH  [[Henry (unit)|H]]  SI
hH  [[Henry (unit)|H]]  SI
daH  [[Henry (unit)|H]]  SI
dH  [[Henry (unit)|H]]  SI
cH  [[Henry (unit)|H]]  SI
mH  [[Henry (unit)|H]]  SI
µH  [[Henry (unit)|H]]  SI
uH  [[Henry (unit)|H]]  SI
nH  [[Henry (unit)|H]]  SI
pH  [[Henry (unit)|H]]  SI
fH  [[Henry (unit)|H]]  SI
aH  [[Henry (unit)|H]]  SI
zH  [[Henry (unit)|H]]  SI
yH  [[Henry (unit)|H]]  SI

A  [[Ampere|A]]  SI
YA  [[Ampere|A]]  SI
ZA  [[Ampere|A]]  SI
EA  [[Ampere|A]]  SI
PA  [[Ampere|A]]  SI
TA  [[Ampere|A]]  SI
GA  [[Ampere|A]]  SI
MA  [[Ampere|A]]  SI
kA  [[Ampere|A]]  SI
hA  [[Ampere|A]]  SI
daA  [[Ampere|A]]  SI
dA  [[Ampere|A]]  SI
cA  [[Ampere|A]]  SI
mA  [[Ampere|A]]  SI
µA  [[Ampere|A]]  SI
uA  [[Ampere|A]]  SI
nA  [[Ampere|A]]  SI
pA  [[Ampere|A]]  SI
fA  [[Ampere|A]]  SI
aA  [[Ampere|A]]  SI
zA  [[Ampere|A]]  SI
yA  [[Ampere|A]]  SI

V  [[Volt|V]]  SI
YV  [[Volt|V]]  SI
ZV  [[Volt|V]]  SI
EV  [[Volt|V]]  SI
PV  [[Volt|V]]  SI
TV  [[Volt|V]]  SI
GV  [[Volt|V]]  SI
MV  [[Volt|V]]  SI
kV  [[Volt|V]]  SI
hV  [[Volt|V]]  SI
daV  [[Volt|V]]  SI
dV  [[Volt|V]]  SI
cV  [[Volt|V]]  SI
mV  [[Volt|V]]  SI
µV  [[Volt|V]]  SI
uV  [[Volt|V]]  SI
nV  [[Volt|V]]  SI
pV  [[Volt|V]]  SI
fV  [[Volt|V]]  SI
aV  [[Volt|V]]  SI
zV  [[Volt|V]]  SI
yV  [[Volt|V]]  SI

VA  [[Volt-ampere|VA]]  SI
YVA  [[Volt-ampere|VA]]  SI
ZVA  [[Volt-ampere|VA]]  SI
EVA  [[Volt-ampere|VA]]  SI
PVA  [[Volt-ampere|VA]]  SI
TVA  [[Volt-ampere|VA]]  SI
GVA  [[Volt-ampere|VA]]  SI
MVA  [[Volt-ampere|VA]]  SI
kVA  [[Volt-ampere|VA]]  SI
hVA  [[Volt-ampere|VA]]  SI
daVA  [[Volt-ampere|VA]]  SI
dVA  [[Volt-ampere|VA]]  SI
cVA  [[Volt-ampere|VA]]  SI
mVA  [[Volt-ampere|VA]]  SI
µVA  [[Volt-ampere|VA]]  SI
uVA  [[Volt-ampere|VA]]  SI
nVA  [[Volt-ampere|VA]]  SI
pVA  [[Volt-ampere|VA]]  SI
fVA  [[Volt-ampere|VA]]  SI
aVA  [[Volt-ampere|VA]]  SI
zVA  [[Volt-ampere|VA]]  SI
yVA  [[Volt-ampere|VA]]  SI

Ω  [[Ohm|Ω]]  SI

R  [[Rayleigh (unit)|R]]  SI

G  [[Gauss (unit)|G]]  SI
aG  [[Attogauss|G]]  SI
cG  [[Centigauss|G]]  SI
daG  [[Decagauss|G]]  SI
dG  [[Decigauss|G]]  SI
EG  [[Exagauss|G]]  SI
fG  [[Femtogauss|G]]  SI
GG  [[Gigagauss|G]]  SI
hG  [[Hectogauss|G]]  SI
kG  [[Kilogauss|G]]  SI
MG  [[Megagauss|G]]  SI
mG  [[Milligauss|G]]  SI
uG  [[Microgauss|G]]  SI
µG  [[Microgauss|G]]  SI
nG  [[Nanogauss|G]]  SI
PG  [[Petagauss|G]]  SI
pG  [[Picogauss|G]]  SI
TG  [[Teragauss|G]]  SI
yG  [[Yoctogauss|G]]  SI
YG  [[Yottagauss|G]]  SI
zG  [[Zeptogauss|G]]  SI
ZG  [[Zettagauss|G]]  SI

T  [[Tesla (unit)|T]]  SI
aT  [[Attotesla|T]]  SI
cT  [[Centitesla|T]]  SI
daT  [[Decatesla|T]]  SI
dT  [[Decitesla|T]]  SI
ET  [[Exatesla|T]]  SI
fT  [[Femtotesla|T]]  SI
GT  [[Gigatesla|T]]  SI
hT  [[Hectotesla|T]]  SI
kT  [[Kilotesla|T]]  SI
MT  [[Megatesla|T]]  SI
mT  [[Millitesla|T]]  SI
uT  [[Microtesla|T]]  SI
µT  [[Microtesla|T]]  SI
nT  [[Nanotesla|T]]  SI
PT  [[Petatesla|T]]  SI
pT  [[Picotesla|T]]  SI
TT  [[Teratesla|T]]  SI
yT  [[Yoctotesla|T]]  SI
YT  [[Yottatesla|T]]  SI
zT  [[Zeptotesla|T]]  SI
ZT  [[Zettatesla|T]]  SI

== Astrophysics ==
au  [[Astronomical unit|au]]
c  [[Speed of light|''c'']]
ly  [[Light-year|ly]]
Earth mass  [[Earth mass|''M''<sub>⊕</sub>]]
Earth radius  [[Earth radius|''R''<sub>⊕</sub>]]
M_Earth  [[Earth mass|''M''<sub>⊕</sub>]]
R_Earth  [[Earth radius|''R''<sub>⊕</sub>]]
M+  [[Earth mass|''M''<sub>⊕</sub>]]
R+  [[Earth radius|''R''<sub>⊕</sub>]]
Jupiter mass  [[Jupiter mass|''M''<sub>J</sub>]]
Jupiter radius  [[Jupiter radius|''R''<sub>J</sub>]]
M_Jupiter  [[Jupiter mass|''M''<sub>J</sub>]]
R_Jupiter  [[Jupiter radius|''R''<sub>J</sub>]]
Solar mass  [[Solar mass|''M''<sub>&#x2609;</sub>]]
solar mass  [[Solar mass|''M''<sub>&#x2609;</sub>]]
M_Solar  [[Solar mass|''M''<sub>&#x2609;</sub>]]
M_solar  [[Solar mass|''M''<sub>&#x2609;</sub>]]
R_Solar  [[Solar radius|''R''<sub>&#x2609;</sub>]]
R_solar  [[Solar radius|''R''<sub>&#x2609;</sub>]]
Solar radius  [[Solar radius|''R''<sub>&#x2609;</sub>]]
solar radius  [[Solar radius|''R''<sub>&#x2609;</sub>]]
Solar luminosity  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
solar luminosity  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
L_solar  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
L_Solar  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
Lo  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
pc2  [[Parsec|pc<sup>2</sup>]]
pc3  [[Parsec|pc<sup>3</sup>]]
kpc2  [[Parsec#Parsecs and kiloparsecs|kpc<sup>2</sup>]]
kpc3  [[Parsec#Parsecs and kiloparsecs|kpc<sup>3</sup>]]
kpc  [[Parsec#Parsecs and kiloparsecs|kpc]]
Mpc2  [[Parsec#Megaparsecs and gigaparsecs|Mpc<sup>2</sup>]]
Mpc3  [[Parsec#Megaparsecs and gigaparsecs|Mpc<sup>3</sup>]]
Mpc  [[Parsec#Megaparsecs and gigaparsecs|Mpc]]
Gpc2  [[Parsec#Megaparsecs and gigaparsecs|Gpc<sup>2</sup>]]
Gpc3  [[Parsec#Megaparsecs and gigaparsecs|Gpc<sup>3</sup>]]
Gpc  [[Parsec#Megaparsecs and gigaparsecs|Gpc]]

== Nuclear physics and chemistry ==
cm-1  [[Wavenumber|cm<sup>−1</sup>]]
u  [[Unified atomic mass unit|u]]
osmol  [[Osmole (unit)|osmol]]
Osm  [[Osmole (unit)|Osm]]
M  [[Molarity|M]]
TM  [[Molarity|M]]  SI
GM  [[Molarity|M]]  SI
MM  [[Molarity|M]]  SI
kM  [[Molarity|M]]  SI
hM  [[Molarity|M]]  SI
daM  [[Molarity|M]]  SI
dM  [[Molarity|M]]  SI
cM  [[Molarity|M]]  SI
mM  [[Molarity|M]]  SI
uM  [[Molarity|M]]  1e-6
nM  [[Molarity|M]]  SI
pM  [[Molarity|M]]  SI
kg.mol-1  [[Molar mass|kg&sdot;mol<sup>−1</sup>]]
kg/mol  [[Molar mass|kg/mol]]
g.mol-1  [[Molar mass|g&sdot;mol<sup>−1</sup>]]
g/mol  [[Molar mass|g/mol]]
eV/c2  [[Electronvolt#Mass|eV/''c''<sup>2</sup>]]
keV/c2  [[Electronvolt#Mass|keV/''c''<sup>2</sup>]]
MeV/c2  [[Electronvolt#Mass|MeV/''c''<sup>2</sup>]]
GeV/c2  [[Electronvolt#Mass|GeV/''c''<sup>2</sup>]]
TeV/c2  [[Electronvolt#Mass|TeV/''c''<sup>2</sup>]]
µN  [[Nuclear magneton|µ<span style="display:inline-block;margin-bottom:-0.3em;vertical-align:-0.4em;line-height:1.2em;font-size:85%;text-align:left"><br />N</span>]]
µB  [[Bohr magneton|µ<span style="display:inline-block;margin-bottom:-0.3em;vertical-align:-0.4em;line-height:1.2em;font-size:85%;text-align:left"><br />B</span>]]
eV  [[Electronvolt|eV]]
meV  [[Electronvolt|meV]]
keV  [[Electronvolt|keV]]
MeV  [[Electronvolt|MeV]]
GeV  [[Electronvolt|GeV]]
TeV  [[Electronvolt|TeV]]
mol-1  [[Avogadro constant|mol<sup>−1</sup>]]
J.mol-1  [[Joule per mole|J&sdot;mol<sup>−1</sup>]]
J/mol  [[Joule per mole|J/mol]]
kJ.mol-1  [[Joule per mole|kJ&sdot;mol<sup>−1</sup>]]
kJ/mol  [[Joule per mole|kJ/mol]]
MJ.mol-1  [[Joule per mole|MJ&sdot;mol<sup>−1</sup>]]
MJ/mol  [[Joule per mole|MJ/mol]]
GJ.mol-1  [[Joule per mole|GJ&sdot;mol<sup>−1</sup>]]
GJ/mol  [[Joule per mole|GJ/mol]]
TJ.mol-1  [[Joule per mole|TJ&sdot;mol<sup>−1</sup>]]
TJ/mol  [[Joule per mole|TJ/mol]]

== Numbers and phrases ==
pp  [[Page (paper)|pp]]
ppb  [[Parts per billion|ppb]]  1e-9
ppm  [[Parts per million|ppm]]  1e-6
billiard  [[Orders of magnitude (numbers)#1015|billiard]]  1e15
billion  [[1,000,000,000|billion]]  1e9
billionth  [[1,000,000,000|billionth]]  1e-9
billionths  [[1,000,000,000|billionths]]  1e-9
decilliard  [[Orders of magnitude (numbers)#1063|decilliard]]  1e63
decillion  [[Orders of magnitude (numbers)#1033|decillion]]  1e33
decillionth  [[Orders of magnitude (numbers)#1033|decillionth]]  1e-33
decillionths  [[Orders of magnitude (numbers)#1033|decillionths]]  1e-33
milliard  [[1,000,000,000|milliard]]  1e9
million  [[Million|million]]  1e6
millionth  [[Million|millionth]]  1e-6
millionths  [[Million|millionths]]  1e-6
nonilliard  [[Orders of magnitude (numbers)#1057|nonilliard]]  1e57
nonillion  [[Orders of magnitude (numbers)#1030|nonillion]]  1e30
nonillionth  [[Orders of magnitude (numbers)#1030|nonillionth]]  1e-30
nonillionths  [[Orders of magnitude (numbers)#1030|nonillionths]]  1e-30
octilliard  [[Orders of magnitude (numbers)#1051|octilliard]]  1e51
octillion  [[Orders of magnitude (numbers)#1027|octillion]]  1e27
octillionth  [[Orders of magnitude (numbers)#1027|octillionth]]  1e-27
octillionths  [[Orders of magnitude (numbers)#1027|octillionths]]  1e-27
quadrilliard  [[Orders of magnitude (numbers)#1027|quadrilliard]]  1e27
quadrillion  [[Orders of magnitude (numbers)#1015|quadrillion]]  1e15
quadrillionth  [[Orders of magnitude (numbers)#1015|quadrillionth]]  1e-15
quadrillionths  [[Orders of magnitude (numbers)#1015|quadrillionths]]  1e-15
quintilliard  [[Orders of magnitude (numbers)#1033|quintilliard]]  1e33
quintillion  [[Orders of magnitude (numbers)#1018|quintillion]]  1e18
quintillionth  [[Orders of magnitude (numbers)#1018|quintillionth]]  1e-18
quintillionths  [[Orders of magnitude (numbers)#1018|quintillionths]]  1e-18
septilliard  [[Orders of magnitude (numbers)#1045|septilliard]]  1e45
septillion  [[Orders of magnitude (numbers)#1024|septillion]]  1e24
septillionth  [[Orders of magnitude (numbers)#1024|septillionth]]  1e-24
septillionths  [[Orders of magnitude (numbers)#1024|septillionths]]  1e-24
sextilliard  [[Orders of magnitude (numbers)#1039|sextilliard]]  1e39
sextillion  [[Orders of magnitude (numbers)#1021|sextillion]]  1e21
sextillionth  [[Orders of magnitude (numbers)#1021|sextillionth]]  1e-21
sextillionths  [[Orders of magnitude (numbers)#1021|sextillionths]]  1e-21
trilliard  [[Orders of magnitude (numbers)#1021|trilliard]]  1e21
trillion  [[Orders of magnitude (numbers)#1012|trillion]]  1e12
trillionth  [[Orders of magnitude (numbers)#1012|trillionth]]  1e-12
trillionths  [[Orders of magnitude (numbers)#1012|trillionths]]  1e-12

== Angles ==
%                  %                                     Percent                                ANGLE   0.01
percent            %                                     Percent                                ANGLE   0.01
per cent           %                                     Percent                                ANGLE   0.01
‰                  ‰                                     Per mil                                ANGLE   1e-3
per mil            ‰                                     Per mil                                ANGLE   1e-3
per mill           ‰                                     Per mil                                ANGLE   1e-3
per mille          ‰                                     Per mil                                ANGLE   1e-3
permil             ‰                                     Per mil                                ANGLE   1e-3
permill            ‰                                     Per mil                                ANGLE   1e-3
permille           ‰                                     Per mil                                ANGLE   1e-3
°                  °                                     Degree (angle)                         ANGLE   pi/180
deg                °                                     Degree (angle)                         ANGLE   pi/180
'                  ′                                     Minute of arc                          ANGLE   pi/10800
′                  ′                                     Minute of arc                          ANGLE   pi/10800
arcmin             ′                                     Minute of arc                          ANGLE   pi/10800
arcminute          ′                                     Minute of arc                          ANGLE   pi/10800
"                  ″                                     Second of arc                          ANGLE   pi/648000
″                  ″                                     Second of arc                          ANGLE   pi/648000
arcsec             ″                                     Second of arc                          ANGLE   pi/648000
arcsecond          ″                                     Second of arc                          ANGLE   pi/648000
mas  [[Milliarcsecond|mas]]  pi/648000000

]=]

-- If val has "|long scale=on" the following definitions are used
-- (then, if not found here, the normal definitions are used).
-- Unit code  [[Link|Symbol]]  Flags/Scale
local builtin_units_long_scale = [=[

== Long scale numbers and phrases ==
billion  [[Orders of magnitude (numbers)#1012|billion]]  1e12
billionth  [[Orders of magnitude (numbers)#1012|billionth]]  1e-12
billionths  [[Orders of magnitude (numbers)#1012|billionths]]  1e-12
decillion  [[Orders of magnitude (numbers)#1060|decillion]]  1e60
decillionth  [[Orders of magnitude (numbers)#1060|decillionth]]  1e-60
decillionths  [[Orders of magnitude (numbers)#1060|decillionths]]  1e-60
nonillion  [[Orders of magnitude (numbers)#1054|nonillion]]  1e54
nonillionth  [[Orders of magnitude (numbers)#1054|nonillionth]]  1e-54
nonillionths  [[Orders of magnitude (numbers)#1054|nonillionths]]  1e-54
octillion  [[Orders of magnitude (numbers)#1048|octillion]]  1e48
octillionth  [[Orders of magnitude (numbers)#1048|octillionth]]  1e-48
octillionths  [[Orders of magnitude (numbers)#1048|octillionths]]  1e-48
quadrillion  [[Orders of magnitude (numbers)#1024|quadrillion]]  1e24
quadrillionth  [[Orders of magnitude (numbers)#1024|quadrillionth]]  1e-24
quadrillionths  [[Orders of magnitude (numbers)#1024|quadrillionths]]  1e-24
quintillion  [[Orders of magnitude (numbers)#1030|quintillion]]  1e30
quintillionth  [[Orders of magnitude (numbers)#1030|quintillionth]]  1e-30
quintillionths  [[Orders of magnitude (numbers)#1030|quintillionths]]  1e-30
septillion  [[Orders of magnitude (numbers)#1042|septillion]]  1e42
septillionth  [[Orders of magnitude (numbers)#1042|septillionth]]  1e-42
septillionths  [[Orders of magnitude (numbers)#1042|septillionths]]  1e-42
sextillion  [[Orders of magnitude (numbers)#1036|sextillion]]  1e36
sextillionth  [[Orders of magnitude (numbers)#1036|sextillionth]]  1e-36
sextillionths  [[Orders of magnitude (numbers)#1036|sextillionths]]  1e-36
trillion  [[Orders of magnitude (numbers)#1018|trillion]]  1e18
trillionth  [[Orders of magnitude (numbers)#1018|trillionth]]  1e-18
trillionths  [[Orders of magnitude (numbers)#1018|trillionths]]  1e-18

]=]

return { builtin_units = builtin_units, builtin_units_long_scale = builtin_units_long_scale }