Jump to content

Module:Convert/extra

विकिपीडिया से
imported>GliderMaven के द्वारा 01:11, 29 अप्रैल 2015 के बदलाव
-- 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 = {
    ["kWh/100 mi"] = {
	name1    = "kilowatt-hour per 100 miles",
	name1_us = "kilowatt-hour per 100 miles",
	name2    = "kilowatt-hours per 100 miles",
	name2_us = "kilowatt-hours per 100 miles",
	symbol   = "kW·hrs/100 miles",
	utype    = "energy per unit length",
	scale    = 22.37,
	default  = "mpge",
	link     = "Miles per gallon gasoline equivalent",
    },
	["mpge"] = {
	name1    = "miles per gallon gasoline equivalent",
	name2    = "miles per gallon gasoline equivalent",
	symbol   = "mpge",
	utype    = "energy per unit length",
	invert   = -1,
	iscomplex= true,
	scale    = 13.00e-6,
	default  = "kWh/100 mi",
	link     = "Miles per gallon gasoline equivalent",
    },
}

return { extra_units = extra_units }