Module:Val/units: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Johnuniq
include all units from Template:Val/units while removing items that were in Module:Val/units which duplicate or clash the template units
Ookami (talk | contribs)
m 118 revisions imported
 
(88 intermediate revisions by 12 users not shown)
Line 1: Line 1:
-- Definitions for units known to val (short scale; see below for long scale).
-- Definitions for units known to val
-- There must be two spaces (not tab characters) after each unit code, and
-- File format is two strings and a return statement with them in it:
-- two spaces or tabs between columns.
-- string in quotes [=[ ... builtin_units ... ]=].
-- There must be a blank line before the first unit and a newline after the last.
-- string in quotes [=[ ... builtin_units_long_scale ... ]=].
-- Unit code       Symbol                               Link                                  Flags
-- 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 = [=[
local builtin_units = [=[


== Angles ==
== Test ==
%                  %                                    percent                                NOSPACE
Foo  [[Hz|<samp>Foo</samp>]]
percent            %                                    percent                                NOSPACE
Baz  [[Hertz|baz<sub>0</sub>]]
per cent          %                                    percent                                NOSPACE
Baz  [[Kelvins|baz<sub>0</sub>]]
‰                  ‰                                    per mil                                NOSPACE
Bar  [[Foobar|bar<abbr title="super duper">0</abbr>]]
per mil            ‰                                    per mil                                NOSPACE
quux  [[Foobar|<span title="super duper 2">bar0</span>]]
per mill          ‰                                    per mil                                NOSPACE
per mille          ‰                                    per mil                                NOSPACE
permil            ‰                                    per mil                                NOSPACE
permill            ‰                                    per mil                                NOSPACE
permille          ‰                                    per mil                                NOSPACE
°                  °                                    degree (angle)                        NOSPACE
deg                °                                    degree (angle)                        NOSPACE
'                  ′                                    minute of arc                          NOSPACE
′                  ′                                    minute of arc                          NOSPACE
arcmin            ′                                    minute of arc                          NOSPACE
arcminute          ′                                    minute of arc                          NOSPACE
"                 ″                                    second of arc                          NOSPACE
″                  ″                                    second of arc                          NOSPACE
arcsec            ″                                    second of arc                          NOSPACE
arcsecond          ″                                    second of arc                          NOSPACE


== Unsorted units ==
== Unsorted units ==
Torr              Torr                                  Torr
c0  [[Speed of light#Numerical value, notation, and units|''c''<sub>0</sub>]]
lbf               <span title="pound-force">lb<sub>F</sub></span>   Pound (force)
lbf [[Pound (force)|<span title="pound-force">lb<sub>F</sub></span> ]]
Foo                Foo                                  Foo
N.s  [[Newton-second|N&sdot;s]]
C/mol              C/mol                                Faraday constant
J.K-1  [[Joule per kelvin|J&sdot;K<sup>−1</sup>]]
C.mol-1           C&sdot;mol<sup>−1</sup>               Faraday constant
C.mol-1 [[Faraday constant|C&sdot;mol<sup>−1</sup>]]
C/kg              C/kg                                  Roentgen (unit)
C/mol  [[Faraday constant|C/mol]]
C.kg-1             C&sdot;kg<sup>−1</sup>               Roentgen (unit)
C.kg-1 [[Roentgen (unit)|C&sdot;kg<sup>−1</sup>]]
F.m-1             F&sdot;m<sup>−1</sup>                 vacuum permittivity
C/kg  [[Roentgen (unit)|C/kg]]
F/m               F/m                                   vacuum permittivity
F.m-1 [[vacuum permittivity|F&sdot;m<sup>−1</sup>]]
e                 ''e''                                 Elementary charge
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 ==
== Time and frequency ==
byte               byte                                 Byte
byte/s  [[Data rate units|byte/s]]  8
byte/s             byte/s                               Bytes per second
kB/s  [[Data rate units#Kilobyte per second|<span title="Kilobytes per second">kB/s</span>]]  8e3
bit/s             bit/s                                 Bit per second
MB/s [[Data rate units#Megabyte per second|<span title="Megabytes per second">MB/s</span>]]  8e6
bps                bit/s                                 Bit per second
GB/s  [[Data rate units#Gigabyte per second|<span title="Gigabytes per second">GB/s</span>]]  8e9
kbit/s             kbit/s                               Kilobit per second
TB/s  [[Data rate units#Terabyte per second|<span title="Terabytes per second">TB/s</span>]]  8e12
Mbit/s             Mbit/s                               Megabit per second
bit/s [[Bit per second|bit/s]]  1
Gbit/s             Gbit/s                               Gigabit per second
bps  [[Bit per second|bit/s]]  1
Tbit/s             Tbit/s                               Terabit per second
kbit/s [[Kilobit per second|kbit/s]]  1e3
year               year                                 Year
Mbit/s [[Megabit per second|Mbit/s]]  1e6
years             years                                 Year
Gbit/s [[Gigabit per second|Gbit/s]]  1e9
yr                 yr                                    Year#Symbols_y_and_yr
Tbit/s [[Terabit per second|Tbit/s]]  1e12
y                 y                                     Year
kT/s  [[Transfer (computing)|<span title="Kilotransfers per second">kT/s</span>]]  1e3
Ga                 Ga                                   Gigaannum
MT/s  [[Transfer (computing)|<span title="Megatransfers per second">MT/s</span>]]  1e6
Ma                 Ma                                   Megaannum
GT/s  [[Transfer (computing)|<span title="Gigatransfers per second">GT/s</span>]]  1e9
ka                 ka                                   Kiloannum
year [[Year|year]]  31557600
kyr               kyr                                   Kyr
years [[Year|years]]  31557600
kya               kya                                   Kyr
yr [[Year#Symbols y and yr|yr]]  31557600
myr               myr                                   Million years
y [[Year|y]]  31557600
mya               mya                                  Mya_(unit)
a  [[Annum|a]]  31557600
byr               byr                                  Billion years
Ga [[Gigaannum|Ga]]  31557600000000000
bya               bya                                  Billion years ago
Ma [[Megaannum|Ma]]  31557600000000
Gyr               Ga                                    Year#SI_prefix_multipliers
ka [[Kiloannum|ka]]  31557600000
BP                 BP                                    Before present
kyr [[kyr|kyr]]  31557600000
uBP               <sup>14</sup>C yr BP                 Radiocarbon dating#Calibration
kya [[kyr|kya]]  31557600000
s-1               s<sup>−1</sup>                       Second
myr [[myr|myr]]  31557600000000
s-2               s<sup>−2</sup>                       Second
mya [[Mya (unit)|mya]]  31557600000000
s2                 s<sup>2</sup>                         Second
byr [[Billion years|byr]]  31557600000000000
s                 s                                     Second
bya [[Billion years ago|bya]]  31557600000000000
as                 as                                    Attosecond
Gyr [[billion years|Gyr]]  31557600000000000
cs                 cs                                    Second
BP [[Before present|BP]]
das               das                                  Second
uBP [[Radiocarbon dating#Calibration|<sup>14</sup>C yr BP]]
ds                 ds                                    Second
BC  [[Before Christ|BC]]  -1
Es                 Es                                    Second
AD  [[Anno Domini|AD]]  1
fs                 fs                                    Femtosecond
BCE  [[Before the Common Era|BCE]]  -1
Gs                 Gs                                    Second
CE  [[Common Era|CE]]  1
hs                 hs                                    Second
JD  [[Julian date|JD]]  1
ks                 ks                                    Second
MJD  [[Modified Julian date|MJD]]  1
ms                 ms                                    Millisecond
 
µs                 µs                                    Microsecond
s-1 [[Second|s<sup>−1</sup>]]
mus                µs                                    Microsecond
s-2 [[Second|s<sup>−2</sup>]]
Ms                 Ms                                    Second
s2 [[Second|s<sup>2</sup>]]
ns                 ns                                    Nanosecond
 
ps                 ps                                    Picosecond
s [[Second|s]]  SI
Ps                 Ps                                    Second
as [[Attosecond|s]]  SI
Ts                 Ts                                    Second
cs [[Second|s]]  SI
Ys                 Ys                                    Second
das [[Second|s]]  SI
ys                 ys                                    Yoctosecond
ds [[Second|s]]  SI
Zs                 Zs                                    Second
Es [[Second|s]]  SI
zs                 zs                                    Zeptosecond
fs [[Femtosecond|s]]  SI
Hz                 Hz                                   Hertz
Gs [[Second|s]]  SI
aHz               aHz                                  Hertz
hs [[Second|s]]  SI
cHz               cHz                                  Hertz
ks [[Second|s]]  SI
daHz               daHz                                  Hertz
ms [[Millisecond|s]]  SI
dHz               dHz                                  Hertz
µs [[Microsecond|s]]  SI
EHz               EHz                                  Hertz
us  [[Microsecond|s]]  SI
fHz               fHz                                  Hertz
Ms [[Second|s]]  SI
hHz               hHz                                  Hertz
ns [[Nanosecond|s]]  SI
GHz               GHz                                  Gigahertz
ps [[Picosecond|s]]  SI
kHz               kHz                                  Kilohertz
Ps [[Second|s]]  SI
MHz               MHz                                  Megahertz
Ts [[Second|s]]  SI
mHz               mHz                                  Hertz
Ys [[Second|s]]  SI
muHz              µHz                                  Hertz
ys [[Yoctosecond|s]]  SI
µHz               µHz                                  Hertz
Zs [[Second|s]]  SI
nHz               nHz                                  Hertz
zs [[Zeptosecond|s]]  SI
pHz               pHz                                  Hertz
 
PHz               PHz                                  Hertz
Hz [[Hertz|Hz]]  SI
THz               THz                                  Hertz
aHz [[Hertz|Hz]]  SI
yHz               yHz                                  Hertz
cHz [[Hertz|Hz]]  SI
YHz               YHz                                  Hertz
daHz [[Hertz|Hz]]  SI
zHz               zHz                                  Hertz
dHz [[Hertz|Hz]]  SI
ZHz               ZHz                                  Hertz
EHz [[Hertz|Hz]]  SI
BC                BC                                    Before Christ
fHz [[Hertz|Hz]]  SI
AD                AD                                    Anno Domini
hHz [[Hertz|Hz]]  SI
BCE                BCE                                  Before the Common Era
GHz [[Gigahertz|Hz]]  SI
CE                CE                                    Common Era
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 ==
== Length, area, volume ==
fb-1               fb<sup>−1</sup>                       Barn (unit)
fb-1 [[Barn (unit)|fb<sup>−1</sup>]]
mas                mas                                  Milliarcsecond
m-1 [[Metre|m<sup>−1</sup>]]
m-1               m<sup>−1</sup>                       Metre
m-2 [[Square metre|m<sup>−2</sup>]]
m-2               m<sup>−2</sup>                       Square metre
m-3 [[Cubic metre|m<sup>−3</sup>]]
m-3               m<sup>−3</sup>                       Cubic metre
km2 [[Square kilometre|km<sup>2</sup>]]
km2               km<sup>2</sup>                       Square kilometre
km3 [[Cubic kilometre|km<sup>3</sup>]]
km3               km<sup>3</sup>                       Square kilometre
µm2  [[Square metre|µm<sup>2</sup>]]
m                  m                                    Metre
um2  [[Square metre|µm<sup>2</sup>]]
meter              m                                    Metre
am2  [[Square metre|am<sup>2</sup>]]
metre             m                                    Metre
cm2 [[Square centimetre|cm<sup>2</sup>]]
am                am                                    Metre
dam2 [[Square metre|dam<sup>2</sup>]]
cm                cm                                    Centimetre
dm2  [[Square metre|dm<sup>2</sup>]]
dam                dam                                  Decametre
Em2  [[Square metre|Em<sup>2</sup>]]
dm                dm                                    Decimetre
fm2  [[Square metre|fm<sup>2</sup>]]
Em                Em                                    Metre
Gm2  [[Square metre|Gm<sup>2</sup>]]
fm                fm                                    Metre
hm2  [[Square metre|hm<sup>2</sup>]]
Gm                Gm                                    Metre
mm2  [[Square metre|mm<sup>2</sup>]]
hm                hm                                    Hectometre
Mm2  [[Square metre|Mm<sup>2</sup>]]
km                km                                    Kilometre
nm2  [[Square metre|nm<sup>2</sup>]]
Mm                Mm                                    Megametre
pm2  [[Square metre|pm<sup>2</sup>]]
mm                mm                                    Millimetre
Pm2  [[Square metre|Pm<sup>2</sup>]]
mum                µm                                   Micrometre
Tm2  [[Square metre|Tm<sup>2</sup>]]
µm                µm                                    Micrometre
ym2  [[Square metre|ym<sup>2</sup>]]
nm                nm                                    Nanometre
Ym2  [[Square metre|Ym<sup>2</sup>]]
Pm                Pm                                    Metre
zm2  [[Square metre|zm<sup>2</sup>]]
pm                pm                                    Picometre
Zm2  [[Square metre|Zm<sup>2</sup>]]
Tm                Tm                                    Metre
gal [[Gallon|gal]]
Ym                Ym                                    Metre
Gal [[Gal (unit)|Gal]]
ym                ym                                    Metre
uGal  [[Gal (unit)|µGal]]
Zm                Zm                                    Metre
µGal [[Gal (unit)|µGal]]
zm                zm                                    Metre
mGal [[Gal (unit)|mGal]]
µm2                µm<sup>2</sup>                       Square metre
 
am2                am<sup>2</sup>                       Square metre
b  [[Barn (unit)|b]]  SI
cm2               cm<sup>2</sup>                       Square centimetre
ab  [[Barn (unit)|b]]  SI
dam2               dam<sup>2</sup>                       Square metre
cb  [[Barn (unit)|b]]  SI
dm2                dm<sup>2</sup>                       Square metre
dab  [[Barn (unit)|b]]  SI
Em2                Em<sup>2</sup>                       Square metre
db  [[Barn (unit)|b]]  SI
fm2                fm<sup>2</sup>                       Square metre
Eb  [[Barn (unit)|b]]  SI
Gm2                Gm<sup>2</sup>                       Square metre
fb  [[Barn (unit)|b]]  SI
hm2                hm<sup>2</sup>                       Square metre
Gb  [[Barn (unit)|b]]  SI
mm2                mm<sup>2</sup>                       Square metre
hb  [[Barn (unit)|b]]  SI
Mm2                Mm<sup>2</sup>                       Square metre
kb  [[Barn (unit)|b]]  SI
nm2                nm<sup>2</sup>                       Square metre
mb  [[Barn (unit)|b]]  SI
pm2                pm<sup>2</sup>                       Square metre
µb  [[Barn (unit)|b]]  SI
Pm2                Pm<sup>2</sup>                       Square metre
ub  [[Barn (unit)|b]]  SI
Tm2                Tm<sup>2</sup>                       Square metre
Mb  [[Barn (unit)|b]]  SI
ym2                ym<sup>2</sup>                       Square metre
nb  [[Barn (unit)|b]]  SI
Ym2                Ym<sup>2</sup>                       Square metre
pb  [[Barn (unit)|b]]  SI
zm2                zm<sup>2</sup>                       Square metre
Pb  [[Barn (unit)|b]]  SI
Zm2                Zm<sup>2</sup>                       Square metre
Tb  [[Barn (unit)|b]]  SI
gal               gal                                   Gallon
Yb  [[Barn (unit)|b]]  SI
Gal               Gal                                  Gal (unit)
yb  [[Barn (unit)|b]]  SI
muGal              µGal                                  Gal (unit)
Zb  [[Barn (unit)|b]]  SI
µGal               µGal                                  Gal (unit)
zb  [[Barn (unit)|b]]  SI
mGal               mGal                                 Gal (unit)


== Velocity and acceleration ==
== Velocity and acceleration ==
m/s2               m/s<sup>2</sup>                       Metre per second squared
m.s-2  [[Metre per second squared|m&sdot;s<sup>−2</sup>]]
m.s-2              m&sdot;s<sup>−2</sup>                 Metre per second squared
m/s2 [[Metre per second squared|m/s<sup>2</sup>]]
m/s               m/s                                   Metre per second
m.s-1  [[Metre per second|m&sdot;s<sup>−1</sup>]]
m.s-1             m&sdot;s<sup>−1</sup>                 Metre per second
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 ==
== Mass and energy ==
lbm               <span title="pound-mass">lb<sub>m</sub></span>   Pound (mass)
lbm [[Pound (mass)|<span title="pound-mass">lb<sub>m</sub></span>]]
muJ                µJ                                   Joule
uJ  [[Joule|µJ]]
J.s               J&sdot;s                             Joule-second
J.s [[Joule-second|J&sdot;s]]
kWh               kWh                                  Kilowatt hour
kWh [[Kilowatt hour|kWh]]
kW.h               kW&sdot;h                            Kilowatt hour
kW.h [[Kilowatt hour|kW&sdot;h]]
kW·h              kW&sdot;h                             Kilowatt hour
J/C [[Volt|J/C]]
J/C               J/C                                   Volt
J/kg [[Joule|J/kg]]
J/kg               J/kg                                 Joule
 
g                 g                                     Gram
Da  [[Dalton (unit)|Da]]  SI
ag                 ag                                    Attogram
EDa  [[Dalton (unit)|Da]]  SI
cg                 cg                                    Centigram
PDa  [[Dalton (unit)|Da]]  SI
dag               dag                                  Gram
TDa  [[Dalton (unit)|Da]]  SI
dg                 dg                                    Decigram
GDa  [[Dalton (unit)|Da]]  SI
Eg                 Eg                                    Exagram
MDa  [[Dalton (unit)|Da]]  SI
fg                 fg                                    Femtogram
kDa  [[Dalton (unit)|Da]]  SI
Gg                 Gg                                    Gigagram
mDa  [[Dalton (unit)|Da]]  SI
hg                 hg                                    Hectogram
uDa  [[Dalton (unit)|Da]]  SI
kg                 kg                                    Kilogram
μDa  [[Dalton (unit)|Da]]  SI
mcg               µg                                    Microgram
nDa  [[Dalton (unit)|Da]]  SI
Mg                 Mg                                    Megagram
pDa  [[Dalton (unit)|Da]]  SI
mg                 mg                                    Milligram
fDa  [[Dalton (unit)|Da]]  SI
mug                µg                                    Microgram
aDa  [[Dalton (unit)|Da]]  SI
µg                 µg                                    Microgram
 
ng                 ng                                    Nanogram
g [[Gram|g]]  SI
Pg                 Pg                                    Petagram
ag [[Attogram|g]]  SI
pg                 pg                                    Picogram
cg [[Centigram|g]]  SI
Tg                 Tg                                    Tonne
dag [[Gram|g]]  SI
yg                 yg                                    Yoctogram
dg [[Decigram|g]]  SI
Yg                 Yg                                    Yottagram
Eg [[Exagram|g]]  SI
zg                 zg                                    Zeptogram
fg [[Femtogram|g]]  SI
Zg                 Zg                                    Zettagram
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 ==
== Pressure and density ==
Pa                Pa                                    Pascal (unit)
psi [[Pounds per square inch|psi]]
MPa                MPa                                  Pascal (unit)
g.cm-3  [[Gram per cubic centimetre|g&sdot;cm<sup>−3</sup>]]
KPa                KPa                                  Pascal (unit)
g/cm3 [[Gram per cubic centimetre|g/cm<sup>3</sup>]]
GPa                GPa                                  Pascal (unit)
kg.m-3  [[Kilogram per cubic metre|kg&sdot;m<sup>−3</sup>]]
psi               psi                                  Pounds per square inch
kg/m3 [[Kilogram per cubic metre|kg/m<sup>3</sup>]]
g/cm3             g/cm<sup>3</sup>                     Gram per cubic centimetre
kg/cm3 [[Density#Formula and common units|kg/cm<sup>3</sup>]]
kg/m3             kg/m<sup>3</sup>                     Kilogram per cubic metre
g/L [[Gram per litre|g/L]]
kg/cm3             kg/cm<sup>3</sup>                     Density#Formula_and_common_units
g/l [[Gram per litre|g/l]]
g/L               g/L                                   Gram per litre
mcg/dL [[Gram per litre|µg/dL]]
g/l               g/L                                  Gram per litre
mcg/dl  [[Gram per litre|µg/dl]]
mcg/dL             µg/dL                                 Gram per litre
mg/mL  [[Gram per litre|mg/mL]]
mcg/dl             µg/dL                                Gram per litre
mg/ml  [[Gram per litre|mg/ml]]
mg/mL             mg/mL                                Gram per litre
ug/dL  [[Gram per litre|µg/dL]]
mg/ml             mg/mL                                Gram per litre
ug/dl  [[Gram per litre|µg/dl]]
mug/dL             µg/dL                                Gram per litre
μg/dL [[Gram per litre|μg/dL]]
mug/dl             µg/dL                                 Gram per litre
μg/dl  [[Gram per litre|μg/dl]]
μg/dL             μg/dL                                Gram per litre
mg.L-1  [[Gram per litre|<abbr title="milligrams per liter">mg/L</abbr>]]
μg/dl             μg/dL                                Gram per litre
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 ==
== Temperature ==
°C                °C                                    Celsius
degC °C ALIAS
degC               °C                                   Celsius
degF °F ALIAS
°F                °F                                    Fahrenheit
degR  °R ALIAS
degF               °F                                   Fahrenheit
 
°R                 °R                                    Rankine scale
K [[Kelvin|K]]  SI
degR              °R                                    Rankine scale
YK  [[Yottakelvin|K]]  SI
K                 K                                     Kelvin
ZK  [[Zettakelvin|K]]  SI
aK                aK                                    Attokelvin
EK  [[Kelvin|K]]  SI
cK                cK                                    Centikelvin
PK  [[Petakelvin|K]]  SI
daK                daK                                  Decakelvin
TK  [[Terakelvin|K]]  SI
dK                dK                                    Decikelvin
GK [[Gigakelvin|K]]  SI
EK                EK                                    Exakelvin
MK  [[Megakelvin|K]]  SI
fK                fK                                    Femtokelvin
kK  [[Kilokelvin|K]]  SI
GK                 GK                                    Gigakelvin
hK [[Hectokelvin|K]]  SI
hK                 hK                                    Hectokelvin
daK  [[Decakelvin|K]]  SI
kK                kK                                    Kilokelvin
dK  [[Decikelvin|K]]  SI
MK                MK                                    Megakelvin
cK  [[Centikelvin|K]]  SI
mK                 mK                                    Millikelvin
mK [[Millikelvin|K]]  SI
muK                µK                                   Microkelvin
µK [[Microkelvin|K]]  SI
µK                µK                                    Microkelvin
uK  [[Microkelvin|K]]  SI
nK                 nK                                    Nanokelvin
nK [[Nanokelvin|K]]  SI
PK                PK                                    Petakelvin
pK [[Picokelvin|K]]  SI
pK                pK                                   Picokelvin
fK  [[Femtokelvin|K]]  SI
TK                TK                                    Terakelvin
aK  [[Attokelvin|K]]  SI
yK                yK                                    Yoctokelvin
zK [[Zeptokelvin|K]]  SI
YK                YK                                    Yottakelvin
yK  [[Yoctokelvin|K]]  SI
zK                 zK                                    Zeptokelvin
ZK                ZK                                    Zettakelvin


== Electromagnetism ==
== Electromagnetism ==
Wb                 Wb                                    Weber (unit)
Wb [[Weber (unit)|Wb]]
N.A-2             N&sdot;A<sup>−2</sup>                 Permeability (electromagnetism)
N.A-2 [[Permeability (electromagnetism)|N&sdot;A<sup>−2</sup>]]
H.m-1              H·m<sup>−1</sup>                     Permeability_(electromagnetism)
H.m-1  [[Permeability (electromagnetism)|H&sdot;m<sup>−1</sup>]]
V/m                V/m                                  Electric field
V.m-1 [[Electric field|V&sdot;m<sup>−1</sup>]]
V.m-1             V&sdot;m<sup>−1</sup>                 Electric field
V/m  [[Electric field|V/m]]
C                 C                                     Coulomb
 
F                  F                                    Farad
C [[Coulomb|C]]  SI
H                  H                                    Henry (unit)
YC  [[Coulomb|C]]  SI
R                  R                                    Rayleigh (unit)
ZC  [[Coulomb|C]]  SI
A                  A                                    Ampere
EC  [[Coulomb|C]]  SI
aA                aA                                    Ampere
PC  [[Coulomb|C]]  SI
cA                cA                                    Ampere
TC  [[Coulomb|C]]  SI
dA                dA                                    Ampere
GC  [[Coulomb|C]]  SI
daA                daA                                  Ampere
MC  [[Coulomb|C]]  SI
EA                EA                                    Ampere
kC  [[Coulomb|C]]  SI
fA                fA                                    Ampere
hC  [[Coulomb|C]]  SI
GA                GA                                    Ampere
daC  [[Coulomb|C]]  SI
hA                hA                                    Ampere
dC  [[Coulomb|C]]  SI
kA                kA                                    Ampere
cC  [[Coulomb|C]]  SI
mA                mA                                    Ampere
mC  [[Coulomb|C]]  SI
MA                MA                                    Ampere
µC  [[Coulomb|C]]  SI
muA                µA                                    Ampere
uC  [[Coulomb|C]]  SI
µA                µA                                    Ampere
nC  [[Coulomb|C]]  SI
nA                nA                                    Ampere
pC  [[Coulomb|C]]  SI
pA                pA                                    Ampere
fC  [[Coulomb|C]]  SI
PA                PA                                    Ampere
aC  [[Coulomb|C]]  SI
TA                TA                                    Ampere
zC  [[Coulomb|C]]  SI
yA                yA                                    Ampere
yC  [[Coulomb|C]]  SI
YA                YA                                    Ampere
 
zA                zA                                    Ampere
F  [[Farad|F]]  SI
ZA                ZA                                    Ampere
YF  [[Farad|F]]  SI
V                  V                                    Volt
ZF  [[Farad|F]]  SI
cV                cV                                    Volt
EF  [[Farad|F]]  SI
daV                daV                                  Volt
PF  [[Farad|F]]  SI
dV                dV                                    Volt
TF  [[Farad|F]]  SI
EV                EV                                    Volt
GF  [[Farad|F]]  SI
fV                fV                                    Volt
MF  [[Farad|F]]  SI
GV                GV                                    Volt
kF  [[Farad|F]]  SI
hV                hV                                    Volt
hF  [[Farad|F]]  SI
kV                kV                                    Volt
daF  [[Farad|F]]  SI
muV                µV                                    Volt
dF  [[Farad|F]]  SI
µV                µV                                    Volt
cF  [[Farad|F]]  SI
mV                mV                                    Volt
mF  [[Farad|F]]  SI
MV                MV                                    Volt
µF  [[Farad|F]]  SI
nV                nV                                    Volt
uF  [[Farad|F]]  SI
pV                pV                                    Volt
nF  [[Farad|F]]  SI
PV                PV                                    Volt
pF  [[Farad|F]]  SI
TV                TV                                    Volt
fF  [[Farad|F]]  SI
VV                VV                                    Volt
aF  [[Farad|F]]  SI
yV                yV                                    Volt
zF  [[Farad|F]]  SI
YV                YV                                    Volt
yF  [[Farad|F]]  SI
zV                zV                                    Volt
 
ZV                ZV                                    Volt
H  [[Henry (unit)|H]]  SI
G                  G                                    Gauss (unit)
YH  [[Henry (unit)|H]]  SI
aG                aG                                    Attogauss
ZH  [[Henry (unit)|H]]  SI
cG                cG                                    Centigauss
EH  [[Henry (unit)|H]]  SI
daG                daG                                  Decagauss
PH  [[Henry (unit)|H]]  SI
dG                dG                                    Decigauss
TH  [[Henry (unit)|H]]  SI
EG                EG                                    Exagauss
GH  [[Henry (unit)|H]]  SI
fG                fG                                    Femtogauss
MH  [[Henry (unit)|H]]  SI
GG                GG                                    Gigagauss
kH  [[Henry (unit)|H]]  SI
hG                hG                                    Hectogauss
hH  [[Henry (unit)|H]]  SI
kG                kG                                    Kilogauss
daH  [[Henry (unit)|H]]  SI
MG                MG                                    Megagauss
dH  [[Henry (unit)|H]]  SI
mG                mG                                    Milligauss
cH  [[Henry (unit)|H]]  SI
muG                µG                                    Microgauss
mH  [[Henry (unit)|H]]  SI
µG                µG                                    Microgauss
µH  [[Henry (unit)|H]]  SI
nG                nG                                    Nanogauss
uH  [[Henry (unit)|H]]  SI
PG                PG                                    Petagauss
nH  [[Henry (unit)|H]]  SI
pG                pG                                    Picogauss
pH  [[Henry (unit)|H]]  SI
TG                TG                                    Teragauss
fH  [[Henry (unit)|H]]  SI
yG                yG                                    Yoctogauss
aH  [[Henry (unit)|H]]  SI
YG                YG                                    Yottagauss
zH  [[Henry (unit)|H]]  SI
zG                zG                                    Zeptogauss
yH  [[Henry (unit)|H]]  SI
ZG                ZG                                    Zettagauss
 
T                  T                                    Tesla (unit)
A  [[Ampere|A]]  SI
aT                aT                                    Attotesla
YA  [[Ampere|A]]  SI
cT                cT                                    Centitesla
ZA  [[Ampere|A]]  SI
daT                daT                                  Decatesla
EA  [[Ampere|A]]  SI
dT                dT                                    Decitesla
PA  [[Ampere|A]]  SI
ET                ET                                    Exatesla
TA  [[Ampere|A]]  SI
fT                fT                                    Femtotesla
GA  [[Ampere|A]]  SI
GT                GT                                    Gigatesla
MA  [[Ampere|A]]  SI
hT                hT                                    Hectotesla
kA  [[Ampere|A]]  SI
kT                kT                                    Kilotesla
hA  [[Ampere|A]]  SI
MT                MT                                    Megatesla
daA  [[Ampere|A]]  SI
mT                mT                                    Millitesla
dA  [[Ampere|A]]  SI
muT                µT                                    Microtesla
cA  [[Ampere|A]]  SI
µT                µT                                    Microtesla
mA  [[Ampere|A]]  SI
nT                nT                                    Nanotesla
µA  [[Ampere|A]]  SI
PT                PT                                    Petatesla
uA  [[Ampere|A]]  SI
pT                pT                                    Picotesla
nA  [[Ampere|A]]  SI
TT                TT                                    Teratesla
pA  [[Ampere|A]]  SI
yT                yT                                    Yoctotesla
fA  [[Ampere|A]]  SI
YT                YT                                    Yottatesla
aA  [[Ampere|A]]  SI
zT                zT                                    Zeptotesla
zA  [[Ampere|A]]  SI
ZT                ZT                                    Zettatesla
yA  [[Ampere|A]]  SI


== Astrophysics ==
V  [[Volt|V]]  SI
au                au                                    Astronomical unit
YV  [[Volt|V]]  SI
c                  ''c''                                Speed of light
ZV  [[Volt|V]]  SI
ly                ly                                    Light-year
EV  [[Volt|V]]  SI
Earth mass        ''M''<sub>⊕</sub>                    Earth mass
PV  [[Volt|V]]  SI
Earth radius      ''R''<sub>⊕</sub>                    Earth radius
TV  [[Volt|V]]  SI
M_Earth            ''M''<sub>⊕</sub>                    Earth mass
GV  [[Volt|V]]  SI
R_Earth            ''R''<sub>⊕</sub>                    Earth radius
MV  [[Volt|V]]  SI
Jupiter mass      ''M''<sub>J</sub>                    Jupiter mass
kV  [[Volt|V]]  SI
Jupiter radius    R<sub>J</sub>                        Jupiter radius
hV  [[Volt|V]]  SI
M_Jupiter          ''M''<sub>J</sub>                    Jupiter mass
daV  [[Volt|V]]  SI
R_Jupiter          ''R''<sub>J</sub>                    Jupiter radius
dV  [[Volt|V]]  SI
Solar mass        ''M''<sub>&#x2609;</sub>              Solar mass
cV  [[Volt|V]]  SI
solar mass        ''M''<sub>&#x2609;</sub>              Solar mass
mV  [[Volt|V]]  SI
M_Solar            ''M''<sub>&#x2609;</sub>              Solar mass
µV  [[Volt|V]]  SI
M_solar            ''M''<sub>&#x2609;</sub>              Solar mass
uV  [[Volt|V]]  SI
R_Solar            ''R''<sub>&#x2609;</sub>              Solar radius
nV  [[Volt|V]]  SI
R_solar            ''R''<sub>&#x2609;</sub>              Solar radius
pV  [[Volt|V]]  SI
Solar radius      ''R''<sub>&#x2609;</sub>              Solar radius
fV  [[Volt|V]]  SI
solar radius      ''R''<sub>&#x2609;</sub>              Solar radius
aV  [[Volt|V]]  SI
Solar luminosity  ''L''<sub>&#x2609;</sub>              Solar luminosity
zV  [[Volt|V]]  SI
solar luminosity  ''L''<sub>&#x2609;</sub>              Solar luminosity
yV  [[Volt|V]]  SI
L_solar            ''L''<sub>&#x2609;</sub>              Solar luminosity
L_Solar            ''L''<sub>&#x2609;</sub>              Solar luminosity
pc2                pc<sup>2</sup>                        Parsec
pc3                pc<sup>3</sup>                        Parsec
kpc2              kpc<sup>2</sup>                      Parsec#Parsecs_and_kiloparsecs
kpc3              kpc<sup>3</sup>                      Parsec#Parsecs_and_kiloparsecs
kpc                kpc                                  Parsec#Parsecs_and_kiloparsecs
Mpc2              Mpc<sup>2</sup>                      Parsec#Megaparsecs_and_gigaparsecs
Mpc3              Mpc<sup>3</sup>                      Parsec#Megaparsecs_and_gigaparsecs
Mpc                Mpc                                  Parsec#Megaparsecs_and_gigaparsecs
Gpc2              Gpc<sup>2</sup>                      Parsec#Megaparsecs_and_gigaparsecs
Gpc3              Gpc<sup>3</sup>                      Parsec#Megaparsecs_and_gigaparsecs
Gpc                Gpc                                  Parsec#Megaparsecs_and_gigaparsecs


== Nuclear Physics and Chemistry ==
VA  [[Volt-ampere|VA]]  SI
cm-1              cm<sup>−1</sup>                      Wavenumber
YVA  [[Volt-ampere|VA]]  SI
u                  u                                    Atomic mass unit
ZVA  [[Volt-ampere|VA]]  SI
osmol              osmol                                Osmole (unit)
EVA  [[Volt-ampere|VA]]  SI
Osm                Osm                                  Osmole (unit)
PVA  [[Volt-ampere|VA]]  SI
kg/mol            kg/mol                                Molar mass
TVA  [[Volt-ampere|VA]]  SI
kg.mol-1          kg&sdot;mol<sup>−1</sup>              Molar mass
GVA  [[Volt-ampere|VA]]  SI
g/mol              g/mol                                Molar mass
MVA  [[Volt-ampere|VA]]  SI
g.mol-1            g&sdot;mol<sup>−1</sup>              Molar mass
kVA  [[Volt-ampere|VA]]  SI
eV/c2              eV/''c''<sup>2</sup>                  Electronvolt#Mass
hVA  [[Volt-ampere|VA]]  SI
keV/c2            keV/''c''<sup>2</sup>                Electronvolt#Mass
daVA  [[Volt-ampere|VA]]  SI
MeV/c2            MeV/''c''<sup>2</sup>                Electronvolt#Mass
dVA  [[Volt-ampere|VA]]  SI
GeV/c2            GeV/''c''<sup>2</sup>                Electronvolt#Mass
cVA  [[Volt-ampere|VA]]  SI
TeV/c2            TeV/''c''<sup>2</sup>                Electronvolt#Mass
mVA  [[Volt-ampere|VA]]  SI
µN                µ<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>    Nuclear magneton
µVA  [[Volt-ampere|VA]]  SI
µB                µ<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>    Bohr magneton
uVA  [[Volt-ampere|VA]]  SI
eV                eV                                    Electronvolt
nVA  [[Volt-ampere|VA]]  SI
mev                meV                                  Electronvolt
pVA  [[Volt-ampere|VA]]  SI
keV                keV                                  Electronvolt
fVA  [[Volt-ampere|VA]]  SI
MeV                MeV                                  Electronvolt
aVA  [[Volt-ampere|VA]]  SI
GeV                GeV                                  Electronvolt
zVA  [[Volt-ampere|VA]]  SI
TeV                TeV                                  Electronvolt
yVA  [[Volt-ampere|VA]]  SI
J/mol              J/mol                                Joule per mole
J.mol-1            J&sdot;mol<sup>−1</sup>              Joule per mole
kJ.mol-1          kJ&sdot;mol<sup>−1</sup>              Joule per mole
kJ/mol            kJ/mol                                Joule per mole
MJ.mol-1          MJ&sdot;mol<sup>−1</sup>              Joule per mole
MJ/mol            MJ/mol                                Joule per mole
GJ/mol            GJ/mol                                Joule per mole
GJ.mol-1          GJ&sdot;mol<sup>−1</sup>              Joule per mole
TJ.mol-1          TJ&sdot;mol<sup>−1</sup>              Joule per mole
TJ/mol            TJ/mol                                Joule per mole


== Numbers and phrases ==
Ω  [[Ohm|Ω]]  SI
pp                pp                                    Page (paper)
ppb                ppb                                  Parts per billion
ppm                ppm                                  Parts per million
billiard          billiard                              Orders of magnitude (numbers)#1015
billion            billion                              1,000,000,000
billionth          billionth                            1,000,000,000
billionths        billionths                            1,000,000,000
decilliard        decilliard                            Orders of magnitude (numbers)#1063
decillion          decillion                            Orders of magnitude (numbers)#1033
decillionth        decillionth                          Orders of magnitude (numbers)#1033
decillionths      decillionths                          Orders of magnitude (numbers)#1033
milliard          milliard                              1,000,000,000
nonilliard        nonilliard                            Orders of magnitude (numbers)#1057
nonillion          nonillion                            Orders of magnitude (numbers)#1030
nonillionth        nonillionth                          Orders of magnitude (numbers)#1030
nonillionths      nonillionths                          Orders of magnitude (numbers)#1030
octilliard        octilliard                            Orders of magnitude (numbers)#1051
octillion          octillion                            Orders of magnitude (numbers)#1027
octillionth        octillionth                          Orders of magnitude (numbers)#1027
octillionths      octillionths                          Orders of magnitude (numbers)#1027
quadrilliard      quadrilliard                          Orders of magnitude (numbers)#1027
quadrillion        quadrillion                          Orders of magnitude (numbers)#1015
quadrillionth      quadrillionth                        Orders of magnitude (numbers)#1015
quadrillionths    quadrillionths                        Orders of magnitude (numbers)#1015
quintilliard      quintilliard                          Orders of magnitude (numbers)#1033
quintillion        quintillion                          Orders of magnitude (numbers)#1018
quintillionth      quintillionth                        Orders of magnitude (numbers)#1018
quintillionths    quintillionths                        Orders of magnitude (numbers)#1018
septilliard        septilliard                          Orders of magnitude (numbers)#1045
septillion        septillion                            Orders of magnitude (numbers)#1024
septillionth      septillionth                          Orders of magnitude (numbers)#1024
septillionths      septillionths                        Orders of magnitude (numbers)#1024
sextilliard        sextilliard                          Orders of magnitude (numbers)#1039
sextillion        sextillion                            Orders of magnitude (numbers)#1021
sextillionth      sextillionth                          Orders of magnitude (numbers)#1021
sextillionths      sextillionths                        Orders of magnitude (numbers)#1021
trilliard          trilliard                            Orders of magnitude (numbers)#1021
trillion          trillion                              Orders of magnitude (numbers)#1012
trillionth        trillionth                            Orders of magnitude (numbers)#1012
trillionths        trillionths                          Orders of magnitude (numbers)#1012


== From original Module:Val/units after removing items which duplicate/clash with Template:Val/units. TODO: CHECK ==
R  [[Rayleigh (unit)|R]]  SI
μN                µ<sub>N</sub>                        nuclear magneton
g*mol-1            g&sdot;mol<sup>&minus;1</sup>        molar mass
GJ*mol-1          GJ&sdot;mol<sup>&minus;1</sup>        joule per mole
H*m-1              H                                    Henry (unit)
J*mol-1            J&sdot;mol<sup>&minus;1</sup>        joule per mole
J*s                J&sdot;s                              joule-second
Js                J&sdot;s                              joule-second
kJ*mol-1          kJ&sdot;mol<sup>&minus;1</sup>        joule per mole
m*s-1              m&sdot;s<sup>&minus;1</sup>          metre per second
m*s-2              m&sdot;s<sup>&minus;2</sup>          metre per second squared
m2                m<sup>2</sup>                        Square metre
m3                m<sup>3</sup>                        Cubic metre
MJ*mol-1          MJ&sdot;mol<sup>&minus;1</sup>        joule per mole
N*A-2              N&sdot;A<sup>&minus;2</sup>          permeability (electromagnetism)
N*m-1              N&sdot;m<sup>&minus;1</sup>          joule (unit)
second            s                                    second
seconds            s                                    second
TJ*mol-1          TJ&sdot;mol<sup>&minus;1</sup>        joule per mole
torr              Torr                                  Torr
USgal              US gal                                US gallon
V*m-1              V&sdot;m<sup>&minus;1</sup>          electric field
Vm-1              V&sdot;m<sup>&minus;1</sup>          electric field
W                  W                                    Watt


]=]
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


-- If val has "|long scale=on" the following definitions are used
T  [[Tesla (unit)|T]]  SI
-- (if not found here, the normal definitions are used).
aT  [[Attotesla|T]]  SI
-- Unit code      Symbol                                Link                                  Flags
cT  [[Centitesla|T]]  SI
local builtin_units_long_scale = [=[
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


billion            billion                              Orders of magnitude (numbers)#1012
== Astrophysics ==
billionth          billionth                            Orders of magnitude (numbers)#1012
au  [[Astronomical unit|au]]
billionths        billionths                            Orders of magnitude (numbers)#1012
c  [[Speed of light|''c'']]
decillion          decillion                            Orders of magnitude (numbers)#1060
ly  [[Light-year|ly]]
decillionth        decillionth                          Orders of magnitude (numbers)#1060
Earth mass  [[Earth mass|''M''<sub>⊕</sub>]]
decillionths      decillionths                          Orders of magnitude (numbers)#1060
Earth radius  [[Earth radius|''R''<sub>⊕</sub>]]
nonillion          nonillion                            Orders of magnitude (numbers)#1054
M_Earth  [[Earth mass|''M''<sub>⊕</sub>]]
nonillionth        nonillionth                          Orders of magnitude (numbers)#1054
R_Earth  [[Earth radius|''R''<sub>⊕</sub>]]
nonillionths      nonillionths                          Orders of magnitude (numbers)#1054
M+  [[Earth mass|''M''<sub>⊕</sub>]]
octillion          octillion                            Orders of magnitude (numbers)#1048
R+  [[Earth radius|''R''<sub>⊕</sub>]]
octillionth        octillionth                          Orders of magnitude (numbers)#1048
Jupiter mass  [[Jupiter mass|''M''<sub>J</sub>]]
octillionths      octillionths                          Orders of magnitude (numbers)#1048
Jupiter radius  [[Jupiter radius|''R''<sub>J</sub>]]
quadrillion        quadrillion                          Orders of magnitude (numbers)#1024
M_Jupiter  [[Jupiter mass|''M''<sub>J</sub>]]
quadrillionth      quadrillionth                        Orders of magnitude (numbers)#1024
R_Jupiter  [[Jupiter radius|''R''<sub>J</sub>]]
quadrillionths    quadrillionths                        Orders of magnitude (numbers)#1024
Solar mass  [[Solar mass|''M''<sub>&#x2609;</sub>]]
quintillion        quintillion                          Orders of magnitude (numbers)#1030
solar mass  [[Solar mass|''M''<sub>&#x2609;</sub>]]
quintillionth      quintillionth                        Orders of magnitude (numbers)#1030
M_Solar  [[Solar mass|''M''<sub>&#x2609;</sub>]]
quintillionths    quintillionths                        Orders of magnitude (numbers)#1030
M_solar  [[Solar mass|''M''<sub>&#x2609;</sub>]]
septillion        septillion                            Orders of magnitude (numbers)#1042
R_Solar  [[Solar radius|''R''<sub>&#x2609;</sub>]]
septillionth      septillionth                          Orders of magnitude (numbers)#1042
R_solar  [[Solar radius|''R''<sub>&#x2609;</sub>]]
septillionths      septillionths                        Orders of magnitude (numbers)#1042
Solar radius  [[Solar radius|''R''<sub>&#x2609;</sub>]]
sextillion        sextillion                            Orders of magnitude (numbers)#1036
solar radius  [[Solar radius|''R''<sub>&#x2609;</sub>]]
sextillionth      sextillionth                          Orders of magnitude (numbers)#1036
Solar luminosity  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
sextillionths      sextillionths                        Orders of magnitude (numbers)#1036
solar luminosity  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
trillion          trillion                              Orders of magnitude (numbers)#1018
L_solar  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
trillionth        trillionth                            Orders of magnitude (numbers)#1018
L_Solar  [[Solar luminosity|''L''<sub>&#x2609;</sub>]]
trillionths        trillionths                          Orders of magnitude (numbers)#1018
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]]


-- Duplicate/clash items removed from original Module:Val/units.
== Numbers and phrases ==
-- TODO Check whether removing these is desirable.
pp  [[Page (paper)|pp]]
local removed_units = [=[
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


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


]=]
]=]


local function get_builtin_unit(unitcode, definitions)
-- If val has "|long scale=on" the following definitions are used
-- Return table of information for the specified built-in unit, or nil if not known.
-- (then, if not found here, the normal definitions are used).
-- Each defined unit code must be followed by two spaces (not tab characters).
-- Unit code [[Link|Symbol]] Flags/Scale
local _, pos = definitions:find('\n' .. unitcode .. '  ', 1, true)
local builtin_units_long_scale = [=[
if pos then
local endline = definitions:find('\n', pos, true)
if endline then
local result = {}
local n = 0
local text = definitions:sub(pos, endline - 1)
for item in (text .. ' '):gmatch('(%S[^\n]-)%s%s') do
if item == 'NOSPACE' then
result.nospace = true
else
n = n + 1
if n == 1 then
result.symbol = item
elseif n == 2 then
result.link = item
else
break
end
end
end
if n == 2 then
return result
end
-- Ignore invalid definition.
end
end
end


local function get_unit(ucode, value, want_link, want_longscale)
== Long scale numbers and phrases ==
local result = want_longscale and
billion  [[Orders of magnitude (numbers)#1012|billion]]  1e12
get_builtin_unit(ucode, builtin_units_long_scale) or
billionth  [[Orders of magnitude (numbers)#1012|billionth]]  1e-12
get_builtin_unit(ucode, builtin_units)
billionths  [[Orders of magnitude (numbers)#1012|billionths]]  1e-12
local lookup = require('Module:Convert/sandbox')._unit
decillion  [[Orders of magnitude (numbers)#1060|decillion]]  1e60
local convert_unit = lookup(ucode, { value = value, link = want_link })
decillionth  [[Orders of magnitude (numbers)#1060|decillionth]]  1e-60
if result then
decillionths  [[Orders of magnitude (numbers)#1060|decillionths]]  1e-60
-- Have: result.symbol + result.link + result.nospace
nonillion  [[Orders of magnitude (numbers)#1054|nonillion]]  1e54
if want_link then
nonillionth  [[Orders of magnitude (numbers)#1054|nonillionth]]  1e-54
result.text = '[[' .. result.link .. '|' .. result.symbol .. ']]'
nonillionths  [[Orders of magnitude (numbers)#1054|nonillionths]]  1e-54
else
octillion  [[Orders of magnitude (numbers)#1048|octillion]]  1e48
result.text = result.symbol
octillionth  [[Orders of magnitude (numbers)#1048|octillionth]]  1e-48
end
octillionths  [[Orders of magnitude (numbers)#1048|octillionths]]  1e-48
result.sortkey = convert_unit.sortkey
quadrillion  [[Orders of magnitude (numbers)#1024|quadrillion]]  1e24
else
quadrillionth  [[Orders of magnitude (numbers)#1024|quadrillionth]]  1e-24
result = {
quadrillionths  [[Orders of magnitude (numbers)#1024|quadrillionths]] 1e-24
text = convert_unit.text,
quintillion  [[Orders of magnitude (numbers)#1030|quintillion]]  1e30
sortkey = convert_unit.sortkey,
quintillionth  [[Orders of magnitude (numbers)#1030|quintillionth]]  1e-30
}
quintillionths  [[Orders of magnitude (numbers)#1030|quintillionths]]  1e-30
end
septillion  [[Orders of magnitude (numbers)#1042|septillion]]  1e42
return result
septillionth  [[Orders of magnitude (numbers)#1042|septillionth]]  1e-42
end
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


local function bracketed(ucode, text)
]=]
if ucode:find('[*./]') then
return '(' .. text .. ')'
end
return text
end
 
local function makeunit(ucode, options)
-- Return wikitext, sortkey for the requested unit and options.
-- LATER The sortkey does not account for any per unit.
options = options or {}
local unit = get_unit(ucode, options.value, options.link, options.longscale)
local text = unit.text
local percode = options.per
if percode then
local perunit = get_unit(percode, 0, options.per_link, options.longscale)
text = bracketed(ucode, text) .. '/' .. bracketed(percode, perunit.text)
end
if not unit.nospace then
text = '&nbsp;' .. text
end
return text, unit.sortkey
end


return makeunit
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 }