Module:Convert/extra

This is an old revision of this page, as edited by WOSlinker (talk | contribs) at 17:00, 6 October 2013 (add mm/h). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

-- 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 = {
    ["cm/h"] = {
	name1	 = "centimetre per hour",
	name1_us = "centimeter per hour",
	name2	 = "centimetres per hour",
	name2_us = "centimeters per hour",
	symbol	 = "cm/h",
	utype	 = "speed",
	scale	 = 2.777777777777778e-6,
	default	 = "in/h",
	link	 = "Metre per hour",
    },
    ["mm/h"] = {
	name1	 = "millimetre per hour",
	name1_us = "millimeter per hour",
	name2	 = "millimetres per hour",
	name2_us = "millimeters per hour",
	symbol	 = "mm/h",
	utype	 = "speed",
	scale	 = 2.777777777777778e-5,
	default	 = "in/h",
	link	 = "Metre per hour",
    },
    ["in/h"] = {
	name1	 = "inch per hour",
	name2	 = "inches per hour",
	symbol	 = "in/h",
	utype	 = "speed",
	scale	 = 7.055555555555556e-6,
	default	 = "cm/h",
	link	 = "Inch",
    }
}

return { extra_units = extra_units }