update from sandbox per Template talk:Convert |
Created page with "-- Conversion data used by Module:Convert which uses mw.loadData() for -- read-only access to this module so that it is loaded only once per page. -- -- These data tables follow: -- all_units all properties for a unit, including default output -- default_exceptions exceptions for default output ('kg' and 'g' have different defaults) -- link_exceptions exceptions for links ('kg' and 'g' have different links) -- -- These tables are generated by a s..." Tags: Mobile edit Mobile web edit |
||
Line 1: | Line 1: | ||
-- Conversion data used by [[Module:Convert]] which uses mw.loadData() for | -- Conversion data used by [[Module:Convert]] which uses mw.loadData() for | ||
-- read-only access to this module so that it is loaded only once per page. | -- read-only access to this module so that it is loaded only once per page. | ||
-- | -- | ||
-- These data tables follow: | -- These data tables follow: | ||
Line 9: | Line 8: | ||
-- | -- | ||
-- These tables are generated by a script which reads the wikitext of a page that | -- These tables are generated by a script which reads the wikitext of a page that | ||
-- documents the required properties of each unit | -- documents the required properties of each unit | ||
--------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ||
Line 718: | Line 717: | ||
}, | }, | ||
["mg/l"] = { | ["mg/l"] = { | ||
per = { "mg", " | per = { "mg", "l" }, | ||
utype = "density", | utype = "density", | ||
default = "oz/cuin", | default = "oz/cuin", | ||
Line 728: | Line 727: | ||
}, | }, | ||
["μg/l"] = { | ["μg/l"] = { | ||
per = { "μg", " | per = { "μg", "l" }, | ||
utype = "density", | utype = "density", | ||
default = "oz/cuin", | default = "oz/cuin", | ||
Line 759: | Line 758: | ||
scale = 3600000, | scale = 3600000, | ||
default = "MJ", | default = "MJ", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["bboe"] = { | ["bboe"] = { | ||
Line 1,147: | Line 1,146: | ||
scale = 3.6e12, | scale = 3.6e12, | ||
default = "TJ", | default = "TJ", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["GWh"] = { | ["GWh"] = { | ||
Line 1,155: | Line 1,154: | ||
scale = 3.6e12, | scale = 3.6e12, | ||
default = "TJ", | default = "TJ", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["hph"] = { | ["hph"] = { | ||
Line 1,334: | Line 1,333: | ||
scale = 3600000, | scale = 3600000, | ||
default = "MJ", | default = "MJ", | ||
link = "Watt-hour", | |||
}, | }, | ||
["kWh"] = { | ["kWh"] = { | ||
Line 1,341: | Line 1,341: | ||
scale = 3600000, | scale = 3600000, | ||
default = "MJ", | default = "MJ", | ||
link = "Watt-hour", | |||
}, | }, | ||
["Mcal"] = { | ["Mcal"] = { | ||
Line 1,513: | Line 1,514: | ||
scale = 3600000000, | scale = 3600000000, | ||
default = "GJ", | default = "GJ", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["mW.h"] = { | ["mW.h"] = { | ||
Line 1,521: | Line 1,522: | ||
scale = 3.6, | scale = 3.6, | ||
default = "J", | default = "J", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["MWh"] = { | ["MWh"] = { | ||
Line 1,529: | Line 1,530: | ||
scale = 3600000000, | scale = 3600000000, | ||
default = "GJ", | default = "GJ", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["mWh"] = { | ["mWh"] = { | ||
Line 1,537: | Line 1,538: | ||
scale = 3.6, | scale = 3.6, | ||
default = "J", | default = "J", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["neV"] = { | ["neV"] = { | ||
Line 1,708: | Line 1,709: | ||
scale = 3.6e15, | scale = 3.6e15, | ||
default = "PJ", | default = "PJ", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["TWh"] = { | ["TWh"] = { | ||
Line 1,716: | Line 1,717: | ||
scale = 3.6e15, | scale = 3.6e15, | ||
default = "PJ", | default = "PJ", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["W.h"] = { | ["W.h"] = { | ||
Line 1,724: | Line 1,725: | ||
scale = 3600, | scale = 3600, | ||
default = "kJ", | default = "kJ", | ||
}, | }, | ||
["Wh"] = { | ["Wh"] = { | ||
Line 1,732: | Line 1,732: | ||
scale = 3600, | scale = 3600, | ||
default = "kJ", | default = "kJ", | ||
}, | }, | ||
["μerg"] = { | ["μerg"] = { | ||
Line 1,756: | Line 1,755: | ||
scale = 0.0036, | scale = 0.0036, | ||
default = "mJ", | default = "mJ", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["μWh"] = { | ["μWh"] = { | ||
Line 1,764: | Line 1,763: | ||
scale = 0.0036, | scale = 0.0036, | ||
default = "mJ", | default = "mJ", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["-kW.h"] = { | ["-kW.h"] = { | ||
Line 1,921: | Line 1,920: | ||
scale = 36, | scale = 36, | ||
default = "MJ/km kWh/mi", | default = "MJ/km kWh/mi", | ||
link = " | link = "Watt-hour", | ||
}, | }, | ||
["kWh/100 mi"] = { | ["kWh/100 mi"] = { | ||
Line 1,948: | Line 1,947: | ||
symbol = "mpg‑e", | symbol = "mpg‑e", | ||
utype = "energy per unit length", | utype = "energy per unit length", | ||
scale = | scale = 13e-6, | ||
invert = -1, | invert = -1, | ||
iscomplex= true, | iscomplex= true, | ||
Line 1,987: | Line 1,986: | ||
symbol = "BTU/lb", | symbol = "BTU/lb", | ||
utype = "energy per unit mass", | utype = "energy per unit mass", | ||
scale = | scale = 429.92261414790346, | ||
default = "kJ/kg", | default = "kJ/kg", | ||
link = "British thermal unit", | link = "British thermal unit", | ||
Line 2,124: | Line 2,123: | ||
}, | }, | ||
["kJ/l"] = { | ["kJ/l"] = { | ||
per = { "kJ", " | per = { "kJ", "l" }, | ||
utype = "energy per unit volume", | utype = "energy per unit volume", | ||
default = "BTU/cuft", | default = "BTU/cuft", | ||
Line 2,965: | Line 2,964: | ||
invert = 1, | invert = 1, | ||
iscomplex= true, | iscomplex= true, | ||
default = " | default = "l/km USgal/mi", | ||
}, | }, | ||
["km/L"] = { | ["km/L"] = { | ||
Line 2,975: | Line 2,974: | ||
}, | }, | ||
["km/l"] = { | ["km/l"] = { | ||
per = { "km", " | per = { "km", "l" }, | ||
utype = "fuel efficiency", | utype = "fuel efficiency", | ||
invert = -1, | invert = -1, | ||
Line 2,987: | Line 2,986: | ||
iscomplex= true, | iscomplex= true, | ||
default = "mpgimp mpgus", | default = "mpgimp mpgus", | ||
symlink = " | symlink = "L/100 km", | ||
}, | }, | ||
["l/100 km"] = { | ["l/100 km"] = { | ||
per = { " | per = { "l", "100km" }, | ||
utype = "fuel efficiency", | utype = "fuel efficiency", | ||
invert = 1, | invert = 1, | ||
iscomplex= true, | iscomplex= true, | ||
default = "mpgimp mpgus", | default = "mpgimp mpgus", | ||
symlink = " | symlink = "l/100 km", | ||
}, | }, | ||
["L/km"] = { | ["L/km"] = { | ||
Line 3,005: | Line 3,004: | ||
}, | }, | ||
["l/km"] = { | ["l/km"] = { | ||
per = { " | per = { "l", "km" }, | ||
utype = "fuel efficiency", | utype = "fuel efficiency", | ||
invert = 1, | invert = 1, | ||
Line 3,046: | Line 3,045: | ||
iscomplex= true, | iscomplex= true, | ||
default = "L/100 km+mpgus", | default = "L/100 km+mpgus", | ||
symlink = " | symlink = "mpg<sub>‑imp</sub>", | ||
}, | }, | ||
["mpgus"] = { | ["mpgus"] = { | ||
Line 3,055: | Line 3,054: | ||
iscomplex= true, | iscomplex= true, | ||
default = "L/100 km+mpgimp", | default = "L/100 km+mpgimp", | ||
symlink = " | symlink = "mpg<sub>‑US</sub>", | ||
}, | }, | ||
["U.S.gal/mi"] = { | ["U.S.gal/mi"] = { | ||
Line 3,063: | Line 3,062: | ||
invert = 1, | invert = 1, | ||
iscomplex= true, | iscomplex= true, | ||
default = " | default = "l/km impgal/mi", | ||
}, | }, | ||
["usgal/mi"] = { | ["usgal/mi"] = { | ||
Line 3,070: | Line 3,069: | ||
invert = 1, | invert = 1, | ||
iscomplex= true, | iscomplex= true, | ||
default = " | default = "l/km impgal/mi", | ||
}, | }, | ||
["L/100km"] = { | ["L/100km"] = { | ||
Line 3,085: | Line 3,084: | ||
symbol = "mpg<sub>‑U.S.</sub>", | symbol = "mpg<sub>‑U.S.</sub>", | ||
sp_us = true, | sp_us = true, | ||
symlink = " | symlink = "mpg<sub>‑U.S.</sub>", | ||
}, | }, | ||
["mpgu.s."] = { | ["mpgu.s."] = { | ||
Line 3,091: | Line 3,090: | ||
symbol = "mpg<sub>‑U.S.</sub>", | symbol = "mpg<sub>‑U.S.</sub>", | ||
sp_us = true, | sp_us = true, | ||
symlink = " | symlink = "mpg<sub>‑U.S.</sub>", | ||
}, | }, | ||
["mpgUS"] = { | ["mpgUS"] = { | ||
Line 3,231: | Line 3,230: | ||
}, | }, | ||
["chlk"] = { | ["chlk"] = { | ||
name1 = " | name1 = "chain", | ||
symbol = " | symbol = "ch", | ||
utype = "length", | utype = "length", | ||
scale = 20.1168, | scale = 20.1168, | ||
Line 3,248: | Line 3,247: | ||
}, | }, | ||
["chainlk"] = { | ["chainlk"] = { | ||
symbol = " | symbol = "chain", | ||
usename = 1, | usename = 1, | ||
utype = "length", | utype = "length", | ||
Line 3,697: | Line 3,696: | ||
}, | }, | ||
["inch"] = { | ["inch"] = { | ||
target = "in", | target = "in", | ||
}, | }, | ||
Line 3,728: | Line 3,724: | ||
["mile"] = { | ["mile"] = { | ||
target = "mi", | target = "mi", | ||
}, | }, | ||
["miles"] = { | ["miles"] = { | ||
target = "mi", | target = "mi", | ||
}, | }, | ||
["parsec"] = { | ["parsec"] = { | ||
Line 3,920: | Line 3,914: | ||
scale = 1016.0469088, | scale = 1016.0469088, | ||
default = "DWtonne", | default = "DWtonne", | ||
link = " | link = "Tonnage", | ||
}, | }, | ||
["DWtonne"] = { | ["DWtonne"] = { | ||
symbol = "deadweight tonne", | symbol = "deadweight tonne", | ||
usename = 1, | usename = 1, | ||
utype = "mass", | utype = "mass", | ||
scale = 1000, | scale = 1000, | ||
default = "DWton", | default = "DWton", | ||
link = " | link = "Tonnage", | ||
}, | }, | ||
["g"] = { | ["g"] = { | ||
Line 4,631: | Line 4,623: | ||
name2_us = "per liter", | name2_us = "per liter", | ||
symbol = "/l", | symbol = "/l", | ||
utype = "per unit volume", | utype = "per unit volume", | ||
scale = 1000, | scale = 1000, | ||
Line 4,653: | Line 4,634: | ||
utype = "per unit volume", | utype = "per unit volume", | ||
scale = 264.172052, | scale = 264.172052, | ||
default = "/ | default = "/l", | ||
link = "US gallon", | link = "US gallon", | ||
customary= 2, | customary= 2, | ||
Line 5,729: | Line 5,710: | ||
scale = 1, | scale = 1, | ||
prefixes = 1, | prefixes = 1, | ||
default = " | default = "min", | ||
link = "Second", | link = "Second", | ||
}, | }, | ||
Line 5,829: | Line 5,810: | ||
["myr"] = { | ["myr"] = { | ||
target = "million year", | target = "million year", | ||
}, | }, | ||
["second"] = { | ["second"] = { | ||
Line 6,178: | Line 6,156: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.04091481, | scale = 0.04091481, | ||
default = " | default = "l impgal USgal", | ||
link = "Firkin (unit)", | link = "Firkin (unit)", | ||
}, | }, | ||
Line 6,215: | Line 6,193: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.16365924, | scale = 0.16365924, | ||
default = " | default = "l impgal USgal", | ||
link = "Barrel (unit)", | link = "Barrel (unit)", | ||
}, | }, | ||
Line 6,223: | Line 6,201: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.03636872, | scale = 0.03636872, | ||
default = " | default = "l impgal USdrygal", | ||
}, | }, | ||
["impbu"] = { | ["impbu"] = { | ||
Line 6,237: | Line 6,215: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.00454609, | scale = 0.00454609, | ||
default = " | default = "l USgal", | ||
}, | }, | ||
["impgi"] = { | ["impgi"] = { | ||
Line 6,252: | Line 6,230: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.01818436, | scale = 0.01818436, | ||
default = " | default = "l USdrygal", | ||
link = "Kenning (unit)", | link = "Kenning (unit)", | ||
}, | }, | ||
Line 6,267: | Line 6,245: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.00909218, | scale = 0.00909218, | ||
default = " | default = "l USdrygal", | ||
link = "Peck", | link = "Peck", | ||
}, | }, | ||
Line 6,275: | Line 6,253: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.00056826125, | scale = 0.00056826125, | ||
default = " | default = "l", | ||
}, | }, | ||
["impqt"] = { | ["impqt"] = { | ||
Line 6,290: | Line 6,268: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.08182962, | scale = 0.08182962, | ||
default = " | default = "l impgal USgal", | ||
}, | }, | ||
["koilbbl"] = { | ["koilbbl"] = { | ||
Line 6,320: | Line 6,298: | ||
default = "impgal USgal", | default = "impgal USgal", | ||
link = "Litre", | link = "Litre", | ||
}, | }, | ||
["m3"] = { | ["m3"] = { | ||
Line 6,417: | Line 6,387: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.119240471196, | scale = 0.119240471196, | ||
default = " | default = "l USgal impgal", | ||
link = "Barrel (unit)", | link = "Barrel (unit)", | ||
}, | }, | ||
Line 6,427: | Line 6,397: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.117347765304, | scale = 0.117347765304, | ||
default = " | default = "l USgal impgal", | ||
link = "Barrel (unit)", | link = "Barrel (unit)", | ||
}, | }, | ||
Line 6,437: | Line 6,407: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.03523907016688, | scale = 0.03523907016688, | ||
default = " | default = "l USdrygal impgal", | ||
link = "Bushel", | link = "Bushel", | ||
}, | }, | ||
Line 6,447: | Line 6,417: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.03523907016688, | scale = 0.03523907016688, | ||
default = " | default = "l USdrygal impgal", | ||
link = "Bushel", | link = "Bushel", | ||
}, | }, | ||
Line 6,467: | Line 6,437: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.00440488377086, | scale = 0.00440488377086, | ||
default = " | default = "l", | ||
link = "Gallon", | link = "Gallon", | ||
}, | }, | ||
Line 6,497: | Line 6,467: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.003785411784, | scale = 0.003785411784, | ||
default = " | default = "l impgal", | ||
link = "Gallon", | link = "Gallon", | ||
}, | }, | ||
Line 6,507: | Line 6,477: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.003785411784, | scale = 0.003785411784, | ||
default = " | default = "l impgal", | ||
}, | }, | ||
["USgi"] = { | ["USgi"] = { | ||
Line 6,524: | Line 6,494: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.01761953508344, | scale = 0.01761953508344, | ||
default = " | default = "l impgal", | ||
link = "Kenning (unit)", | link = "Kenning (unit)", | ||
}, | }, | ||
Line 6,553: | Line 6,523: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.00880976754172, | scale = 0.00880976754172, | ||
default = " | default = "l impgal", | ||
link = "Peck", | link = "Peck", | ||
}, | }, | ||
Line 6,563: | Line 6,533: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.000473176473, | scale = 0.000473176473, | ||
default = " | default = "l imppt", | ||
link = "Pint", | link = "Pint", | ||
}, | }, | ||
Line 6,601: | Line 6,571: | ||
utype = "volume", | utype = "volume", | ||
scale = 0.009, | scale = 0.009, | ||
default = " | default = "l", | ||
link = "Case (goods)", | link = "Case (goods)", | ||
}, | }, | ||
Line 6,612: | Line 6,582: | ||
target = "USgal", | target = "USgal", | ||
sp_us = true, | sp_us = true, | ||
default = "L impgal", | |||
customary= 2, | customary= 2, | ||
}, | }, | ||
Line 6,687: | Line 6,658: | ||
target = "cuin", | target = "cuin", | ||
symbol = "in<sup>3</sup>", | symbol = "in<sup>3</sup>", | ||
}, | }, | ||
["kcuft"] = { | ["kcuft"] = { | ||
Line 6,747: | Line 6,715: | ||
target = "USbbl", | target = "USbbl", | ||
sp_us = true, | sp_us = true, | ||
default = " | default = "l U.S.gal impgal", | ||
}, | }, | ||
["U.S.beerbbl"] = { | ["U.S.beerbbl"] = { | ||
target = "USbeerbbl", | target = "USbeerbbl", | ||
sp_us = true, | sp_us = true, | ||
default = " | default = "l U.S.gal impgal", | ||
}, | }, | ||
["U.S.bsh"] = { | ["U.S.bsh"] = { | ||
target = "USbsh", | target = "USbsh", | ||
sp_us = true, | sp_us = true, | ||
default = " | default = "l U.S.drygal impgal", | ||
}, | }, | ||
["U.S.bu"] = { | ["U.S.bu"] = { | ||
target = "USbu", | target = "USbu", | ||
sp_us = true, | sp_us = true, | ||
default = " | default = "l U.S.drygal impgal", | ||
}, | }, | ||
["U.S.drybbl"] = { | ["U.S.drybbl"] = { | ||
Line 6,791: | Line 6,759: | ||
target = "USgal", | target = "USgal", | ||
sp_us = true, | sp_us = true, | ||
default = "L impgal", | |||
link = "U.S. gallon", | link = "U.S. gallon", | ||
}, | }, | ||
Line 6,796: | Line 6,765: | ||
target = "USgal", | target = "USgal", | ||
sp_us = true, | sp_us = true, | ||
default = "L impgal", | |||
link = "U.S. gallon", | link = "U.S. gallon", | ||
}, | }, |