Sửa đổi Mô đun:Convert/extra

Chú ý: Bạn chưa đăng nhập và địa chỉ IP của bạn sẽ hiển thị công khai khi lưu các sửa đổi.

Bạn có thể tham gia như người biên soạn chuyên nghiệp và lâu dài ở Bách khoa Toàn thư Việt Nam, bằng cách đăng ký và đăng nhập - IP của bạn sẽ không bị công khai và có thêm nhiều lợi ích khác.

Các sửa đổi có thể được lùi lại. Xin hãy kiểm tra phần so sánh bên dưới để xác nhận lại những gì bạn muốn làm, sau đó lưu thay đổi ở dưới để hoàn tất việc lùi lại sửa đổi.

Bản hiện tại Nội dung bạn nhập
Dòng 1: Dòng 1:
 +
-- 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 = {
 
local extra_units = {
     ["au"] = {
+
     ["100mi"] = {
    symbol = "au",
+
target  = "mi",
    target = "AU"
+
multiplier= 100,
 
     },
 
     },
     ["u"] = {
+
     ["100miles"] = {
    symbol = "u",
+
target  = "mi",
    name1 =  "đơn vị khối lượng nguyên tử thống nhất",
+
symbol  = "miles",
    utype    = "mass",
+
multiplier= 100,
    scale    =  1.6605389e-27,
 
    prefixes = 1,
 
    default  = "kg",
 
    link    = "Đơn vị khối lượng nguyên tử",
 
 
     },
 
     },
     ["dalton"] = {
+
     ["g0-temp"] = { -- test how g0 will work in next release; the zero is not in italics
    target = "u",
+
name1    = "standard gravity",
    symbol = "Da",
+
name2    = "standard gravities",
    name1 =  "dalton",
+
symbol   = "''g''<sub>0</sub>",
 +
utype    = "acceleration",
 +
scale    = 9.80665,
 +
default = "m/s2",
 
     },
 
     },
-- [[Hệ đo lường cổ Việt Nam]]
+
     ["g-force"] = {
     ["chai vai"] = {
+
name2   = "''g''",
        name1   = "chai vai",
+
symbol  = "''g''",
        symbol  = "chai vai",
+
utype    = "acceleration",
        utype    = "length",
+
scale    = 9.80665,
        scale    = 14.63,
+
default  = "m/s2",
        default  = "m",
+
link    = "g-force",
        link    = "Hệ đo lường cổ Việt Nam",
 
 
     },
 
     },
     ["công"] = {
+
     ["kpm"] = {
        name1    = "công",
+
name1    = "kilopond metre",
        symbol  = "công",
+
name1_us = "kilopond meter",
        utype    = "area",
+
symbol  = "kp⋅m",
        scale    = 1000,
+
utype    = "torque",
        default  = "m2",
+
scale    = 9.80665,
        link    = "Hệ đo lường cổ Việt Nam",
+
default  = "Nm lbft",
 +
link    = "Kilogram metre (torque)",
 
     },
 
     },
     ["túc"] = {
+
     ["miyd"] = {
        name1    = "túc",
+
combination= { "yd", "mi" },
        symbol  = "túc",
+
multiple = { 1760 },
        utype    = "volume",
+
utype   = "length",
        scale   = (3+1/3)*10^-9,
 
        default  = "µL",
 
        link    = "Hệ đo lường cổ Việt Nam",
 
 
     },
 
     },
     ["uyên"] = {
+
     ["scf2"] = {
        name1    = "uyên",
+
name1    = "standard cubic foot",
        symbol  = "uyên",
+
name2    = "standard cubic feet",
        utype    = "volume",
+
symbol  = "scf",
        scale    = 0.001,
+
utype    = "energy",
        default  = "L",
+
scale    = 2869.2044809344,
        link    = "Hệ đo lường cổ Việt Nam",
+
default  = "kJ",
 +
link    = "Standard cubic foot",
 
     },
 
     },
     ["tau"] = {
+
     ["scfoot2"] = {
        name1    = "tau",
+
name1    = "standard cubic foot",
        symbol  = "tau",
+
name2    = "standard cubic foot",
        utype    = "volume",
+
symbol  = "scf",
        scale    = 0.001*20,
+
utype    = "energy",
        default  = "L",
+
scale    = 2869.2044809344,
        link    = "Hệ đo lường cổ Việt Nam",
+
default  = "kJ",
 +
link    = "Standard cubic foot",
 
     },
 
     },
     ["cây"] = {
+
     ["mi/kWh"] = {
        name1    = "cây",
+
name1    = "miles per kiloWatt hour",
        symbol  = "cây",
+
per     = { "mi", "kWh" },
        utype    = "mass",
+
utype = "Energy per unit length",
        scale    = 0.001*37.50,
+
invert   = -1,
        default  = "g",
+
default = "kWh/100km",
        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 }
 
return { extra_units = extra_units }

Lưu ý rằng tất cả các đóng góp của bạn tại Bách khoa Toàn thư Việt Nam sẽ được phát hành theo giấy phép Creative Commons Ghi công–Chia sẻ tương tự (xem thêm Bản quyền). Nếu bạn không muốn những gì mình viết ra sẽ có thể được bình duyệt và có thể bị sửa đổi, và không sẵn lòng cho phép phát hành lại, xin đừng nhấn nút “Lưu trang”. Đảm bảo rằng chính bạn là tác giả của những gì mình viết ra, hoặc chép nó từ một nguồn thuộc phạm vi công cộng hoặc tự do tương đương. ĐỪNG ĐĂNG NỘI DUNG CÓ BẢN QUYỀN MÀ CHƯA XIN PHÉP!

Hủy bỏ Trợ giúp sửa đổi (mở cửa sổ mới)

Bản mẫu dùng trong trang này: