モジュール:Val/units/sandbox

モジュールの解説[作成]
-- Definitions for units known to val
-- File format is two strings and a return statement with them in it:
-- string in quotes [=[ ... builtin_units ... ]=].
-- string in quotes [=[ ... builtin_units_long_scale ... ]=].
-- First string, builtin_units, is short-scale, second string is long scale.

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

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

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

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

local builtin_units = [=[

== Test ==
Foo  [[Hz|<samp>Foo</samp>]]
Baz  [[Hertz|baz<sub>0</sub>]]
Baz  [[Kelvins|baz<sub>0</sub>]]
Bar  [[Foobar|bar<abbr title="super duper">0</abbr>]]
quux  [[Foobar|<span title="super duper 2">bar0</span>]]

== Unsorted units ==
c0  [[光速|''c''<sub>0</sub>]]
lbf  [[重量ポンド|<span title="重量ポンド">lb<sub>F</sub></span> ]]
C/mol  [[ファラデー定数|C/mol]]
C.mol-1  [[ファラデー定数|C&sdot;mol<sup>−1</sup>]]
C/kg  [[レントゲン (単位)|C/kg]]
C.kg-1  [[レントゲン (単位)|C&sdot;kg<sup>−1</sup>]]
F.m-1  [[真空の誘電率|F&sdot;m<sup>−1</sup>]]
F/m  [[真空の誘電率|F/m]]
e  [[電気素量|''e'']]
phon  [[ホン|ホン]]

W.m-1.K-1  [[熱伝導率|W・m<sup>−1</sup>・K<sup>−1</sup>]]
W/mK  [[熱伝導率|W/(m K)]]
W/m.K  [[熱伝導率|W/(m・K)]]
W.cm-1.K-1  [[熱伝導率|W・cm<sup>−1</sup>・K<sup>−1</sup>]]  1e2
W/cmK  [[熱伝導率|W/(cm K)]]  1e2
W/cm.K  [[熱伝導率|W/(cm・K)]]  1e2

== Time and frequency ==
byte  [[バイト (情報)|byte]]  8
byte/s  [[ビット毎秒|byte/s]]  8
kB/s  [[ビット毎秒|<span title="キロバイト毎秒">kB/s</span>]]  8e3
MB/s  [[ビット毎秒|<span title="メガバイト毎秒">MB/s</span>]]  8e6
GB/s  [[ビット毎秒|<span title="ギガバイト毎秒">GB/s</span>]]  8e9
TB/s  [[ビット毎秒|<span title="テラバイト毎秒">TB/s</span>]]  8e12
bit/s  [[ビット毎秒|bit/s]]  1
bps  [[ビット毎秒|bit/s]]  1
kbit/s  [[ビット毎秒|kbit/s]]  1e3
Mbit/s  [[ビット毎秒|Mbit/s]]  1e6
Gbit/s  [[ビット毎秒|Gbit/s]]  1e9
Tbit/s  [[ビット毎秒|Tbit/s]]  1e12
kT/s  [[:en:Transfer (computing)|<span title="キロトランスファー毎秒">kT/s</span>]]  1e3
MT/s  [[:en:Transfer (computing)|<span title="メガトランスファー毎秒">MT/s</span>]]  1e6
GT/s  [[:en:Transfer (computing)|<span title="ギガトランスファー毎秒">GT/s</span>]]  1e9
year  [[年]]  31557600
years  [[年]]  31557600
yr  [[年|yr]]  31557600
y  [[年|y]]  31557600
a  [[年|a]]  31557600
Ga  [[年|Ga]]  31557600000000000
Ma  [[年|Ma]]  31557600000000
ka  [[年|ka]]  31557600000
kyr  [[:en:kyr|kyr]]  31557600000
kya  [[:en:kyr|kya]]  31557600000
myr  [[:en:myr|myr]]  31557600000000
mya  [[年|mya]]  31557600000000
byr  [[:en:Byr|byr]]  31557600000000000
bya  [[:en:Byr|bya]]  31557600000000000
Gyr  [[年|Ga]]  31557600000000000
BP  [[BP (年代測定)|BP]]
uBP  [[放射性炭素年代測定|<sup>14</sup>C yr BP]]
BC  [[西暦|BC]]  -1
AD  [[西暦|AD]]  1
BCE  [[:en:Common Era|BCE]]  -1
CE  [[:en:Common Era|CE]]  1

s-1  [[毎秒|s<sup>−1</sup>]]
s-2  [[秒|s<sup>−2</sup>]]
s2  [[秒|s<sup>2</sup>]]

s  [[秒|s]]  SI
as  [[:en:Attosecond|s]]  SI
cs  [[秒|s]]  SI
das  [[秒|s]]  SI
ds  [[秒|s]]  SI
Es  [[秒|s]]  SI
fs  [[:en:Femtosecond|s]]  SI
Gs  [[秒|s]]  SI
hs  [[秒|s]]  SI
ks  [[秒|s]]  SI
ms  [[1 E-3 s|s]]  SI
µs  [[:en:Microsecond|s]]  SI
us  [[:en:Microsecond|s]]  SI
Ms  [[秒|s]]  SI
ns  [[:en:Nanosecond|s]]  SI
ps  [[:en:Picosecond|s]]  SI
Ps  [[秒|s]]  SI
Ts  [[秒|s]]  SI
Ys  [[秒|s]]  SI
ys  [[時間の比較|s]]  SI
Zs  [[秒|s]]  SI
zs  [[時間の比較|s]]  SI

Hz  [[ヘルツ|Hz]]  SI
aHz  [[ヘルツ|Hz]]  SI
cHz  [[ヘルツ|Hz]]  SI
daHz  [[ヘルツ|Hz]]  SI
dHz  [[ヘルツ|Hz]]  SI
EHz  [[ヘルツ|Hz]]  SI
fHz  [[ヘルツ|Hz]]  SI
hHz  [[ヘルツ|Hz]]  SI
GHz  [[ヘルツ|Hz]]  SI
kHz  [[ヘルツ|Hz]]  SI
MHz  [[ヘルツ|Hz]]  SI
mHz  [[ヘルツ|Hz]]  SI
uHz  [[ヘルツ|Hz]]  SI
µHz  [[ヘルツ|Hz]]  SI
nHz  [[ヘルツ|Hz]]  SI
pHz  [[ヘルツ|Hz]]  SI
PHz  [[ヘルツ|Hz]]  SI
THz  [[ヘルツ|Hz]]  SI
yHz  [[ヘルツ|Hz]]  SI
YHz  [[ヘルツ|Hz]]  SI
zHz  [[ヘルツ|Hz]]  SI
ZHz  [[ヘルツ|Hz]]  SI

== Length, area, volume ==
fb-1  [[バーン (単位)|fb<sup>−1</sup>]]
mas  [[分 (角度)|mas]]  pi/648000000
m-1  [[メートル|m<sup>−1</sup>]]
m-2  [[平方メートル|m<sup>−2</sup>]]
m-3  [[立方メートル|m<sup>−3</sup>]]
m  [[メートル|m]]
m2  [[平方メートル|m<sup>2</sup>]]
m3  [[立方メートル|m<sup>3</sup>]]
meter  [[メートル|m]]  ALIAS
metre  [[メートル|m]]  ALIAS
am  [[メートル|am]]  1e-18
cm  [[センチメートル|cm]]  1e-2
cm2  [[平方センチメートル|cm<sup>2</sup>]]  1e-4
cm3  [[立方センチメートル|cm<sup>3</sup>]]  1e-6
dam  [[デカメートル|dam]]  1e1
dm  [[デシメートル|dm]]  1e-1
Em  [[メートル|m]]  SI
fm  [[メートル|m]]  SI
Gm  [[メートル|m]]  SI
hm  [[ヘクトメートル|hm]]  1e2
km  [[キロメートル|km]]  1e3
km2  [[平方キロメートル|km<sup>2</sup>]]  1e6
km3  [[立方キロメートル|km<sup>3</sup>]]  1e9
Mm  [[メガメートル|Mm]]  1e6
mm  [[ミリメートル|mm]]  1e-3
um  [[マイクロメートル|µm]]  1e-6
µm  [[マイクロメートル|µm]]  1e-6
nm  [[ナノメートル|nm]]  1e-9
Pm  [[メートル|m]]  SI
pm  [[ピコメートル|pm]]  1e-12
Tm  [[メートル|m]]  SI
Ym  [[メートル|m]]  SI
ym  [[メートル|m]]  SI
Zm  [[メートル|m]]  SI
zm  [[メートル|m]]  SI
angstrom  [[オングストローム|Å]]  1e-10
ang  [[オングストローム|Å]]  ALIAS  1e-10

µm2  [[平方メートル|µm<sup>2</sup>]]  1e-12
um2  [[平方メートル|µm<sup>2</sup>]]  1e-12
am2  [[平方メートル|am<sup>2</sup>]]  1e-36
cm2  [[平方センチメートル|cm<sup>2</sup>]]  1e-4
dam2  [[平方メートル|dam<sup>2</sup>]]  1e2
dm2  [[平方メートル|dm<sup>2</sup>]]  1e-2
Em2  [[平方メートル|Em<sup>2</sup>]]  
fm2  [[平方メートル|fm<sup>2</sup>]]
Gm2  [[平方メートル|Gm<sup>2</sup>]]
hm2  [[平方メートル|hm<sup>2</sup>]]
mm2  [[平方メートル|mm<sup>2</sup>]]
Mm2  [[平方メートル|Mm<sup>2</sup>]]
nm2  [[平方メートル|nm<sup>2</sup>]]
pm2  [[平方メートル|pm<sup>2</sup>]]
Pm2  [[平方メートル|Pm<sup>2</sup>]]
Tm2  [[平方メートル|Tm<sup>2</sup>]]
ym2  [[平方メートル|ym<sup>2</sup>]]
Ym2  [[平方メートル|Ym<sup>2</sup>]]
zm2  [[平方メートル|zm<sup>2</sup>]]
Zm2  [[平方メートル|Zm<sup>2</sup>]]
gal  [[ガロン|gal]]
dm3  [[リットル|dm<sup>3</sup>]]
l  [[リットル|l]]
L  [[リットル|L]]
l-1  [[リットル|l<sup>−1</sup>]]
L-1  [[リットル|L<sup>−1</sup>]]


== Velocity and acceleration ==
m/s2  [[メートル毎秒毎秒|m/s<sup>2</sup>]]
m.s-2  [[メートル毎秒毎秒|m&sdot;s<sup>−2</sup>]]
m/s  [[メートル毎秒|m/s]]
km/s  [[メートル毎秒|m/s]]  SI
m.s-1  [[メートル毎秒|m&sdot;s<sup>−1</sup>]]
km.s-1  [[メートル毎秒|km&sdot;s<sup>−1</sup>]]
km/h/s  [[キロメートル毎時毎秒|km/h/s]]  1000/3600
km/h  [[キロメートル毎時|km/h]]  1000/3600
Gal  [[ガル|Gal]]
uGal  [[ガル|µGal]]
µGal  [[ガル|µGal]]
mGal  [[ガル|mGal]]

== Mass and energy ==
lbm  [[ポンド (質量)|<span title="ポンド">lb<sub>m</sub></span>]]
uJ  [[ジュール|µJ]]
J.s  [[:en:Joule-second|J&sdot;s]]
kWh  [[キロワット時|kWh]]
kW.h  [[キロワット時|kW&sdot;h]]
kW·h  [[キロワット時|kW&sdot;h]]
J/C  [[ボルト (単位)|J/C]]
J/kg  [[ジュール|J/kg]]

g  [[グラム|g]]  SI
ag  [[キログラム|g]]  SI
cg  [[キログラム|g]]  SI
dag  [[グラム|g]]  SI
dg  [[キログラム|g]]  SI
Eg  [[キログラム|g]]  SI
fg  [[キログラム|g]]  SI
Gg  [[キログラム|g]]  SI
hg  [[キログラム|g]]  SI
kg  [[キログラム|kg]]  1000
mcg  [[マイクログラム|g]]  SI
Mg  [[トン|g]]  SI
mg  [[ミリグラム|mg]]  0.001
ug  [[キログラム|g]]  SI
µg  [[マイクログラム|g]]  SI
ng  [[ナノグラム|g]]  SI
Pg  [[キログラム|g]]  SI
pg  [[キログラム|g]]  SI
Tg  [[トン|g]]  SI
yg  [[キログラム|g]]  SI
Yg  [[質量の比較|g]]  SI
zg  [[キログラム|g]]  SI
Zg  [[質量の比較|g]]  SI
t   [[トン|t]]

== Force ==
N  [[ニュートン|N]]  SI
kN  [[ニュートン|N]]  SI
kgf  [[重量キログラム|kgf]]  9.80665
kgw  [[重量キログラム|kgw]]  9.80665

== Power ==
W    [[ワット|W]]  SI
aW   [[ワット|W]]  SI
cW   [[ワット|W]]  SI
daW  [[ワット|W]]  SI
dW   [[ワット|W]]  SI
EW   [[ワット|W]]  SI
fW   [[ワット|W]]  SI
GW   [[ワット|W]]  SI
hW   [[ワット|W]]  SI
kW   [[ワット|W]]  SI
mcW  [[ワット|W]]  SI
MW   [[ワット|W]]  SI
mW   [[ワット|W]]  SI
uW   [[ワット|W]]  SI
µW   [[ワット|W]]  SI
nW   [[ワット|W]]  SI
PW   [[ワット|W]]  SI
pW   [[ワット|W]]  SI
TW   [[ワット|W]]  SI
yW   [[ワット|W]]  SI
YW   [[ワット|W]]  SI
zW   [[ワット|W]]  SI
ZW   [[ワット|W]]  SI

== Pressure and density ==
psi  [[重量ポンド毎平方インチ|psi]]  6894.7573
Pa  [[パスカル|Pa]]
uPa  [[パスカル|Pa]]  SI
mPa  [[パスカル|Pa]]  SI
kPa  [[パスカル|Pa]]  SI
MPa  [[パスカル|Pa]]  SI
GPa  [[パスカル|Pa]]  SI
hPa  [[ヘクトパスカル|hPa]]  100
mmHg  [[水銀柱ミリメートル|mmHg]]  133.32239
g/cm3  [[グラム毎立方センチメートル|g/cm<sup>3</sup>]]  1000
kg/m3  [[キログラム毎立方メートル|kg/m<sup>3</sup>]]  1
kg/cm3  [[密度|kg/cm<sup>3</sup>]]  1000000
g/L  [[グラム毎リットル|g/L]]  1
g/l  [[グラム毎リットル|g/L]]  1
mcg/dL  [[グラム毎リットル|µg/dL]]  1e-05
mcg/dl  [[グラム毎リットル|µg/dL]]  1e-05
mg/mL  [[グラム毎リットル|mg/mL]]  1
mg/ml  [[グラム毎リットル|mg/mL]]  1
ug/dL  [[グラム毎リットル|µg/dL]]  1e-5
ug/dl  [[グラム毎リットル|µg/dL]]  1e-5
μg/dL  [[グラム毎リットル|μg/dL]]  1e-5
μg/dl  [[グラム毎リットル|μg/dL]]  1e-5
mg/L  [[グラム毎リットル|mg/dL]]  1e-3
mg/l  [[グラム毎リットル|<abbr title="ミリグラム毎リットル">mg/L</abbr>]]  1e-3
mg/L  [[グラム毎リットル|<abbr title="ミリグラム毎リットル">mg/L</abbr>]]  1e-3
mgl-1  [[グラム毎リットル|<abbr title="ミリグラム毎リットル">mg/L</abbr>]]  1e-3
mgL-1  [[グラム毎リットル|<abbr title="ミリグラム毎リットル">mg/L</abbr>]]  1e-3

== Temperature ==
degC  [[セルシウス度|<span lang="en" xml:lang="en">°C</span>]]
degF  [[華氏|<span lang="en" xml:lang="en">°F</span>]]
degR  [[ランキン度|<span lang="en" xml:lang="en">°R</span>]]
Celsius  [[セルシウス度|&#x2103;]]
Fahrenheit  [[華氏|&#x2109;]]

K  [[ケルビン|K]]  SI
YK  [[ケルビン|K]]  SI
ZK  [[ケルビン|K]]  SI
EK  [[ケルビン|K]]  SI
PK  [[ケルビン|K]]  SI
TK  [[ケルビン|K]]  SI
GK  [[ケルビン|K]]  SI
MK  [[ケルビン|K]]  SI
kK  [[ケルビン|K]]  SI
hK  [[ケルビン|K]]  SI
daK  [[ケルビン|K]]  SI
dK  [[ケルビン|K]]  SI
cK  [[ケルビン|K]]  SI
mK  [[ケルビン|K]]  SI
µK  [[ケルビン|K]]  SI
uK  [[ケルビン|K]]  SI
nK  [[ケルビン|K]]  SI
pK  [[ケルビン|K]]  SI
fK  [[ケルビン|K]]  SI
aK  [[ケルビン|K]]  SI
zK  [[ケルビン|K]]  SI
yK  [[ケルビン|K]]  SI

== Electromagnetism ==
Wb  [[ウェーバ|Wb]]
N.A-2  [[透磁率|N&sdot;A<sup>−2</sup>]]
H.m-1  [[透磁率|H·m<sup>−1</sup>]]
V/m  [[電場|V/m]]
V.m-1  [[電場|V&sdot;m<sup>−1</sup>]]

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

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

H  [[ヘンリー|H]]  SI
YH  [[ヘンリー|H]]  SI
ZH  [[ヘンリー|H]]  SI
EH  [[ヘンリー|H]]  SI
PH  [[ヘンリー|H]]  SI
TH  [[ヘンリー|H]]  SI
GH  [[ヘンリー|H]]  SI
MH  [[ヘンリー|H]]  SI
kH  [[ヘンリー|H]]  SI
hH  [[ヘンリー|H]]  SI
daH  [[ヘンリー|H]]  SI
dH  [[ヘンリー|H]]  SI
cH  [[ヘンリー|H]]  SI
mH  [[ヘンリー|H]]  SI
µH  [[ヘンリー|H]]  SI
uH  [[ヘンリー|H]]  SI
nH  [[ヘンリー|H]]  SI
pH  [[ヘンリー|H]]  SI
fH  [[ヘンリー|H]]  SI
aH  [[ヘンリー|H]]  SI
zH  [[ヘンリー|H]]  SI
yH  [[ヘンリー|H]]  SI

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

V  [[ボルト (単位)|V]]  SI
YV  [[ボルト (単位)|V]]  SI
ZV  [[ボルト (単位)|V]]  SI
EV  [[ボルト (単位)|V]]  SI
PV  [[ボルト (単位)|V]]  SI
TV  [[ボルト (単位)|V]]  SI
GV  [[ボルト (単位)|V]]  SI
MV  [[ボルト (単位)|V]]  SI
kV  [[ボルト (単位)|V]]  SI
hV  [[ボルト (単位)|V]]  SI
daV  [[ボルト (単位)|V]]  SI
dV  [[ボルト (単位)|V]]  SI
cV  [[ボルト (単位)|V]]  SI
mV  [[ボルト (単位)|V]]  SI
µV  [[ボルト (単位)|V]]  SI
uV  [[ボルト (単位)|V]]  SI
nV  [[ボルト (単位)|V]]  SI
pV  [[ボルト (単位)|V]]  SI
fV  [[ボルト (単位)|V]]  SI
aV  [[ボルト (単位)|V]]  SI
zV  [[ボルト (単位)|V]]  SI
yV  [[ボルト (単位)|V]]  SI

VA  [[ボルトアンペア|VA]]  SI
YVA  [[ボルトアンペア|VA]]  SI
ZVA  [[ボルトアンペア|VA]]  SI
EVA  [[ボルトアンペア|VA]]  SI
PVA  [[ボルトアンペア|VA]]  SI
TVA  [[ボルトアンペア|VA]]  SI
GVA  [[ボルトアンペア|VA]]  SI
MVA  [[ボルトアンペア|VA]]  SI
kVA  [[ボルトアンペア|VA]]  SI
hVA  [[ボルトアンペア|VA]]  SI
daVA  [[ボルトアンペア|VA]]  SI
dVA  [[ボルトアンペア|VA]]  SI
cVA  [[ボルトアンペア|VA]]  SI
mVA  [[ボルトアンペア|VA]]  SI
µVA  [[ボルトアンペア|VA]]  SI
uVA  [[ボルトアンペア|VA]]  SI
nVA  [[ボルトアンペア|VA]]  SI
pVA  [[ボルトアンペア|VA]]  SI
fVA  [[ボルトアンペア|VA]]  SI
aVA  [[ボルトアンペア|VA]]  SI
zVA  [[ボルトアンペア|VA]]  SI
yVA  [[ボルトアンペア|VA]]  SI

S  [[ジーメンス|S]]
mS  [[ジーメンス|S]]  SI

S/m  [[ジーメンス毎メートル|S/m]]
mS/m  [[ジーメンス毎メートル|S/m]]  SI
S/cm  [[ジーメンス毎メートル|S/cm]]  1e+2
mS/cm  [[ジーメンス毎メートル|mS/cm]]  1e-1

R  [[レイリー (単位)|R]]  SI

G  [[ガウス|G]]  SI
aG  [[ガウス|G]]  SI
cG  [[ガウス|G]]  SI
daG  [[ガウス|G]]  SI
dG  [[ガウス|G]]  SI
EG  [[ガウス|G]]  SI
fG  [[ガウス|G]]  SI
GG  [[ガウス|G]]  SI
hG  [[ガウス|G]]  SI
kG  [[ガウス|G]]  SI
MG  [[ガウス|G]]  SI
mG  [[ガウス|G]]  SI
uG  [[ガウス|G]]  SI
µG  [[ガウス|G]]  SI
nG  [[ガウス|G]]  SI
PG  [[ガウス|G]]  SI
pG  [[ガウス|G]]  SI
TG  [[ガウス|G]]  SI
yG  [[ガウス|G]]  SI
YG  [[ガウス|G]]  SI
zG  [[ガウス|G]]  SI
ZG  [[ガウス|G]]  SI

T  [[テスラ|T]]  SI
aT  [[テスラ|T]]  SI
cT  [[テスラ|T]]  SI
daT  [[テスラ|T]]  SI
dT  [[テスラ|T]]  SI
ET  [[テスラ|T]]  SI
fT  [[テスラ|T]]  SI
GT  [[テスラ|T]]  SI
hT  [[テスラ|T]]  SI
kT  [[テスラ|T]]  SI
MT  [[テスラ|T]]  SI
mT  [[テスラ|T]]  SI
uT  [[テスラ|T]]  SI
µT  [[テスラ|T]]  SI
μT  [[テスラ|T]]  SI
nT  [[テスラ|T]]  SI
PT  [[テスラ|T]]  SI
pT  [[テスラ|T]]  SI
TT  [[テスラ|T]]  SI
yT  [[テスラ|T]]  SI
YT  [[テスラ|T]]  SI
zT  [[テスラ|T]]  SI
ZT  [[テスラ|T]]  SI

emu  [[CGS-emu|emu]]

== Astrophysics ==
au  [[天文単位|au]]
c  [[光速|''c'']]
ly  [[光年|ly]]
Earth mass  [[地球質量|''M''<sub>⊕</sub>]]
Earth radius  [[地球半径|''R''<sub>⊕</sub>]]
M_Earth  [[地球質量|''M''<sub>⊕</sub>]]
R_Earth  [[地球半径|''R''<sub>⊕</sub>]]
Jupiter mass  [[木星質量|''M''<sub>J</sub>]]
Jupiter radius  [[木星半径|''R''<sub>J</sub>]]
M_Jupiter  [[木星質量|''M''<sub>J</sub>]]
R_Jupiter  [[木星半径|''R''<sub>J</sub>]]
Solar mass  [[太陽質量|''M''<sub>&#x2609;</sub>]]
solar mass  [[太陽質量|''M''<sub>&#x2609;</sub>]]
M_Solar  [[太陽質量|''M''<sub>&#x2609;</sub>]]
M_solar  [[太陽質量|''M''<sub>&#x2609;</sub>]]
R_Solar  [[太陽半径|''R''<sub>&#x2609;</sub>]]
R_solar  [[太陽半径|''R''<sub>&#x2609;</sub>]]
Solar radius  [[太陽半径|''R''<sub>&#x2609;</sub>]]
solar radius  [[太陽半径|''R''<sub>&#x2609;</sub>]]
Solar luminosity  [[太陽光度|''L''<sub>&#x2609;</sub>]]
solar luminosity  [[太陽光度|''L''<sub>&#x2609;</sub>]]
L_solar  [[太陽光度|''L''<sub>&#x2609;</sub>]]
L_Solar  [[太陽光度|''L''<sub>&#x2609;</sub>]]
pc2  [[パーセク|pc<sup>2</sup>]]
pc3  [[パーセク|pc<sup>3</sup>]]
kpc2  [[パーセク|kpc<sup>2</sup>]]
kpc3  [[パーセク|kpc<sup>3</sup>]]
kpc  [[パーセク|kpc]]
Mpc2  [[パーセク|Mpc<sup>2</sup>]]
Mpc3  [[パーセク|Mpc<sup>3</sup>]]
Mpc  [[パーセク|Mpc]]
Gpc2  [[パーセク|Gpc<sup>2</sup>]]
Gpc3  [[パーセク|Gpc<sup>3</sup>]]
Gpc  [[パーセク|Gpc]]

== Nuclear Physics and Chemistry ==
cm-1  [[波数|cm<sup>−1</sup>]]
u  [[統一原子質量単位|u]]
mol  [[モル|mol]]
osmol  [[オスモル|osmol]]
Osm  [[オスモル|Osm]]
M  [[モル濃度|M]]
TM  [[モル濃度|M]]  SI
GM  [[モル濃度|M]]  SI
MM  [[モル濃度|M]]  SI
kM  [[モル濃度|M]]  SI
hM  [[モル濃度|M]]  SI
daM  [[モル濃度|M]]  SI
dM  [[モル濃度|M]]  SI
cM  [[モル濃度|M]]  SI
mM  [[モル濃度|M]]  SI
uM  [[モル濃度|M]]  1e-6
nM  [[モル濃度|M]]  SI
pM  [[モル濃度|M]]  SI
kg/mol  [[モル質量|kg/mol]]
kg.mol-1  [[モル質量|kg&sdot;mol<sup>−1</sup>]]
g/mol  [[モル質量|g/mol]]
g.mol-1  [[モル質量|g&sdot;mol<sup>−1</sup>]]
eV/c2  [[電子ボルト|eV/''c''<sup>2</sup>]]
keV/c2  [[電子ボルト|keV/''c''<sup>2</sup>]]
MeV/c2  [[電子ボルト|MeV/''c''<sup>2</sup>]]
GeV/c2  [[電子ボルト|GeV/''c''<sup>2</sup>]]
TeV/c2  [[電子ボルト|TeV/''c''<sup>2</sup>]]
µN  [[核磁子|µ<span style="display:inline-block;margin-bottom:-0.3em;vertical-align:-0.4em;line-height:1.2em;font-size:85%;text-align:left"><br />N</span>]]
µB  [[ボーア磁子|µ<span style="display:inline-block;margin-bottom:-0.3em;vertical-align:-0.4em;line-height:1.2em;font-size:85%;text-align:left"><br />B</span>]]
eV  [[電子ボルト|eV]]  1.6021766e-19
mev  [[電子ボルト|meV]]  1.6021766e-22
keV  [[電子ボルト|keV]]  1.6021766e-16
MeV  [[電子ボルト|MeV]]  1.6021766e-13
GeV  [[電子ボルト|GeV]]  1.6021766e-10
TeV  [[電子ボルト|TeV]]  1.6021766e-7
J/mol  [[ジュール毎モル|J/mol]]  1.66054e-24
J.mol-1  [[ジュール毎モル|J&sdot;mol<sup>−1</sup>]]  1.66054e-24
kJ.mol-1  [[ジュール毎モル|kJ&sdot;mol<sup>−1</sup>]]  1.66054e-21
kJ/mol  [[ジュール毎モル|kJ/mol]]  1.66054e-21
MJ.mol-1  [[ジュール毎モル|MJ&sdot;mol<sup>−1</sup>]]  1.66054e-18
MJ/mol  [[ジュール毎モル|MJ/mol]]  1.66054e-18
GJ/mol  [[ジュール毎モル|GJ/mol]]  1.66054e-15
GJ.mol-1  [[ジュール毎モル|GJ&sdot;mol<sup>−1</sup>]]  1.66054e-15
TJ.mol-1  [[ジュール毎モル|TJ&sdot;mol<sup>−1</sup>]]  1.66054e-12
TJ/mol  [[ジュール毎モル|TJ/mol]]  1.66054e-12
cal/mol  [[カロリー毎モル|cal/mol]]  6.9476953e-24
cal.mol-1  [[カロリー毎モル|cal&sdot;mol<sup>−1</sup>]]  6.9476953e-24
kcal.mol-1  [[カロリー毎モル|kcal&sdot;mol<sup>−1</sup>]]  6.9476953e-21
kcal/mol  [[カロリー毎モル|kcal/mol]]  6.9476953e-21
Mcal.mol-1  [[カロリー毎モル|Mcal&sdot;mol<sup>−1</sup>]]  6.9476953e-18
Mcal/mol  [[カロリー毎モル|Mcal/mol]]  6.9476953e-18
Gcal/mol  [[カロリー毎モル|Gcal/mol]]  6.9476953e-15
Gcal.mol-1  [[カロリー毎モル|Gcal&sdot;mol<sup>−1</sup>]]  6.9476953e-15
Tcal.mol-1  [[カロリー毎モル|Tcal&sdot;mol<sup>−1</sup>]]  6.9476953e-12
Tcal/mol  [[カロリー毎モル|Tcal/mol]]  6.9476953e-12

== Numbers and phrases ==
pp  [[:en:Page (paper)|pp]]
ppb  [[ppm|ppb]]  1e-9
ppm  [[ppm|ppm]]  1e-6
billiard  [[:en:Orders of magnitude (numbers)#1015|billiard]]  1e15
billion  [[1 E9|billion]]  1e9
billionth  [[1 E9|billionth]]  1e-9
billionths  [[1 E9|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  [[1 E9|milliard]]  1e9
million  [[1000000|million]]  1e6
millionth  [[1000000|millionth]]  1e-6
millionths  [[1000000|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 ==
%                  %                                     パーセント                                ANGLE   0.01
percent            %                                     パーセント                                ANGLE   0.01
per cent           %                                     パーセント                                ANGLE   0.01
‰                  ‰                                     パーミル                                ANGLE   1e-3
per mil            ‰                                     パーミル                                ANGLE   1e-3
per mill           ‰                                     パーミル                                ANGLE   1e-3
per mille          ‰                                     パーミル                                ANGLE   1e-3
permil             ‰                                     パーミル                                ANGLE   1e-3
permill            ‰                                     パーミル                                ANGLE   1e-3
permille           ‰                                     パーミル                                ANGLE   1e-3
°                  °                                     度 (角度)                         ANGLE   pi/180
deg                °                                     度 (角度)                         ANGLE   pi/180
'                  ′                                     分 (角度)                          ANGLE   pi/10800
′                  ′                                     分 (角度)                          ANGLE   pi/10800
arcmin             ′                                     分 (角度)                          ANGLE   pi/10800
arcminute          ′                                     分 (角度)                          ANGLE   pi/10800
"                  ″                                     秒 (角度)                          ANGLE   pi/648000
″                  ″                                     秒 (角度)                          ANGLE   pi/648000
arcsec             ″                                     秒 (角度)                          ANGLE   pi/648000
arcsecond          ″                                     秒 (角度)                          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  [[: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 }