وحدة:Convert/extra
توثيق الوحدة [أنشئ] [محو الاختزان][استخدامات] [قوالب]
-- Extra conversion data used by Module:Convert.
--
-- [[Module:Convert/data]] defines all units and is transcluded in all pages
-- where [[Module:Convert]] is used. Testing new units by editing that module
-- would invalidate the cache for all affected pages.
--
-- For quick changes and experiments with new units, this module can be edited.
-- Since this module is transcluded in only a small number of pages, changes
-- should cause little server overhead and should propagate quickly.
--
-- If a unit is defined in the data module, any definition here is ignored,
-- so defining the same unit in both modules is not an error.
-- A unit defined here can refer to units that are also defined here, and
-- can refer to units defined in the data module.
--
-- Periodically, those extra units that are wanted permanently can be removed
-- from here after being added to [[Module:Convert/data]].
local extra_units = {
["u"] = {
symbol = "u",
name1 = "unified atomic mass unit",
utype = "mass",
scale = 1.6605389e-27,
prefixes = 1,
default = "kg",
link = "Atomic mass unit",
},
["dalton"] = {
target = "u",
symbol = "Da",
name1 = "dalton",
},
["feddan"] = {
symbol = "feddan",
usename = 1,
utype = "area",
scale = 4200,
default = "m2",
},
["Mi"] = {
name1 = "mile",
symbol = "mi",
utype = "length",
scale = 1609.344,
default = "km",
subdivs = { ["ch"] = { 80, default = "km" }, ["chain"] = { 80, default = "km" }, ["ft"] = { 5280, default = "km" }, ["yd"] = { 1760, default = "km" }, ["furlong"] = { 8, default = "km" } },
},
["micron"] = {
target = "µm",
default = "µin",
},
}
return { extra_units = extra_units }