Content deleted Content added
some tests of "extra" units; the ultra-clever script editor has changed all my tab characters to spaces on paste |
try "per-km2" workaround per Template talk:Convert#per km² |
||
(195 intermediate revisions by 13 users not shown) | |||
Line 1:
--
--
-- [[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
--
-- 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 = {
_name1 = "bit",
scale
prefixes = 1,▼
default
},
["
name1
name2 = "per square kilometre",
name2_us = "per square kilometer",
▲ utype = "length",
symbol = "per km<sup>2</sup>",
scale
default = "/sqmi",
▲ ["DM"] = {
▲ _symbol = "Dm",
▲ prefixes = 1,
▲ link = "Double metre",
},
}
|