Jump to content

Module:Convert/extra/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add cda to match Module:Convert/extra so this sandbox won't show as different after the next release
preparing for new release: new temporary unit rutherford; cuerda and pferdestärkenstunde will be in main data
Line 18: Line 18:


local extra_units = {
local extra_units = {
["cda"] = {
["Rd"] = {
name1 = "cuerda",
_name1 = "rutherford",
symbol = "cda",
_symbol = "Rd",
utype = "area",
utype = "radioactivity",
scale = 3930.395625,
scale = 1e6,
default = "ha acre",
prefixes = 1,
default = "MBq",
link = "Rutherford (unit)",
},
},
}
}

Revision as of 03:53, 27 June 2017

-- 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 = {
    ["Rd"] = {
	_name1   = "rutherford",
	_symbol  = "Rd",
	utype    = "radioactivity",
	scale    = 1e6,
	prefixes = 1,
	default  = "MBq",
	link     = "Rutherford (unit)",
    },
}

return { extra_units = extra_units }