Module:Convert/extra

This is an old revision of this page, as edited by GliderMaven (talk | contribs) at 13:49, 14 December 2013. 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 = {
    ["$/g"] = {
	per      = { "$", "g" },
	utype    = "cost $ per unit mass",
	default  = "$/lb",
    },
    ["$/oz"] = {
	per      = { "$", "oz" },
	utype    = "cost $ per unit mass",
	default  = "$/g",
    },
    ["gr water"] = {
        name1    = "grains water",
        name2    = "grains water",
        symbol   = "gr H<sub>2</sub>O",
        utype    = "volume",
        scale    = 0.00000006479891,
        default  = "cm3",
        link     = "Grain (unit)",
    },
    ["lb(f)"] = {
        name1    = "pound",
        symbol   = "lb",
        utype    = "force",
        scale    = 4.4482216152605,
        default  = "N",
        link     = "Pound-force",
    },
    ["DPI"] = {
    	name1    = "DPI",
    	name2    = "DPI",
    	symbol   = "DPI",
    	utype    = "dotlength",
    	invert   = -1,
		iscomplex= true,
    	scale    = 1/0.0254,
    	default  = "pitch",
    	link     = "Dots per inch",
    },
    ["pitch"] = {
    	name1    = "um/dot",
    	name2    = "um/dot",
    	symbol   = "um/dot",
    	utype    = "dotlength",
    	invert   = 1,
    	scale    = 0.000001,
    	default  = "DPI",
    	link     = "Dots_per_inch#Proposed_metrication",
    },
    ["dpcm"] = {
    	name1    = "dot/cm",
    	name2    = "dot/cm",
    	symbol   = "dot/cm",
    	utype    = "dotlength",
    	invert   = -1,
		iscomplex= true,
    	scale    = 1/0.01,
    	default  = "DPI",
    	link     = "Dots_per_inch#Proposed_metrication",
    },
    ["isp"] = {
    	name1    = "second",
    	symbol   = "second",
    	utype    = "speed",
    	invert   = 1,
    	scale    = 9.8066,
    	default  = "m/s",
    	link     = "specific impulse",
    },
    ["si tsfc"] = {
    	name1    = "g/kNs",
    	name2    = "g/kNs",
    	symbol   = "g/kNs",
    	utype    = "speed",
    	invert   = -1,
		iscomplex= true,
    	scale    = 1/101972*9.8066,
    	default  = "tsfc",
    	link     = "thrust specific fuel consumption",
    },
    ["tsfc"] = {
    	name1    = "lb/lbf h",
    	name2    = "lb/lbf h",
    	symbol   = "lb/lbf h",
    	utype    = "speed",
    	invert   = -1,
		iscomplex= true,
    	scale    = 1/9.8066/3600,
    	default  = "si_tsfc",
    	link     = "thrust specific fuel consumption",
    },
}

return { extra_units = extra_units }