Zum Inhalt springen

Modul:Val/units

aus Wikipedia, der freien Enzyklopädie
Dies ist eine alte Version dieser Seite, zuletzt bearbeitet am 24. Juni 2018 um 12:40 Uhr durch Nov3rd17 (Diskussion | Beiträge) (Verlinkt mit :en: auf engl. Wikipedia). Sie kann sich erheblich von der aktuellen Version unterscheiden.

Die Dokumentation für dieses Modul kann unter Modul:Val/units/Doku erstellt werden

-- 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        [[:en: 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  [[:en:Hz|<samp>Foo</samp>]]
Baz  [[:en:Hertz|baz<sub>0</sub>]]
Baz  [[:en:Kelvins|baz<sub>0</sub>]]
Bar  [[:en:Foobar|bar<abbr title="super duper">0</abbr>]]
quux  [[:en:Foobar|<span title="super duper 2">bar0</span>]]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

== Nuclear physics and chemistry ==
cm-1  [[:en:Wavenumber|cm<sup>−1</sup>]]
u  [[:en:Unified atomic mass unit|u]]
osmol  [[:en:Osmole (unit)|osmol]]
Osm  [[:en:Osmole (unit)|Osm]]
M  [[:en:Molarity|M]]
TM  [[:en:Molarity|M]]  SI
GM  [[:en:Molarity|M]]  SI
MM  [[:en:Molarity|M]]  SI
kM  [[:en:Molarity|M]]  SI
hM  [[:en:Molarity|M]]  SI
daM  [[:en:Molarity|M]]  SI
dM  [[:en:Molarity|M]]  SI
cM  [[:en:Molarity|M]]  SI
mM  [[:en:Molarity|M]]  SI
uM  [[:en:Molarity|M]]  1e-6
nM  [[:en:Molarity|M]]  SI
pM  [[:en:Molarity|M]]  SI
kg/mol  [[:en:Molar mass|M]]
kg.mol-1  [[:en:Molar mass|kg&sdot;mol<sup>−1</sup>]]
g/mol  [[:en:Molar mass|g/mol]]
g.mol-1  [[:en:Molar mass|g&sdot;mol<sup>−1</sup>]]
eV/c2  [[:en:Electronvolt#Mass|eV/''c''<sup>2</sup>]]
keV/c2  [[:en:Electronvolt#Mass|keV/''c''<sup>2</sup>]]
MeV/c2  [[:en:Electronvolt#Mass|MeV/''c''<sup>2</sup>]]
GeV/c2  [[:en:Electronvolt#Mass|GeV/''c''<sup>2</sup>]]
TeV/c2  [[:en:Electronvolt#Mass|TeV/''c''<sup>2</sup>]]
µN  [[:en: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  [[:en: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  [[:en:Electronvolt|eV]]
mev  [[:en:Electronvolt|meV]]
keV  [[:en:Electronvolt|keV]]
MeV  [[:en:Electronvolt|MeV]]
GeV  [[:en:Electronvolt|GeV]]
TeV  [[:en:Electronvolt|TeV]]
mol-1  [[:en:Avogadro constant|mol<sup>−1</sup>]]
J/mol  [[:en:Joule per mole|J/mol]]
J.mol-1  [[:en:Joule per mole|J&sdot;mol<sup>−1</sup>]]
kJ.mol-1  [[:en:Joule per mole|kJ&sdot;mol<sup>−1</sup>]]
kJ/mol  [[:en:Joule per mole|kJ/mol]]
MJ.mol-1  [[:en:Joule per mole|MJ&sdot;mol<sup>−1</sup>]]
MJ/mol  [[:en:Joule per mole|MJ/mol]]
GJ/mol  [[:en:Joule per mole|GJ/mol]]
GJ.mol-1  [[:en:Joule per mole|GJ&sdot;mol<sup>−1</sup>]]
TJ.mol-1  [[:en:Joule per mole|TJ&sdot;mol<sup>−1</sup>]]
TJ/mol  [[:en:Joule per mole|TJ/mol]]

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

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

]=]

return { builtin_units = builtin_units, builtin_units_long_scale = builtin_units_long_scale }