Difference between revisions of "Module:Convert/extra/sandbox"
< Module:Convert | extra
Jump to navigation
Jump to search
blackwiki>Johnuniq (copy from Module:Convert/extra) |
blackwiki>Johnuniq (copy from Module:Convert/extra) |
||
| Line 18: | Line 18: | ||
local extra_units = { | local extra_units = { | ||
| + | ["/sqcm"] = { | ||
| + | name1 = "per square centimetre", | ||
| + | name1_us = "per square centimeter", | ||
| + | name2 = "per square centimetre", | ||
| + | name2_us = "per square centimeter", | ||
| + | symbol = "/cm<sup>2</sup>", | ||
| + | utype = "per unit area", | ||
| + | scale = 10000000000.0, | ||
| + | default = "/sqin", | ||
| + | link = "Square centimetre", | ||
| + | }, | ||
| + | ["/sqin"] = { | ||
| + | name1 = "per square inch", | ||
| + | name2 = "per square inch", | ||
| + | symbol = "/in<sup>2</sup>", | ||
| + | utype = "per unit area", | ||
| + | scale = 1550003100.0062, | ||
| + | default = "/sqcm", | ||
| + | link = "Square inch", | ||
| + | }, | ||
| + | ["/cm2"] = { | ||
| + | target = "/sqcm", | ||
| + | }, | ||
| + | ["/in2"] = { | ||
| + | target = "/sqin", | ||
| + | } | ||
} | } | ||
return { extra_units = extra_units } | return { extra_units = extra_units } | ||
Revision as of 09:51, 24 November 2013
Documentation for this module may be created at Module:Convert/extra/sandbox/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 = {
["/sqcm"] = {
name1 = "per square centimetre",
name1_us = "per square centimeter",
name2 = "per square centimetre",
name2_us = "per square centimeter",
symbol = "/cm<sup>2</sup>",
utype = "per unit area",
scale = 10000000000.0,
default = "/sqin",
link = "Square centimetre",
},
["/sqin"] = {
name1 = "per square inch",
name2 = "per square inch",
symbol = "/in<sup>2</sup>",
utype = "per unit area",
scale = 1550003100.0062,
default = "/sqcm",
link = "Square inch",
},
["/cm2"] = {
target = "/sqcm",
},
["/in2"] = {
target = "/sqin",
}
}
return { extra_units = extra_units }