Module:Val/units: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Cpiral wikilink version, with top comments; thoroughly tested, but units themselves not polished yet |
meta>Cpiral fix Greek mu problem: use "u" not "mu" (using tlusage before removing "mu"), but keep mcg |
||
Line 106: | Line 106: | ||
ms [[Millisecond|ms]] SI | ms [[Millisecond|ms]] SI | ||
µs [[Microsecond|µs]] SI | µs [[Microsecond|µs]] SI | ||
us [[Microsecond|µs]] SI | |||
Ms [[Second|Ms]] SI | Ms [[Second|Ms]] SI | ||
ns [[Nanosecond|ns]] SI | ns [[Nanosecond|ns]] SI | ||
Line 129: | Line 129: | ||
MHz [[Megahertz|MHz]] SI | MHz [[Megahertz|MHz]] SI | ||
mHz [[Hertz|mHz]] SI | mHz [[Hertz|mHz]] SI | ||
uHz [[Hertz|µHz]] SI | |||
µHz [[Hertz|µHz]] SI | µHz [[Hertz|µHz]] SI | ||
nHz [[Hertz|nHz]] SI | nHz [[Hertz|nHz]] SI | ||
Line 162: | Line 162: | ||
Mm [[Megametre|Mm]] | Mm [[Megametre|Mm]] | ||
mm [[Millimetre|mm]] | mm [[Millimetre|mm]] | ||
um [[Micrometre|µm]] | |||
µm [[Micrometre|µm]] | µm [[Micrometre|µm]] | ||
nm [[Nanometre|nm]] | nm [[Nanometre|nm]] | ||
Line 173: | Line 173: | ||
zm [[Metre|zm]] | zm [[Metre|zm]] | ||
µm2 [[Square metre|µm<sup>2</sup>]] | µm2 [[Square metre|µm<sup>2</sup>]] | ||
um2 [[Square metre|µm<sup>2</sup>]] | |||
am2 [[Square metre|am<sup>2</sup>]] | am2 [[Square metre|am<sup>2</sup>]] | ||
cm2 [[Square centimetre|cm<sup>2</sup>]] | cm2 [[Square centimetre|cm<sup>2</sup>]] | ||
Line 193: | Line 194: | ||
gal [[Gallon|gal]] | gal [[Gallon|gal]] | ||
Gal [[Gal (unit)|Gal]] | Gal [[Gal (unit)|Gal]] | ||
uGal [[Gal (unit)|µGal]] | |||
µGal [[Gal (unit)|µGal]] | µGal [[Gal (unit)|µGal]] | ||
mGal [[Gal (unit)|mGal]] | mGal [[Gal (unit)|mGal]] | ||
Line 205: | Line 206: | ||
== Mass and energy == | == Mass and energy == | ||
lbm [[Pound (mass)|<span title="pound-mass">lb<sub>m</sub></span>]] | lbm [[Pound (mass)|<span title="pound-mass">lb<sub>m</sub></span>]] | ||
uJ [[Joule|µJ]] | |||
J.s [[Joule-second|J⋅s]] | J.s [[Joule-second|J⋅s]] | ||
kWh [[Kilowatt hour|kWh]] | kWh [[Kilowatt hour|kWh]] | ||
Line 226: | Line 227: | ||
Mg [[Megagram|Mg]] SI | Mg [[Megagram|Mg]] SI | ||
mg [[Milligram|mg]] SI | mg [[Milligram|mg]] SI | ||
ug [[Microgram|µg]] SI | |||
µg [[Microgram|µg]] SI | µg [[Microgram|µg]] SI | ||
ng [[Nanogram|ng]] SI | ng [[Nanogram|ng]] SI | ||
Line 248: | Line 249: | ||
mg/mL [[Gram per litre|mg/mL]] | mg/mL [[Gram per litre|mg/mL]] | ||
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]] | ||
μg/dl [[Gram per litre|μg/dL]] | μg/dl [[Gram per litre|μg/dL]] | ||
mg/ | mg/L [[Gram per litre|mg/dL]] | ||
mg/l [[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 [[Gram per litre|<abbr title="milligrams per liter">mg/L</abbr>]] | mg/L [[Gram per litre|<abbr title="milligrams per liter">mg/L</abbr>]] | ||
Line 278: | Line 279: | ||
mK [[Millikelvin|mK]] SI | mK [[Millikelvin|mK]] SI | ||
µK [[Microkelvin|µK]] SI | µK [[Microkelvin|µK]] SI | ||
uK [[Microkelvin| | uK [[Microkelvin|µK]] SI | ||
nK [[Nanokelvin|nK]] SI | nK [[Nanokelvin|nK]] SI | ||
pK [[Picokelvin|pK]] SI | pK [[Picokelvin|pK]] SI | ||
Line 308: | Line 309: | ||
mC [[Coulomb|mC]] SI | mC [[Coulomb|mC]] SI | ||
µC [[Coulomb|µC]] SI | µC [[Coulomb|µC]] SI | ||
uC [[Coulomb| | uC [[Coulomb|µC]] SI | ||
nC [[Coulomb|nC]] SI | nC [[Coulomb|nC]] SI | ||
pC [[Coulomb|pC]] SI | pC [[Coulomb|pC]] SI | ||
Line 331: | Line 332: | ||
mF [[Farad|mF]] SI | mF [[Farad|mF]] SI | ||
µF [[Farad|µF]] SI | µF [[Farad|µF]] SI | ||
uF [[Farad| | uF [[Farad|µF]] SI | ||
nF [[Farad|nF]] SI | nF [[Farad|nF]] SI | ||
pF [[Farad|pF]] SI | pF [[Farad|pF]] SI | ||
Line 354: | Line 355: | ||
mH [[Henry (unit)|mH]] SI | mH [[Henry (unit)|mH]] SI | ||
µH [[Henry (unit)|µH]] SI | µH [[Henry (unit)|µH]] SI | ||
uH [[Henry (unit)| | uH [[Henry (unit)|µH]] SI | ||
nH [[Henry (unit)|nH]] SI | nH [[Henry (unit)|nH]] SI | ||
pH [[Henry (unit)|pH]] SI | pH [[Henry (unit)|pH]] SI | ||
Line 377: | Line 378: | ||
mA [[Ampere|mA]] SI | mA [[Ampere|mA]] SI | ||
µA [[Ampere|µA]] SI | µA [[Ampere|µA]] SI | ||
uA [[Ampere| | uA [[Ampere|µA]] SI | ||
nA [[Ampere|nA]] SI | nA [[Ampere|nA]] SI | ||
pA [[Ampere|pA]] SI | pA [[Ampere|pA]] SI | ||
Line 400: | Line 401: | ||
mV [[Volt|mV]] SI | mV [[Volt|mV]] SI | ||
µV [[Volt|µV]] SI | µV [[Volt|µV]] SI | ||
uV [[Volt| | uV [[Volt|µV]] SI | ||
nV [[Volt|nV]] SI | nV [[Volt|nV]] SI | ||
pV [[Volt|pV]] SI | pV [[Volt|pV]] SI | ||
Line 422: | Line 423: | ||
MG [[Megagauss|MG]] SI | MG [[Megagauss|MG]] SI | ||
mG [[Milligauss|mG]] SI | mG [[Milligauss|mG]] SI | ||
uG [[Microgauss|µG]] SI | |||
µG [[Microgauss|µG]] SI | µG [[Microgauss|µG]] SI | ||
nG [[Nanogauss|nG]] SI | nG [[Nanogauss|nG]] SI | ||
Line 445: | Line 446: | ||
MT [[Megatesla|MT]] SI | MT [[Megatesla|MT]] SI | ||
mT [[Millitesla|mT]] SI | mT [[Millitesla|mT]] SI | ||
uT [[Microtesla|µT]] SI | |||
µT [[Microtesla|µT]] SI | µT [[Microtesla|µT]] SI | ||
nT [[Nanotesla|nT]] SI | nT [[Nanotesla|nT]] SI |
Revision as of 16:07, 16 August 2015
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.
--
-- 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>]]
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> ]]
C/mol [[Faraday constant|C/mol]]
C.mol-1 [[Faraday constant|C⋅mol<sup>−1</sup>]]
C/kg [[Roentgen (unit)|C/kg]]
C.kg-1 [[Roentgen (unit)|C⋅kg<sup>−1</sup>]]
F.m-1 [[vacuum permittivity|F⋅m<sup>−1</sup>]]
F/m [[vacuum permittivity|F/m]]
e [[Elementary charge|''e'']]
== Time and frequency ==
byte [[Byte|byte]] 8
byte/s [[Bytes per second|byte/s]] 8
kB/s [[Bytes per second|kB/s]] 8e3
MB/s [[Bytes per second|MB/s]] 8e6
GB/s [[Bytes per second|GB/s]] 8e9
TB/s [[Bytes per second|TB/s]] 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
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 [[Year#SI prefix multipliers|Ga]] 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
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|as]] SI
cs [[Second|cs]] SI
das [[Second|das]] SI
ds [[Second|ds]] SI
Es [[Second|Es]] SI
fs [[Femtosecond|fs]] SI
Gs [[Second|Gs]] SI
hs [[Second|hs]] SI
ks [[Second|ks]] SI
ms [[Millisecond|ms]] SI
µs [[Microsecond|µs]] SI
us [[Microsecond|µs]] SI
Ms [[Second|Ms]] SI
ns [[Nanosecond|ns]] SI
ps [[Picosecond|ps]] SI
Ps [[Second|Ps]] SI
Ts [[Second|Ts]] SI
Ys [[Second|Ys]] SI
ys [[Yoctosecond|ys]] SI
Zs [[Second|Zs]] SI
zs [[Zeptosecond|zs]] SI
Hz [[Hertz|Hz]] SI
aHz [[Hertz|aHz]] SI
cHz [[Hertz|cHz]] SI
daHz [[Hertz|daHz]] SI
dHz [[Hertz|dHz]] SI
EHz [[Hertz|EHz]] SI
fHz [[Hertz|fHz]] SI
hHz [[Hertz|hHz]] SI
GHz [[Gigahertz|GHz]] SI
kHz [[Kilohertz|kHz]] SI
MHz [[Megahertz|MHz]] SI
mHz [[Hertz|mHz]] SI
uHz [[Hertz|µHz]] SI
µHz [[Hertz|µHz]] SI
nHz [[Hertz|nHz]] SI
pHz [[Hertz|pHz]] SI
PHz [[Hertz|PHz]] SI
THz [[Hertz|THz]] SI
yHz [[Hertz|yHz]] SI
YHz [[Hertz|YHz]] SI
zHz [[Hertz|zHz]] SI
ZHz [[Hertz|ZHz]] SI
== Length, area, volume ==
fb-1 [[Barn (unit)|fb<sup>−1</sup>]]
mas [[Milliarcsecond|mas]] pi/648000000
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>]]
m [[Metre|m]]
meter [[Metre|m]]
metre [[Metre|m]]
am [[Metre|am]]
cm [[Centimetre|cm]]
dam [[Decametre|dam]]
dm [[Decimetre|dm]]
Em [[Metre|Em]]
fm [[Metre|fm]]
Gm [[Metre|Gm]]
hm [[Hectometre|hm]]
km [[Kilometre|km]]
Mm [[Megametre|Mm]]
mm [[Millimetre|mm]]
um [[Micrometre|µm]]
µm [[Micrometre|µm]]
nm [[Nanometre|nm]]
Pm [[Metre|Pm]]
pm [[Picometre|pm]]
Tm [[Metre|Tm]]
Ym [[Metre|Ym]]
ym [[Metre|ym]]
Zm [[Metre|Zm]]
zm [[Metre|zm]]
µ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]]
== Velocity and acceleration ==
m/s2 [[Metre per second squared|m/s<sup>2</sup>]]
m.s-2 [[Metre per second squared|m⋅s<sup>−2</sup>]]
m/s [[Metre per second|m/s]]
m.s-1 [[Metre per second|m⋅s<sup>−1</sup>]]
== Mass and energy ==
lbm [[Pound (mass)|<span title="pound-mass">lb<sub>m</sub></span>]]
uJ [[Joule|µJ]]
J.s [[Joule-second|J⋅s]]
kWh [[Kilowatt hour|kWh]]
kW.h [[Kilowatt hour|kW⋅h]]
kW·h [[Kilowatt hour|kW⋅h]]
J/C [[Volt|J/C]]
J/kg [[Joule|J/kg]]
g [[Gram|g]] SI
ag [[Attogram|ag]] SI
cg [[Centigram|cg]] SI
dag [[Gram|dag]] SI
dg [[Decigram|dg]] SI
Eg [[Exagram|Eg]] SI
fg [[Femtogram|fg]] SI
Gg [[Gigagram|Gg]] SI
hg [[Hectogram|hg]] SI
kg [[Kilogram|kg]] SI
mcg [[Microgram|mcg]] SI
Mg [[Megagram|Mg]] SI
mg [[Milligram|mg]] SI
ug [[Microgram|µg]] SI
µg [[Microgram|µg]] SI
ng [[Nanogram|ng]] SI
Pg [[Petagram|Pg]] SI
pg [[Picogram|pg]] SI
Tg [[Tonne|Tg]] SI
yg [[Yoctogram|yg]] SI
Yg [[Yottagram|Yg]] SI
zg [[Zeptogram|zg]] SI
Zg [[Zettagram|Zg]] SI
== Pressure and density ==
psi [[Pounds per square inch|psi]]
g/cm3 [[Gram per cubic centimetre|g/cm<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 [[Gram per litre|mg/dL]]
mg/l [[Gram per litre|<abbr title="milligrams per liter">mg/L</abbr>]]
mg/L [[Gram per litre|<abbr title="milligrams per liter">mg/L</abbr>]]
mgl-1 [[Gram per litre|<abbr title="milligrams per liter">mg/L</abbr>]]
mgL-1 [[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|YK]] SI
ZK [[Zettakelvin|ZK]] SI
EK [[Kelvin|EK]] SI
PK [[Petakelvin|PK]] SI
TK [[Terakelvin|TK]] SI
GK [[Gigakelvin|GK]] SI
MK [[Megakelvin|MK]] SI
kK [[Kilokelvin|kK]] SI
hK [[Hectokelvin|hK]] SI
daK [[Decakelvin|daK]] SI
dK [[Decikelvin|dK]] SI
cK [[Centikelvin|cK]] SI
mK [[Millikelvin|mK]] SI
µK [[Microkelvin|µK]] SI
uK [[Microkelvin|µK]] SI
nK [[Nanokelvin|nK]] SI
pK [[Picokelvin|pK]] SI
fK [[Femtokelvin|fK]] SI
aK [[Attokelvin|aK]] SI
zK [[Zeptokelvin|zK]] SI
yK [[Yoctokelvin|yK]] SI
== Electromagnetism ==
Wb [[Weber (unit)|Wb]]
N.A-2 [[Permeability (electromagnetism)|N⋅A<sup>−2</sup>]]
H.m-1 [[Permeability (electromagnetism)|H·m<sup>−1</sup>]]
V/m [[Electric field|V/m]]
V.m-1 [[Electric field|V⋅m<sup>−1</sup>]]
C [[Coulomb|C]] SI
YC [[Coulomb|YC]] SI
ZC [[Coulomb|ZC]] SI
EC [[Coulomb|EC]] SI
PC [[Coulomb|PC]] SI
TC [[Coulomb|TC]] SI
GC [[Coulomb|GC]] SI
MC [[Coulomb|MC]] SI
kC [[Coulomb|kC]] SI
hC [[Coulomb|hC]] SI
daC [[Coulomb|daC]] SI
dC [[Coulomb|dC]] SI
cC [[Coulomb|cC]] SI
mC [[Coulomb|mC]] SI
µC [[Coulomb|µC]] SI
uC [[Coulomb|µC]] SI
nC [[Coulomb|nC]] SI
pC [[Coulomb|pC]] SI
fC [[Coulomb|fC]] SI
aC [[Coulomb|aC]] SI
zC [[Coulomb|zC]] SI
yC [[Coulomb|yC]] SI
F [[Farad|F]] SI
YF [[Farad|YF]] SI
ZF [[Farad|ZF]] SI
EF [[Farad|EF]] SI
PF [[Farad|PF]] SI
TF [[Farad|TF]] SI
GF [[Farad|GF]] SI
MF [[Farad|MF]] SI
kF [[Farad|kF]] SI
hF [[Farad|hF]] SI
daF [[Farad|daF]] SI
dF [[Farad|dF]] SI
cF [[Farad|cF]] SI
mF [[Farad|mF]] SI
µF [[Farad|µF]] SI
uF [[Farad|µF]] SI
nF [[Farad|nF]] SI
pF [[Farad|pF]] SI
fF [[Farad|fF]] SI
aF [[Farad|aF]] SI
zF [[Farad|zF]] SI
yF [[Farad|yF]] SI
H [[Henry (unit)|H]] SI
YH [[Henry (unit)|YH]] SI
ZH [[Henry (unit)|ZH]] SI
EH [[Henry (unit)|EH]] SI
PH [[Henry (unit)|PH]] SI
TH [[Henry (unit)|TH]] SI
GH [[Henry (unit)|GH]] SI
MH [[Henry (unit)|MH]] SI
kH [[Henry (unit)|kH]] SI
hH [[Henry (unit)|hH]] SI
daH [[Henry (unit)|daH]] SI
dH [[Henry (unit)|dH]] SI
cH [[Henry (unit)|cH]] SI
mH [[Henry (unit)|mH]] SI
µH [[Henry (unit)|µH]] SI
uH [[Henry (unit)|µH]] SI
nH [[Henry (unit)|nH]] SI
pH [[Henry (unit)|pH]] SI
fH [[Henry (unit)|fH]] SI
aH [[Henry (unit)|aH]] SI
zH [[Henry (unit)|zH]] SI
yH [[Henry (unit)|yH]] SI
A [[Ampere|A]] SI
YA [[Ampere|YA]] SI
ZA [[Ampere|ZA]] SI
EA [[Ampere|EA]] SI
PA [[Ampere|PA]] SI
TA [[Ampere|TA]] SI
GA [[Ampere|GA]] SI
MA [[Ampere|MA]] SI
kA [[Ampere|kA]] SI
hA [[Ampere|hA]] SI
daA [[Ampere|daA]] SI
dA [[Ampere|dA]] SI
cA [[Ampere|cA]] SI
mA [[Ampere|mA]] SI
µA [[Ampere|µA]] SI
uA [[Ampere|µA]] SI
nA [[Ampere|nA]] SI
pA [[Ampere|pA]] SI
fA [[Ampere|fA]] SI
aA [[Ampere|aA]] SI
zA [[Ampere|zA]] SI
yA [[Ampere|yA]] SI
V [[Volt|V]] SI
YV [[Volt|YV]] SI
ZV [[Volt|ZV]] SI
EV [[Volt|EV]] SI
PV [[Volt|PV]] SI
TV [[Volt|TV]] SI
GV [[Volt|GV]] SI
MV [[Volt|MV]] SI
kV [[Volt|kV]] SI
hV [[Volt|hV]] SI
daV [[Volt|daV]] SI
dV [[Volt|dV]] SI
cV [[Volt|cV]] SI
mV [[Volt|mV]] SI
µV [[Volt|µV]] SI
uV [[Volt|µV]] SI
nV [[Volt|nV]] SI
pV [[Volt|pV]] SI
fV [[Volt|fV]] SI
aV [[Volt|aV]] SI
zV [[Volt|zV]] SI
yV [[Volt|yV]] SI
R [[Rayleigh (unit)|R]] SI
G [[Gauss (unit)|G]] SI
aG [[Attogauss|aG]] SI
cG [[Centigauss|cG]] SI
daG [[Decagauss|daG]] SI
dG [[Decigauss|dG]] SI
EG [[Exagauss|EG]] SI
fG [[Femtogauss|fG]] SI
GG [[Gigagauss|GG]] SI
hG [[Hectogauss|hG]] SI
kG [[Kilogauss|kG]] SI
MG [[Megagauss|MG]] SI
mG [[Milligauss|mG]] SI
uG [[Microgauss|µG]] SI
µG [[Microgauss|µG]] SI
nG [[Nanogauss|nG]] SI
PG [[Petagauss|PG]] SI
pG [[Picogauss|pG]] SI
TG [[Teragauss|TG]] SI
yG [[Yoctogauss|yG]] SI
YG [[Yottagauss|YG]] SI
zG [[Zeptogauss|zG]] SI
ZG [[Zettagauss|ZG]] SI
T [[Tesla (unit)|T]] SI
aT [[Attotesla|aT]] SI
cT [[Centitesla|cT]] SI
daT [[Decatesla|daT]] SI
dT [[Decitesla|dT]] SI
ET [[Exatesla|ET]] SI
fT [[Femtotesla|fT]] SI
GT [[Gigatesla|GT]] SI
hT [[Hectotesla|hT]] SI
kT [[Kilotesla|kT]] SI
MT [[Megatesla|MT]] SI
mT [[Millitesla|mT]] SI
uT [[Microtesla|µT]] SI
µT [[Microtesla|µT]] SI
nT [[Nanotesla|nT]] SI
PT [[Petatesla|PT]] SI
pT [[Picotesla|pT]] SI
TT [[Teratesla|TT]] SI
yT [[Yoctotesla|yT]] SI
YT [[Yottatesla|YT]] SI
zT [[Zeptotesla|zT]] SI
ZT [[Zettatesla|ZT]] 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>]]
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>☉</sub>]]
solar mass [[Solar mass|''M''<sub>☉</sub>]]
M_Solar [[Solar mass|''M''<sub>☉</sub>]]
M_solar [[Solar mass|''M''<sub>☉</sub>]]
R_Solar [[Solar radius|''R''<sub>☉</sub>]]
R_solar [[Solar radius|''R''<sub>☉</sub>]]
Solar radius [[Solar radius|''R''<sub>☉</sub>]]
solar radius [[Solar radius|''R''<sub>☉</sub>]]
Solar luminosity [[Solar luminosity|''L''<sub>☉</sub>]]
solar luminosity [[Solar luminosity|''L''<sub>☉</sub>]]
L_solar [[Solar luminosity|''L''<sub>☉</sub>]]
L_Solar [[Solar luminosity|''L''<sub>☉</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 [[Atomic mass unit|u]]
osmol [[Osmole (unit)|osmol]]
Osm [[Osmole (unit)|Osm]]
M [[Molarity|M]]
TM [[Molarity|TM]] SI
GM [[Molarity|GM]] SI
MM [[Molarity|MM]] SI
kM [[Molarity|kM]] SI
hM [[Molarity|hM]] SI
daM [[Molarity|daM]] SI
dM [[Molarity|dM]] SI
cM [[Molarity|cM]] SI
mM [[Molarity|mM]] SI
uM [[Molarity|µM]] 1e-6
nM [[Molarity|nM]] SI
pM [[Molarity|pM]] SI
kg/mol [[Molar mass|kg/mol]]
kg.mol-1 [[Molar mass|kg⋅mol<sup>−1</sup>]]
g/mol [[Molar mass|g/mol]]
g.mol-1 [[Molar mass|g⋅mol<sup>−1</sup>]]
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]]
J/mol [[Joule per mole|J/mol]]
J.mol-1 [[Joule per mole|J⋅mol<sup>−1</sup>]]
kJ.mol-1 [[Joule per mole|kJ⋅mol<sup>−1</sup>]]
kJ/mol [[Joule per mole|kJ/mol]]
MJ.mol-1 [[Joule per mole|MJ⋅mol<sup>−1</sup>]]
MJ/mol [[Joule per mole|MJ/mol]]
GJ/mol [[Joule per mole|GJ/mol]]
GJ.mol-1 [[Joule per mole|GJ⋅mol<sup>−1</sup>]]
TJ.mol-1 [[Joule per mole|TJ⋅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
]=]
-- 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 }