Mô đun:Val/units

Có thể viết tài liệu về mô đun này tại Mô đun:Val/units/tài liệu.

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

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

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

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

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

local builtin_units = [=[

== Test ==
Foo  [[Hz|<samp>Foo</samp>]]
Baz  [[Hertz|baz<sub>0</sub>]]
Baz  [[Kelvin|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  [[Tốc độ ánh sáng|''c''<sub>0</sub>]]
lbf  [[Pound (lực)|<span title="pound-force">lb<sub>F</sub></span> ]]
N.s  [[Newton-giây|N&sdot;s]]
J.K-1  [[Joule trên kelvin|J&sdot;K<sup>−1</sup>]]
C.mol-1  [[Hằng số Faraday|C&sdot;mol<sup>−1</sup>]]
C/mol  [[Hằng số Faraday|C/mol]]
C.kg-1  [[Röntgen (đơn vị)|C&sdot;kg<sup>−1</sup>]]
C/kg  [[Röntgen (đơn vị)|C/kg]]
F.m-1  [[độ điện thẩm|F&sdot;m<sup>−1</sup>]]
F/m  [[độ điện thẩm|F/m]]
e  [[Điện tích cơ bản|''e'']]
kB  [[Kilobyte|kB]]  8e3
MB  [[Megabyte|MB]]  8e6
GB  [[Gigabyte|GB]]  8e9
TB  [[Terabyte|TB]]  8e12
lx  [[Lux (đơn vị)|lx]]
nat  [[nat (đơn vị)|nat]]

== Time and frequency ==
byte/s  [[Tốc độ dữ liệu|byte/s]]  8
kB/s  [[Tốc độ dữ liệu|<span title="Kilobyte trên giây">kB/s</span>]]  8e3
MB/s  [[Tốc độ dữ liệu|<span title="Megabyte trên giây">MB/s</span>]]  8e6
GB/s  [[Tốc độ dữ liệu|<span title="Gigabyte trên giây">GB/s</span>]]  8e9
TB/s  [[Tốc độ dữ liệu|<span title="Terabyte trên giây">TB/s</span>]]  8e12
bit/s  [[Bit trên giây|bit/s]]  1
bps  [[Bit per second|bit/s]]  1
kbit/s  [[Kilobit trên giây|kbit/s]]  1e3
Mbit/s  [[Megabit trên giây|Mbit/s]]  1e6
Gbit/s  [[Gigabit trên giây|Gbit/s]]  1e9
Tbit/s  [[Terabit trên giây|Tbit/s]]  1e12
kT/s  [[Transfer (máy tính)|<span title="Kilotransfer trên giây">kT/s</span>]]  1e3
MT/s  [[Transfer (máy tính)|<span title="Megatransfer trên giây">MT/s</span>]]  1e6
GT/s  [[Transfer (máy tính)|<span title="Gigatransfer trên giây">GT/s</span>]]  1e9
year  [[năm]]  31557600
years  [[năm]]  31557600
yr  [[năm|n]]  31557600
y  [[năm|n]]  31557600
a  [[Annum|a]]  31557600
Ga  [[Gigaannum|Ga]]  31557600000000000
Ma  [[Megaannum|Ma]]  31557600000000
ka  [[Kiloannum|ka]]  31557600000
kyr  [[Nghìn năm|kn]]  31557600000
kya  [[Nghìn năm|kn]]  31557600000
myr  [[Triệu năm|mn]]  31557600000000
mya  [[Triệu năm (đơn vị)|mn]]  31557600000000
byr  [[Tỷ năm|bn]]  31557600000000000
bya  [[Tỷ năm trước|bn]]  31557600000000000
Gyr  [[Tỷ năm|Gn]]  31557600000000000
BP  [[Trước|T]]
uBP  [[Định tuổi bằng cacbon-14|<sup>14</sup>C yr BP]]
BC  [[Trước Công nguyên|TCN]]  -1
AD  [[Anno Domini|AD]]  1
BCE  [[Before the Common Era|BCE]]  -1
CE  [[Common Era|CE]]  1
JD  [[Julian date|JD]]  1
MJD  [[Modified Julian date|MJD]]  1

s-1  [[giây|s<sup>−1</sup>]]
s-2  [[giây|s<sup>−2</sup>]]
s2  [[giây|s<sup>2</sup>]]

s  [[giây|s]]  SI
as  [[Attosecond|s]]  SI
cs  [[giây|s]]  SI
das  [[giây|s]]  SI
ds  [[giây|s]]  SI
Es  [[giây|s]]  SI
fs  [[Femtosecond|s]]  SI
Gs  [[giây|s]]  SI
hs  [[giây|s]]  SI
ks  [[giây|s]]  SI
ms  [[Mili giây|s]]  SI
µs  [[Micro giây|s]]  SI
us  [[Micro giây|s]]  SI
Ms  [[giây|s]]  SI
ns  [[Nano giây|s]]  SI
ps  [[Picosecond|s]]  SI
Ps  [[Second|s]]  SI
Ts  [[Second|s]]  SI
Ys  [[Second|s]]  SI
ys  [[Yoctosecond|s]]  SI
Zs  [[Second|s]]  SI
zs  [[Zeptosecond|s]]  SI

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

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

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

== Velocity and acceleration ==
m.s-2  [[Mét trên giây bình phương|m&sdot;s<sup>−2</sup>]]
m/s2  [[Mét trên giây bình phương|m/s<sup>2</sup>]]
m.s-1  [[Mét trên giây|m&sdot;s<sup>−1</sup>]]
m/s  [[Mét trên giây|m/s]]
km.s-1  [[Mét trên giây|km&sdot;s<sup>−1</sup>]]
km/s  [[Mét trên giây|km/s]]

== Mass and energy ==
lbm  [[Pound (khối lượng)|<span title="pound-mass">lb<sub>m</sub></span>]]
uJ  [[Joule|µJ]]
J.s  [[Joule-giây|J&sdot;s]]
kWh  [[Kilowatt giờ|kWh]]
kW.h  [[Kilowatt giờ|kW&sdot;h]]
J/C  [[Volt|J/C]]
J/kg  [[Joule|J/kg]]

Da  [[Dalton (đơn vị)|Da]]  SI
EDa  [[Dalton (đơn vị)|Da]]  SI
PDa  [[Dalton (đơn vị)|Da]]  SI
TDa  [[Dalton (đơn vị)|Da]]  SI
GDa  [[Dalton (đơn vị)|Da]]  SI
MDa  [[Dalton (đơn vị)|Da]]  SI
kDa  [[Dalton (đơn vị)|Da]]  SI
mDa  [[Dalton (đơn vị)|Da]]  SI
uDa  [[Dalton (đơn vị)|Da]]  SI
μDa  [[Dalton (đơn vị)|Da]]  SI
nDa  [[Dalton (đơn vị)|Da]]  SI
pDa  [[Dalton (đơn vị)|Da]]  SI
fDa  [[Dalton (đơn vị)|Da]]  SI
aDa  [[Dalton (đơn vị)|Da]]  SI

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

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

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

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

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

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

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

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

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

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

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

Ω  [[Ohm|Ω]]  SI

R  [[Rayleigh (đơn vị)|R]]  SI

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

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

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

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

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

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

]=]

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

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

]=]

return { builtin_units = builtin_units, builtin_units_long_scale = builtin_units_long_scale }