Module:Convert/extra: Difference between revisions

Jump to navigation Jump to search
(Created page with "-- 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 n...")
 
No edit summary
Line 19: Line 19:
local extra_units = {
local extra_units = {
     ["csqmi"] = {
     ["csqmi"] = {
target  = "mi",
name1    = "square Catherinian mile",
name1    = "square Catherinian mile",
symbol = "sq [[Catherinian units|Cath. miles]]",
symbol = "sq [[Catherinian units|Cath. miles]]",

Revision as of 22:32, 23 February 2020

Documentation for this module may be created at Module:Convert/extra/doc

-- 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 = {
    ["csqmi"] = {
	name1    = "square Catherinian mile",
	symbol = "sq [[Catherinian units|Cath. miles]]",
	utype    = "area",
	default = "km2",
	scale = "2957675.34",
    },
    

}

return { extra_units = extra_units }