Mô đun:Convert/extra/sandbox
< Mô đun:Convert | extra
Đây là trang chỗ thử mô đun cho Mô đun:Convert/extra (khác). |
Tài liệu mô đun[tạo]
-- Extra conversion data used by Mô đun:Convert.
--
-- [[Mô đun:Convert/data]] defines all units and is transcluded in all pages
-- where [[Mô đun: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 [[Mô đun:Convert/data]].
local extra_units = {
["Mile"] = {
symbol = "dặm",
usename = 1,
utype = "length",
scale = 1609.344,
default = "km",
},
-- [[Hệ đo lường cổ Việt Nam]]
["chai vai"] = {
name1 = "chai vai",
symbol = "chai vai",
utype = "length",
scale = 14.63,
default = "m",
link = "Hệ đo lường cổ Việt Nam",
},
["công"] = {
name1 = "công",
symbol = "công",
utype = "area",
scale = 1000,
default = "m2",
link = "Hệ đo lường cổ Việt Nam",
},
["túc"] = {
name1 = "túc",
symbol = "túc",
utype = "volume",
scale = (3+1/3)*10^-9,
default = "µL",
link = "Hệ đo lường cổ Việt Nam",
},
["uyên"] = {
name1 = "uyên",
symbol = "uyên",
utype = "volume",
scale = 0.001,
default = "L",
link = "Hệ đo lường cổ Việt Nam",
},
["tau"] = {
name1 = "tau",
symbol = "tau",
utype = "volume",
scale = 0.001*20,
default = "L",
link = "Hệ đo lường cổ Việt Nam",
},
["cây"] = {
name1 = "cây",
symbol = "cây",
utype = "mass",
scale = 0.001*37.50,
default = "g",
link = "Hệ đo lường cổ Việt Nam",
},
["chỉ"] = {
name1 = "chỉ",
symbol = "chỉ",
utype = "mass",
scale = 0.001*3.75,
default = "g",
link = "Hệ đo lường cổ Việt Nam",
},
["canh"] = {
name1 = "canh",
symbol = "canh",
utype = "time",
scale = 3600*2,
default = "h",
link = "Hệ đo lường cổ Việt Nam",
},
}
return { extra_units = extra_units }