Module:Convert/extra and Module:Convert/extra/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
imported>MusikBot II
m (Protected "Module:Convert/extra": High-risk template or module: 250 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
 
imported>Johnuniq
(remove units added to data/sandbox)
 
Line 18: Line 18:


local extra_units = {
local extra_units = {
    ["sec"] = {  -- experiment per request at [[Template talk:Convert#Auto-select time unit?]]
_name1  = "second",
_symbol  = "s",
utype    = "time",
scale    = 1,
prefixes = 1,
default  = "v < 7200 ! min ! h",
link    = "Second",
    },
    ["inches"] = {
target  = "in",
    },
    ["bit"] = {
_name1  = "bit",
_symbol  = "bit",
utype    = "information",
scale    = 0.125,
prefixes = 1,
default  = "B",
link    = "Bit",
    },
    ["B"] = {
_name1  = "byte",
_symbol  = "B",
utype    = "information",
scale    = 8,
prefixes = 1,
default  = "bit",
link    = "Byte",
    },
    ["DW-tonne"] = {
name1_us = "deadweight metric ton",
symbol  = "deadweight tonne",
sym_us  = "~deadweight metric ton",
usename  = 1,
utype    = "mass",
scale    = 1000,
default  = "DWton",
link    = "Deadweight tonnage",
    },
    ["hm³"] = {
target  = "hm3",
    },
}
}


return { extra_units = extra_units }
return { extra_units = extra_units }