Jump to content

Module:Convert/extra

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Johnuniq (talk | contribs) at 09:01, 15 March 2017 (add fsw, msw per request (foot sea water, metre sea water)). 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 = {
    ["fsw"] = {
	name1    = "foot sea water",
	name2    = "feet sea water",
	symbol   = "fsw",
	utype    = "pressure",
	scale    = 3063.79359,
	default  = "msw",
	link     = "Metre sea water",
    },
    ["msw"] = {
	name1    = "metre sea water",
	name1_us = "meter sea water",
	name2    = "metres sea water",
	name2_us = "meters sea water",
	symbol   = "msw",
	utype    = "pressure",
	scale    = 10051.8162,
	default  = "fsw",
    },
}

return { extra_units = extra_units }