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 = { | ||
− | [" | + | ["100mi"] = { |
− | + | target = "mi", | |
− | + | multiplier= 100, | |
}, | }, | ||
− | [" | + | ["100miles"] = { |
− | + | target = "mi", | |
− | + | symbol = "miles", | |
− | + | multiplier= 100, | |
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
− | [" | + | ["g0-temp"] = { -- test how g0 will work in next release; the zero is not in italics |
− | + | name1 = "standard gravity", | |
− | + | name2 = "standard gravities", | |
− | + | symbol = "''g''<sub>0</sub>", | |
+ | utype = "acceleration", | ||
+ | scale = 9.80665, | ||
+ | default = "m/s2", | ||
}, | }, | ||
− | + | ["g-force"] = { | |
− | [" | + | name2 = "''g''", |
− | + | symbol = "''g''", | |
− | + | utype = "acceleration", | |
− | + | scale = 9.80665, | |
− | + | default = "m/s2", | |
− | + | link = "g-force", | |
− | |||
}, | }, | ||
− | [" | + | ["kpm"] = { |
− | + | name1 = "kilopond metre", | |
− | + | name1_us = "kilopond meter", | |
− | + | symbol = "kp⋅m", | |
− | + | utype = "torque", | |
− | + | scale = 9.80665, | |
− | + | default = "Nm lbft", | |
+ | link = "Kilogram metre (torque)", | ||
}, | }, | ||
− | [" | + | ["miyd"] = { |
− | + | combination= { "yd", "mi" }, | |
− | + | multiple = { 1760 }, | |
− | + | utype = "length", | |
− | |||
− | |||
− | |||
}, | }, | ||
− | [" | + | ["scf2"] = { |
− | + | name1 = "standard cubic foot", | |
− | + | name2 = "standard cubic feet", | |
− | + | symbol = "scf", | |
− | + | utype = "energy", | |
− | + | scale = 2869.2044809344, | |
− | + | default = "kJ", | |
+ | link = "Standard cubic foot", | ||
}, | }, | ||
− | [" | + | ["scfoot2"] = { |
− | + | name1 = "standard cubic foot", | |
− | + | name2 = "standard cubic foot", | |
− | + | symbol = "scf", | |
− | + | utype = "energy", | |
− | + | scale = 2869.2044809344, | |
− | + | default = "kJ", | |
+ | link = "Standard cubic foot", | ||
}, | }, | ||
− | [" | + | ["mi/kWh"] = { |
− | + | name1 = "miles per kiloWatt hour", | |
− | + | per = { "mi", "kWh" }, | |
− | + | utype = "Energy per unit length", | |
− | + | invert = -1, | |
− | + | default = "kWh/100km", | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
} | } | ||
return { extra_units = extra_units } | return { extra_units = extra_units } |