Module:Convert/extra

-- 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 = {
    ["bit"] = {
	_name1   = "bit",
	_symbol  = "bit",
	utype    = "information",
	scale    = 0.125,
	prefixes = 1,
	default  = "B",
	link     = "Bit",
    },
    ["CH"] = {
	name1    = "chain",
	symbol   = "ch",
	utype    = "length",
	scale    = 20.1168,
	default  = "ft m",
	subdivs  = { ["ft"] = { 66, default = "m" }, ["li"] = { 100, default = "m" }, ["yd"] = { 22, default = "m" } },
	link     = "Chain (unit)",
    },
    ["li"] = {
	name1    = "link",
	symbol   = "li",
	utype    = "length",
	scale    = 0.201168,
	default  = "cm",
	link     = "Link (unit)",
    },
    ["MI"] = {
	name1    = "mile",
	symbol   = "mi",
	utype    = "length",
	scale    = 1609.344,
	default  = "km",
	subdivs  = { ["CH"] = { 80, default = "km" }, ["chlk"] = { 80, default = "km" }, ["chain"] = { 80, default = "km" }, ["chainlk"] = { 80, default = "km" }, ["ft"] = { 5280, default = "km" }, ["furlong"] = { 8, default = "km" }, ["yd"] = { 1760, default = "km" } },
    },
    ["NMlk"] = {
	name1    = "[[nautical mile]]",
	symbol   = "[[Nautical mile|NM]]",
	utype    = "length",
	scale    = 1852,
	default  = "km mi",
	link     = "",
    },
}

return { extra_units = extra_units }

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.