Module:Val/units: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Cpiral fix uM |
meta>Cpiral wikilink version, with top comments; thoroughly tested, but units themselves not polished yet |
||
Line 1: | Line 1: | ||
-- Definitions for units known to val | -- 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 ... ]=]. | ||
-- There must be a blank line before the first | -- First string, builtin_units, is short-scale, second string is long scale. | ||
-- Unit code | |||
-- 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 = [=[ | local builtin_units = [=[ | ||
Line 10: | Line 41: | ||
Foo [[Hz|<samp>Foo</samp>]] | Foo [[Hz|<samp>Foo</samp>]] | ||
Baz [[Hertz|baz<sub>0</sub>]] | Baz [[Hertz|baz<sub>0</sub>]] | ||
Bar bar<abbr title="super duper">0</abbr> | Bar [[Foobar|bar<abbr title="super duper">0</abbr>]] | ||
quux [[Foobar|<span title="super duper 2">bar0</span>]] | |||
== Unsorted units == | == Unsorted units == | ||
c0 ''c''<sub>0</sub> | c0 [[Speed of light#Numerical value, notation, and units|''c''<sub>0</sub>]] | ||
lbf | lbf [[Pound (force)|<span title="pound-force">lb<sub>F</sub></span> ]] | ||
C/mol [[Faraday constant|C/mol]] | |||
C/mol | C.mol-1 [[Faraday constant|C⋅mol<sup>−1</sup>]] | ||
C.mol-1 | C/kg [[Roentgen (unit)|C/kg]] | ||
C/kg | C.kg-1 [[Roentgen (unit)|C⋅kg<sup>−1</sup>]] | ||
C.kg-1 | F.m-1 [[vacuum permittivity|F⋅m<sup>−1</sup>]] | ||
F.m-1 | F/m [[vacuum permittivity|F/m]] | ||
F/m | e [[Elementary charge|''e'']] | ||
e | |||
== Time and frequency == | == Time and frequency == | ||
byte | byte [[Byte|byte]] 8 | ||
byte/s | byte/s [[Bytes per second|byte/s]] 8 | ||
kB/s | kB/s [[Bytes per second|kB/s]] 8e3 | ||
MB/s | MB/s [[Bytes per second|MB/s]] 8e6 | ||
GB/s | GB/s [[Bytes per second|GB/s]] 8e9 | ||
TB/s | TB/s [[Bytes per second|TB/s]] 8e12 | ||
bit/s | bit/s [[Bit per second|bit/s]] 1 | ||
bps [[Bit per second|bit/s]] 1 | |||
kbit/s | kbit/s [[Kilobit per second|kbit/s]] 1e3 | ||
Mbit/s | Mbit/s [[Megabit per second|Mbit/s]] 1e6 | ||
Gbit/s | Gbit/s [[Gigabit per second|Gbit/s]] 1e9 | ||
Tbit/s | Tbit/s [[Terabit per second|Tbit/s]] 1e12 | ||
year | year [[Year|year]] 31557600 | ||
years | years [[Year|years]] 31557600 | ||
yr | yr [[Year#Symbols y and yr|yr]] 31557600 | ||
y | y [[Year|y]] 31557600 | ||
a | a [[Annum|a]] 31557600 | ||
Ga | Ga [[Gigaannum|Ga]] 31557600000000000 | ||
Ma | Ma [[Megaannum|Ma]] 31557600000000 | ||
ka | ka [[Kiloannum|ka]] 31557600000 | ||
kyr | kyr [[kyr|kyr]] 31557600000 | ||
kya | kya [[kyr|kya]] 31557600000 | ||
myr | myr [[myr|myr]] 31557600000000 | ||
mya | mya [[Mya (unit)|mya]] 31557600000000 | ||
byr | byr [[Billion years|byr]] 31557600000000000 | ||
bya | bya [[Billion years ago|bya]] 31557600000000000 | ||
Gyr | Gyr [[Year#SI prefix multipliers|Ga]] 31557600000000000 | ||
BP | BP [[Before present|BP]] | ||
uBP | uBP [[Radiocarbon dating#Calibration|<sup>14</sup>C yr BP]] | ||
BC | BC [[Before Christ|BC]] -1 | ||
AD | AD [[Anno Domini|AD]] 1 | ||
BCE | BCE [[Before the Common Era|BCE]] -1 | ||
CE | CE [[Common Era|CE]] 1 | ||
s-1 | s-1 [[Second|s<sup>−1</sup>]] | ||
s-2 | s-2 [[Second|s<sup>−2</sup>]] | ||
s2 | s2 [[Second|s<sup>2</sup>]] | ||
s | s [[Second|s]] SI | ||
as | as [[Attosecond|as]] SI | ||
cs | cs [[Second|cs]] SI | ||
das | das [[Second|das]] SI | ||
ds | ds [[Second|ds]] SI | ||
Es | Es [[Second|Es]] SI | ||
fs | fs [[Femtosecond|fs]] SI | ||
Gs | Gs [[Second|Gs]] SI | ||
hs | hs [[Second|hs]] SI | ||
ks | ks [[Second|ks]] SI | ||
ms | ms [[Millisecond|ms]] SI | ||
µs | µs [[Microsecond|µs]] SI | ||
mus | mus [[Microsecond|mus]] SI | ||
Ms | Ms [[Second|Ms]] SI | ||
ns | ns [[Nanosecond|ns]] SI | ||
ps | ps [[Picosecond|ps]] SI | ||
Ps | Ps [[Second|Ps]] SI | ||
Ts | Ts [[Second|Ts]] SI | ||
Ys | Ys [[Second|Ys]] SI | ||
ys | ys [[Yoctosecond|ys]] SI | ||
Zs | Zs [[Second|Zs]] SI | ||
zs | zs [[Zeptosecond|zs]] SI | ||
Hz | Hz [[Hertz|Hz]] SI | ||
aHz | aHz [[Hertz|aHz]] SI | ||
cHz | cHz [[Hertz|cHz]] SI | ||
daHz | daHz [[Hertz|daHz]] SI | ||
dHz | dHz [[Hertz|dHz]] SI | ||
EHz | EHz [[Hertz|EHz]] SI | ||
fHz | fHz [[Hertz|fHz]] SI | ||
hHz | hHz [[Hertz|hHz]] SI | ||
GHz | GHz [[Gigahertz|GHz]] SI | ||
kHz | kHz [[Kilohertz|kHz]] SI | ||
MHz | MHz [[Megahertz|MHz]] SI | ||
mHz | mHz [[Hertz|mHz]] SI | ||
muHz | muHz [[Hertz|muHz]] SI | ||
µHz | µHz [[Hertz|µHz]] SI | ||
nHz | nHz [[Hertz|nHz]] SI | ||
pHz | pHz [[Hertz|pHz]] SI | ||
PHz | PHz [[Hertz|PHz]] SI | ||
THz | THz [[Hertz|THz]] SI | ||
yHz | yHz [[Hertz|yHz]] SI | ||
YHz | YHz [[Hertz|YHz]] SI | ||
zHz | zHz [[Hertz|zHz]] SI | ||
ZHz | ZHz [[Hertz|ZHz]] SI | ||
== Length, area, volume == | == Length, area, volume == | ||
fb-1 | fb-1 [[Barn (unit)|fb<sup>−1</sup>]] | ||
mas | mas [[Milliarcsecond|mas]] pi/648000000 | ||
m-1 | m-1 [[Metre|m<sup>−1</sup>]] | ||
m-2 | m-2 [[Square metre|m<sup>−2</sup>]] | ||
m-3 | m-3 [[Cubic metre|m<sup>−3</sup>]] | ||
km2 | km2 [[Square kilometre|km<sup>2</sup>]] | ||
km3 | km3 [[Cubic kilometre|km<sup>3</sup>]] | ||
m | m [[Metre|m]] | ||
meter | meter [[Metre|m]] | ||
metre | metre [[Metre|m]] | ||
am | am [[Metre|am]] | ||
cm | cm [[Centimetre|cm]] | ||
dam | dam [[Decametre|dam]] | ||
dm | dm [[Decimetre|dm]] | ||
Em | Em [[Metre|Em]] | ||
fm | fm [[Metre|fm]] | ||
Gm | Gm [[Metre|Gm]] | ||
hm | hm [[Hectometre|hm]] | ||
km | km [[Kilometre|km]] | ||
Mm | Mm [[Megametre|Mm]] | ||
mm | mm [[Millimetre|mm]] | ||
mum | mum [[Micrometre|µm]] | ||
µm | µm [[Micrometre|µm]] | ||
nm | nm [[Nanometre|nm]] | ||
Pm | Pm [[Metre|Pm]] | ||
pm | pm [[Picometre|pm]] | ||
Tm | Tm [[Metre|Tm]] | ||
Ym | Ym [[Metre|Ym]] | ||
ym | ym [[Metre|ym]] | ||
Zm | Zm [[Metre|Zm]] | ||
zm | zm [[Metre|zm]] | ||
µm2 | µm2 [[Square metre|µm<sup>2</sup>]] | ||
am2 [[Square metre|am<sup>2</sup>]] | |||
cm2 | cm2 [[Square centimetre|cm<sup>2</sup>]] | ||
dam2 | 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 | gal [[Gallon|gal]] | ||
Gal | Gal [[Gal (unit)|Gal]] | ||
muGal | muGal [[Gal (unit)|µGal]] | ||
µGal | µGal [[Gal (unit)|µGal]] | ||
mGal | mGal [[Gal (unit)|mGal]] | ||
== Velocity and acceleration == | == Velocity and acceleration == | ||
m/s2 | m/s2 [[Metre per second squared|m/s<sup>2</sup>]] | ||
m.s-2 | m.s-2 [[Metre per second squared|m⋅s<sup>−2</sup>]] | ||
m/s | m/s [[Metre per second|m/s]] | ||
m.s-1 | m.s-1 [[Metre per second|m⋅s<sup>−1</sup>]] | ||
== Mass and energy == | == Mass and energy == | ||
lbm | lbm [[Pound (mass)|<span title="pound-mass">lb<sub>m</sub></span>]] | ||
muJ | muJ [[Joule|µJ]] | ||
J.s | J.s [[Joule-second|J⋅s]] | ||
kWh | kWh [[Kilowatt hour|kWh]] | ||
kW.h | kW.h [[Kilowatt hour|kW⋅h]] | ||
kW·h [[Kilowatt hour|kW⋅h]] | |||
J/C | J/C [[Volt|J/C]] | ||
J/kg | J/kg [[Joule|J/kg]] | ||
g | g [[Gram|g]] SI | ||
ag | ag [[Attogram|ag]] SI | ||
cg | cg [[Centigram|cg]] SI | ||
dag | dag [[Gram|dag]] SI | ||
dg | dg [[Decigram|dg]] SI | ||
Eg | Eg [[Exagram|Eg]] SI | ||
fg | fg [[Femtogram|fg]] SI | ||
Gg | Gg [[Gigagram|Gg]] SI | ||
hg | hg [[Hectogram|hg]] SI | ||
kg | kg [[Kilogram|kg]] SI | ||
mcg | mcg [[Microgram|mcg]] SI | ||
Mg | Mg [[Megagram|Mg]] SI | ||
mg | mg [[Milligram|mg]] SI | ||
mug | mug [[Microgram|mug]] SI | ||
µg | µg [[Microgram|µg]] SI | ||
ng | ng [[Nanogram|ng]] SI | ||
Pg | Pg [[Petagram|Pg]] SI | ||
pg | pg [[Picogram|pg]] SI | ||
Tg | Tg [[Tonne|Tg]] SI | ||
yg | yg [[Yoctogram|yg]] SI | ||
Yg | Yg [[Yottagram|Yg]] SI | ||
zg | zg [[Zeptogram|zg]] SI | ||
Zg | Zg [[Zettagram|Zg]] SI | ||
== Pressure and density == | == Pressure and density == | ||
psi | psi [[Pounds per square inch|psi]] | ||
g/cm3 | g/cm3 [[Gram per cubic centimetre|g/cm<sup>3</sup>]] | ||
kg/m3 | kg/m3 [[Kilogram per cubic metre|kg/m<sup>3</sup>]] | ||
kg/cm3 | kg/cm3 [[Density#Formula and common units|kg/cm<sup>3</sup>]] | ||
g/L | g/L [[Gram per litre|g/L]] | ||
g/l | g/l [[Gram per litre|g/L]] | ||
mcg/dL | mcg/dL [[Gram per litre|µg/dL]] | ||
mcg/dl | mcg/dl [[Gram per litre|µg/dL]] | ||
mg/mL | mg/mL [[Gram per litre|mg/mL]] | ||
mg/ml [[Gram per litre|mg/mL]] | |||
mug/dL | mug/dL [[Gram per litre|µg/dL]] | ||
mug/dl | mug/dl [[Gram per litre|µg/dL]] | ||
μg/dL [[Gram per litre|μg/dL]] | |||
μg/dl | μg/dl [[Gram per litre|μg/dL]] | ||
mg/Ll | mg/Ll [[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 228: | Line 259: | ||
== Temperature == | == Temperature == | ||
degC | degC °C ALIAS | ||
degF | degF °F ALIAS | ||
degR | degR °R ALIAS | ||
K | K [[Kelvin|K]] SI | ||
YK | YK [[Yottakelvin|YK]] SI | ||
ZK | ZK [[Zettakelvin|ZK]] SI | ||
EK | EK [[Kelvin|EK]] SI | ||
PK | PK [[Petakelvin|PK]] SI | ||
TK | TK [[Terakelvin|TK]] SI | ||
GK | GK [[Gigakelvin|GK]] SI | ||
MK | MK [[Megakelvin|MK]] SI | ||
kK | kK [[Kilokelvin|kK]] SI | ||
hK | hK [[Hectokelvin|hK]] SI | ||
daK | daK [[Decakelvin|daK]] SI | ||
dK | dK [[Decikelvin|dK]] SI | ||
cK | cK [[Centikelvin|cK]] SI | ||
mK | mK [[Millikelvin|mK]] SI | ||
µK | µK [[Microkelvin|µK]] SI | ||
uK | uK [[Microkelvin|uK]] SI | ||
nK | nK [[Nanokelvin|nK]] SI | ||
pK | pK [[Picokelvin|pK]] SI | ||
fK | fK [[Femtokelvin|fK]] SI | ||
aK | aK [[Attokelvin|aK]] SI | ||
zK | zK [[Zeptokelvin|zK]] SI | ||
yK | yK [[Yoctokelvin|yK]] SI | ||
== Electromagnetism == | == Electromagnetism == | ||
Wb | Wb [[Weber (unit)|Wb]] | ||
N.A-2 | N.A-2 [[Permeability (electromagnetism)|N⋅A<sup>−2</sup>]] | ||
H.m-1 | H.m-1 [[Permeability (electromagnetism)|H·m<sup>−1</sup>]] | ||
V/m | V/m [[Electric field|V/m]] | ||
V.m-1 | V.m-1 [[Electric field|V⋅m<sup>−1</sup>]] | ||
C | C [[Coulomb|C]] SI | ||
YC | YC [[Coulomb|YC]] SI | ||
ZC | ZC [[Coulomb|ZC]] SI | ||
EC | EC [[Coulomb|EC]] SI | ||
PC | PC [[Coulomb|PC]] SI | ||
TC | TC [[Coulomb|TC]] SI | ||
GC | GC [[Coulomb|GC]] SI | ||
MC | MC [[Coulomb|MC]] SI | ||
kC | kC [[Coulomb|kC]] SI | ||
hC | hC [[Coulomb|hC]] SI | ||
daC | daC [[Coulomb|daC]] SI | ||
dC | dC [[Coulomb|dC]] SI | ||
cC | cC [[Coulomb|cC]] SI | ||
mC | mC [[Coulomb|mC]] SI | ||
µC | µC [[Coulomb|µC]] SI | ||
uC | uC [[Coulomb|uC]] SI | ||
nC | nC [[Coulomb|nC]] SI | ||
pC | pC [[Coulomb|pC]] SI | ||
fC | fC [[Coulomb|fC]] SI | ||
aC | aC [[Coulomb|aC]] SI | ||
zC | zC [[Coulomb|zC]] SI | ||
yC | yC [[Coulomb|yC]] SI | ||
F | F [[Farad|F]] SI | ||
YF | YF [[Farad|YF]] SI | ||
ZF | ZF [[Farad|ZF]] SI | ||
EF | EF [[Farad|EF]] SI | ||
PF | PF [[Farad|PF]] SI | ||
TF | TF [[Farad|TF]] SI | ||
GF | GF [[Farad|GF]] SI | ||
MF | MF [[Farad|MF]] SI | ||
kF | kF [[Farad|kF]] SI | ||
hF | hF [[Farad|hF]] SI | ||
daF | daF [[Farad|daF]] SI | ||
dF | dF [[Farad|dF]] SI | ||
cF | cF [[Farad|cF]] SI | ||
mF | mF [[Farad|mF]] SI | ||
µF | µF [[Farad|µF]] SI | ||
uF | uF [[Farad|uF]] SI | ||
nF | nF [[Farad|nF]] SI | ||
pF | pF [[Farad|pF]] SI | ||
fF | fF [[Farad|fF]] SI | ||
aF | aF [[Farad|aF]] SI | ||
zF | zF [[Farad|zF]] SI | ||
yF | yF [[Farad|yF]] SI | ||
H | H [[Henry (unit)|H]] SI | ||
YH | YH [[Henry (unit)|YH]] SI | ||
ZH | ZH [[Henry (unit)|ZH]] SI | ||
EH | EH [[Henry (unit)|EH]] SI | ||
PH | PH [[Henry (unit)|PH]] SI | ||
TH | TH [[Henry (unit)|TH]] SI | ||
GH | GH [[Henry (unit)|GH]] SI | ||
MH | MH [[Henry (unit)|MH]] SI | ||
kH | kH [[Henry (unit)|kH]] SI | ||
hH | hH [[Henry (unit)|hH]] SI | ||
daH | daH [[Henry (unit)|daH]] SI | ||
dH | dH [[Henry (unit)|dH]] SI | ||
cH | cH [[Henry (unit)|cH]] SI | ||
mH | mH [[Henry (unit)|mH]] SI | ||
µH | µH [[Henry (unit)|µH]] SI | ||
uH | uH [[Henry (unit)|uH]] SI | ||
nH | nH [[Henry (unit)|nH]] SI | ||
pH | pH [[Henry (unit)|pH]] SI | ||
fH | fH [[Henry (unit)|fH]] SI | ||
aH | aH [[Henry (unit)|aH]] SI | ||
zH | zH [[Henry (unit)|zH]] SI | ||
yH | yH [[Henry (unit)|yH]] SI | ||
A | A [[Ampere|A]] SI | ||
YA | YA [[Ampere|YA]] SI | ||
ZA | ZA [[Ampere|ZA]] SI | ||
EA | EA [[Ampere|EA]] SI | ||
PA | PA [[Ampere|PA]] SI | ||
TA | TA [[Ampere|TA]] SI | ||
GA | GA [[Ampere|GA]] SI | ||
MA | MA [[Ampere|MA]] SI | ||
kA | kA [[Ampere|kA]] SI | ||
hA | hA [[Ampere|hA]] SI | ||
daA | daA [[Ampere|daA]] SI | ||
dA | dA [[Ampere|dA]] SI | ||
cA | cA [[Ampere|cA]] SI | ||
mA | mA [[Ampere|mA]] SI | ||
µA | µA [[Ampere|µA]] SI | ||
uA | uA [[Ampere|uA]] SI | ||
nA | nA [[Ampere|nA]] SI | ||
pA | pA [[Ampere|pA]] SI | ||
fA | fA [[Ampere|fA]] SI | ||
aA | aA [[Ampere|aA]] SI | ||
zA | zA [[Ampere|zA]] SI | ||
yA | yA [[Ampere|yA]] SI | ||
V | V [[Volt|V]] SI | ||
YV | YV [[Volt|YV]] SI | ||
ZV | ZV [[Volt|ZV]] SI | ||
EV | EV [[Volt|EV]] SI | ||
PV | PV [[Volt|PV]] SI | ||
TV | TV [[Volt|TV]] SI | ||
GV | GV [[Volt|GV]] SI | ||
MV | MV [[Volt|MV]] SI | ||
kV | kV [[Volt|kV]] SI | ||
hV | hV [[Volt|hV]] SI | ||
daV | daV [[Volt|daV]] SI | ||
dV | dV [[Volt|dV]] SI | ||
cV | cV [[Volt|cV]] SI | ||
mV | mV [[Volt|mV]] SI | ||
µV | µV [[Volt|µV]] SI | ||
uV | uV [[Volt|uV]] SI | ||
nV | nV [[Volt|nV]] SI | ||
pV | pV [[Volt|pV]] SI | ||
fV | fV [[Volt|fV]] SI | ||
aV | aV [[Volt|aV]] SI | ||
zV | zV [[Volt|zV]] SI | ||
yV | yV [[Volt|yV]] SI | ||
R | R [[Rayleigh (unit)|R]] SI | ||
G | G [[Gauss (unit)|G]] SI | ||
aG | aG [[Attogauss|aG]] SI | ||
cG | cG [[Centigauss|cG]] SI | ||
daG | daG [[Decagauss|daG]] SI | ||
dG | dG [[Decigauss|dG]] SI | ||
EG | EG [[Exagauss|EG]] SI | ||
fG | fG [[Femtogauss|fG]] SI | ||
GG | GG [[Gigagauss|GG]] SI | ||
hG | hG [[Hectogauss|hG]] SI | ||
kG | kG [[Kilogauss|kG]] SI | ||
MG | MG [[Megagauss|MG]] SI | ||
mG | mG [[Milligauss|mG]] SI | ||
muG | muG [[Microgauss|muG]] SI | ||
µG | µG [[Microgauss|µG]] SI | ||
nG | nG [[Nanogauss|nG]] SI | ||
PG | PG [[Petagauss|PG]] SI | ||
pG | pG [[Picogauss|pG]] SI | ||
TG | TG [[Teragauss|TG]] SI | ||
yG | yG [[Yoctogauss|yG]] SI | ||
YG | YG [[Yottagauss|YG]] SI | ||
zG | zG [[Zeptogauss|zG]] SI | ||
ZG | ZG [[Zettagauss|ZG]] SI | ||
T | T [[Tesla (unit)|T]] SI | ||
aT | aT [[Attotesla|aT]] SI | ||
cT | cT [[Centitesla|cT]] SI | ||
daT | daT [[Decatesla|daT]] SI | ||
dT | dT [[Decitesla|dT]] SI | ||
ET | ET [[Exatesla|ET]] SI | ||
fT | fT [[Femtotesla|fT]] SI | ||
GT | GT [[Gigatesla|GT]] SI | ||
hT | hT [[Hectotesla|hT]] SI | ||
kT | kT [[Kilotesla|kT]] SI | ||
MT | MT [[Megatesla|MT]] SI | ||
mT | mT [[Millitesla|mT]] SI | ||
muT | muT [[Microtesla|muT]] SI | ||
µT | µT [[Microtesla|µT]] SI | ||
nT | nT [[Nanotesla|nT]] SI | ||
PT | PT [[Petatesla|PT]] SI | ||
pT | pT [[Picotesla|pT]] SI | ||
TT | TT [[Teratesla|TT]] SI | ||
yT | yT [[Yoctotesla|yT]] SI | ||
YT | YT [[Yottatesla|YT]] SI | ||
zT | zT [[Zeptotesla|zT]] SI | ||
ZT | ZT [[Zettatesla|ZT]] SI | ||
== Astrophysics == | == Astrophysics == | ||
au | au [[Astronomical unit|au]] | ||
c | c [[Speed of light|''c'']] | ||
ly | ly [[Light-year|ly]] | ||
Earth mass | Earth mass [[Earth mass|''M''<sub>⊕</sub>]] | ||
Earth radius | Earth radius [[Earth radius|''R''<sub>⊕</sub>]] | ||
M_Earth | M_Earth [[Earth mass|''M''<sub>⊕</sub>]] | ||
R_Earth | R_Earth [[Earth radius|''R''<sub>⊕</sub>]] | ||
Jupiter mass | Jupiter mass [[Jupiter mass|''M''<sub>J</sub>]] | ||
Jupiter radius | Jupiter radius [[Jupiter radius|''R''<sub>J</sub>]] | ||
M_Jupiter | M_Jupiter [[Jupiter mass|''M''<sub>J</sub>]] | ||
R_Jupiter | R_Jupiter [[Jupiter radius|''R''<sub>J</sub>]] | ||
Solar mass | Solar mass [[Solar mass|''M''<sub>☉</sub>]] | ||
solar mass | solar mass [[Solar mass|''M''<sub>☉</sub>]] | ||
M_Solar [[Solar mass|''M''<sub>☉</sub>]] | |||
M_solar [[Solar mass|''M''<sub>☉</sub>]] | |||
R_Solar | R_Solar [[Solar radius|''R''<sub>☉</sub>]] | ||
R_solar [[Solar radius|''R''<sub>☉</sub>]] | |||
Solar radius | Solar radius [[Solar radius|''R''<sub>☉</sub>]] | ||
solar radius | solar radius [[Solar radius|''R''<sub>☉</sub>]] | ||
Solar luminosity | Solar luminosity [[Solar luminosity|''L''<sub>☉</sub>]] | ||
solar luminosity | solar luminosity [[Solar luminosity|''L''<sub>☉</sub>]] | ||
L_solar [[Solar luminosity|''L''<sub>☉</sub>]] | |||
L_Solar [[Solar luminosity|''L''<sub>☉</sub>]] | |||
pc2 | pc2 [[Parsec|pc<sup>2</sup>]] | ||
pc3 | pc3 [[Parsec|pc<sup>3</sup>]] | ||
kpc2 | 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 | Gpc [[Parsec#Megaparsecs and gigaparsecs|Gpc]] | ||
== Nuclear Physics and Chemistry == | == Nuclear Physics and Chemistry == | ||
cm-1 | cm-1 [[Wavenumber|cm<sup>−1</sup>]] | ||
u | u [[Atomic mass unit|u]] | ||
osmol | osmol [[Osmole (unit)|osmol]] | ||
Osm | Osm [[Osmole (unit)|Osm]] | ||
M [[Molarity|M]] | M [[Molarity|M]] | ||
TM [[Molarity|TM]] SI | TM [[Molarity|TM]] SI | ||
Line 479: | Line 510: | ||
nM [[Molarity|nM]] SI | nM [[Molarity|nM]] SI | ||
pM [[Molarity|pM]] SI | pM [[Molarity|pM]] SI | ||
kg/mol | kg/mol [[Molar mass|kg/mol]] | ||
kg.mol-1 | kg.mol-1 [[Molar mass|kg⋅mol<sup>−1</sup>]] | ||
g/mol | g/mol [[Molar mass|g/mol]] | ||
g.mol-1 | g.mol-1 [[Molar mass|g⋅mol<sup>−1</sup>]] | ||
eV/c2 | eV/c2 [[Electronvolt#Mass|eV/''c''<sup>2</sup>]] | ||
keV/c2 | keV/c2 [[Electronvolt#Mass|keV/''c''<sup>2</sup>]] | ||
MeV/c2 | MeV/c2 [[Electronvolt#Mass|MeV/''c''<sup>2</sup>]] | ||
GeV/c2 | GeV/c2 [[Electronvolt#Mass|GeV/''c''<sup>2</sup>]] | ||
TeV/c2 | TeV/c2 [[Electronvolt#Mass|TeV/''c''<sup>2</sup>]] | ||
µN | µ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 | µ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 | eV [[Electronvolt|eV]] | ||
mev | mev [[Electronvolt|meV]] | ||
keV | keV [[Electronvolt|keV]] | ||
MeV | MeV [[Electronvolt|MeV]] | ||
GeV | GeV [[Electronvolt|GeV]] | ||
TeV | TeV [[Electronvolt|TeV]] | ||
J/mol | J/mol [[Joule per mole|J/mol]] | ||
J.mol-1 | J.mol-1 [[Joule per mole|J⋅mol<sup>−1</sup>]] | ||
kJ.mol-1 | kJ.mol-1 [[Joule per mole|kJ⋅mol<sup>−1</sup>]] | ||
kJ/mol | kJ/mol [[Joule per mole|kJ/mol]] | ||
MJ.mol-1 | MJ.mol-1 [[Joule per mole|MJ⋅mol<sup>−1</sup>]] | ||
MJ/mol | MJ/mol [[Joule per mole|MJ/mol]] | ||
GJ/mol [[Joule per mole|GJ/mol]] | |||
GJ.mol-1 | GJ.mol-1 [[Joule per mole|GJ⋅mol<sup>−1</sup>]] | ||
TJ.mol-1 | TJ.mol-1 [[Joule per mole|TJ⋅mol<sup>−1</sup>]] | ||
TJ/mol | TJ/mol [[Joule per mole|TJ/mol]] | ||
== Numbers and phrases == | == Numbers and phrases == | ||
pp | pp [[Page (paper)|pp]] | ||
ppb | ppb [[Parts per billion|ppb]] 1e-9 | ||
ppm | ppm [[Parts per million|ppm]] 1e-6 | ||
billiard | billiard [[Orders of magnitude (numbers)#1015|billiard]] 1e15 | ||
billion | billion [[1,000,000,000|billion]] 1e9 | ||
billionth | billionth [[1,000,000,000|billionth]] 1e-9 | ||
billionths | billionths [[1,000,000,000|billionths]] 1e-9 | ||
decilliard | decilliard [[Orders of magnitude (numbers)#1063|decilliard]] 1e63 | ||
decillion | decillion [[Orders of magnitude (numbers)#1033|decillion]] 1e33 | ||
decillionth | decillionth [[Orders of magnitude (numbers)#1033|decillionth]] 1e-33 | ||
decillionths | decillionths [[Orders of magnitude (numbers)#1033|decillionths]] 1e-33 | ||
milliard | milliard [[1,000,000,000|milliard]] 1e9 | ||
million | million [[Million|million]] 1e6 | ||
millionth | millionth [[Million|millionth]] 1e-6 | ||
millionths | millionths [[Million|millionths]] 1e-6 | ||
nonilliard | nonilliard [[Orders of magnitude (numbers)#1057|nonilliard]] 1e57 | ||
nonillion | nonillion [[Orders of magnitude (numbers)#1030|nonillion]] 1e30 | ||
nonillionth | nonillionth [[Orders of magnitude (numbers)#1030|nonillionth]] 1e-30 | ||
nonillionths | nonillionths [[Orders of magnitude (numbers)#1030|nonillionths]] 1e-30 | ||
octilliard | octilliard [[Orders of magnitude (numbers)#1051|octilliard]] 1e51 | ||
octillion | octillion [[Orders of magnitude (numbers)#1027|octillion]] 1e27 | ||
octillionth | octillionth [[Orders of magnitude (numbers)#1027|octillionth]] 1e-27 | ||
octillionths | octillionths [[Orders of magnitude (numbers)#1027|octillionths]] 1e-27 | ||
quadrilliard | quadrilliard [[Orders of magnitude (numbers)#1027|quadrilliard]] 1e27 | ||
quadrillion | quadrillion [[Orders of magnitude (numbers)#1015|quadrillion]] 1e15 | ||
quadrillionth | quadrillionth [[Orders of magnitude (numbers)#1015|quadrillionth]] 1e-15 | ||
quadrillionths | quadrillionths [[Orders of magnitude (numbers)#1015|quadrillionths]] 1e-15 | ||
quintilliard | quintilliard [[Orders of magnitude (numbers)#1033|quintilliard]] 1e33 | ||
quintillion | quintillion [[Orders of magnitude (numbers)#1018|quintillion]] 1e18 | ||
quintillionth | quintillionth [[Orders of magnitude (numbers)#1018|quintillionth]] 1e-18 | ||
quintillionths | quintillionths [[Orders of magnitude (numbers)#1018|quintillionths]] 1e-18 | ||
septilliard | septilliard [[Orders of magnitude (numbers)#1045|septilliard]] 1e45 | ||
septillion | septillion [[Orders of magnitude (numbers)#1024|septillion]] 1e24 | ||
septillionth | septillionth [[Orders of magnitude (numbers)#1024|septillionth]] 1e-24 | ||
septillionths | septillionths [[Orders of magnitude (numbers)#1024|septillionths]] 1e-24 | ||
sextilliard | sextilliard [[Orders of magnitude (numbers)#1039|sextilliard]] 1e39 | ||
sextillion | sextillion [[Orders of magnitude (numbers)#1021|sextillion]] 1e21 | ||
sextillionth | sextillionth [[Orders of magnitude (numbers)#1021|sextillionth]] 1e-21 | ||
sextillionths | sextillionths [[Orders of magnitude (numbers)#1021|sextillionths]] 1e-21 | ||
trilliard | trilliard [[Orders of magnitude (numbers)#1021|trilliard]] 1e21 | ||
trillion | trillion [[Orders of magnitude (numbers)#1012|trillion]] 1e12 | ||
trillionth | trillionth [[Orders of magnitude (numbers)#1012|trillionth]] 1e-12 | ||
trillionths | trillionths [[Orders of magnitude (numbers)#1012|trillionths]] 1e-12 | ||
== Angles == | == Angles == | ||
Line 578: | Line 609: | ||
-- If val has "|long scale=on" the following definitions are used | -- If val has "|long scale=on" the following definitions are used | ||
-- (then, if not found here, the normal definitions are used). | -- (then, if not found here, the normal definitions are used). | ||
-- Unit code | -- Unit code [[Link|Symbol]] Flags/Scale | ||
local builtin_units_long_scale = [=[ | local builtin_units_long_scale = [=[ | ||
== Long scale numbers and phrases == | == Long scale numbers and phrases == | ||
billion | billion [[Orders of magnitude (numbers)#1012|billion]] 1e12 | ||
billionth | billionth [[Orders of magnitude (numbers)#1012|billionth]] 1e-12 | ||
billionths | billionths [[Orders of magnitude (numbers)#1012|billionths]] 1e-12 | ||
decillion | decillion [[Orders of magnitude (numbers)#1060|decillion]] 1e60 | ||
decillionth | decillionth [[Orders of magnitude (numbers)#1060|decillionth]] 1e-60 | ||
decillionths | decillionths [[Orders of magnitude (numbers)#1060|decillionths]] 1e-60 | ||
nonillion | nonillion [[Orders of magnitude (numbers)#1054|nonillion]] 1e54 | ||
nonillionth | nonillionth [[Orders of magnitude (numbers)#1054|nonillionth]] 1e-54 | ||
nonillionths | nonillionths [[Orders of magnitude (numbers)#1054|nonillionths]] 1e-54 | ||
octillion | octillion [[Orders of magnitude (numbers)#1048|octillion]] 1e48 | ||
octillionth | octillionth [[Orders of magnitude (numbers)#1048|octillionth]] 1e-48 | ||
octillionths | octillionths [[Orders of magnitude (numbers)#1048|octillionths]] 1e-48 | ||
quadrillion | quadrillion [[Orders of magnitude (numbers)#1024|quadrillion]] 1e24 | ||
quadrillionth | quadrillionth [[Orders of magnitude (numbers)#1024|quadrillionth]] 1e-24 | ||
quadrillionths | quadrillionths [[Orders of magnitude (numbers)#1024|quadrillionths]] 1e-24 | ||
quintillion | quintillion [[Orders of magnitude (numbers)#1030|quintillion]] 1e30 | ||
quintillionth | quintillionth [[Orders of magnitude (numbers)#1030|quintillionth]] 1e-30 | ||
quintillionths | quintillionths [[Orders of magnitude (numbers)#1030|quintillionths]] 1e-30 | ||
septillion | septillion [[Orders of magnitude (numbers)#1042|septillion]] 1e42 | ||
septillionth | septillionth [[Orders of magnitude (numbers)#1042|septillionth]] 1e-42 | ||
septillionths | septillionths [[Orders of magnitude (numbers)#1042|septillionths]] 1e-42 | ||
sextillion | sextillion [[Orders of magnitude (numbers)#1036|sextillion]] 1e36 | ||
sextillionth | sextillionth [[Orders of magnitude (numbers)#1036|sextillionth]] 1e-36 | ||
sextillionths | sextillionths [[Orders of magnitude (numbers)#1036|sextillionths]] 1e-36 | ||
trillion | trillion [[Orders of magnitude (numbers)#1018|trillion]] 1e18 | ||
trillionth | trillionth [[Orders of magnitude (numbers)#1018|trillionth]] 1e-18 | ||
trillionths | trillionths [[Orders of magnitude (numbers)#1018|trillionths]] 1e-18 | ||
]=] | ]=] | ||
return { builtin_units = builtin_units, builtin_units_long_scale = builtin_units_long_scale } | return { builtin_units = builtin_units, builtin_units_long_scale = builtin_units_long_scale } |
Revision as of 04:25, 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
mus [[Microsecond|mus]] 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
muHz [[Hertz|muHz]] 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]]
mum [[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>]]
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]]
muGal [[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>]]
muJ [[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
mug [[Microgram|mug]] 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]]
mug/dL [[Gram per litre|µg/dL]]
mug/dl [[Gram per litre|µg/dL]]
μg/dL [[Gram per litre|μg/dL]]
μg/dl [[Gram per litre|μg/dL]]
mg/Ll [[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|uK]] 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|uC]] 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|uF]] 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)|uH]] 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|uA]] 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|uV]] 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
muG [[Microgauss|muG]] 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
muT [[Microtesla|muT]] 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 }