Jump to content

Module:ConvertIB/data

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Hike395 (talk | contribs) at 05:49, 24 September 2025 (factor data out of Module:ConvertIB). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Units accepted by {{convert}} that come in groups (e.g., "5 ft 6 in")
local multiple = 
{'mich', 'michlk', 'michainlk', 'miyd', 'miydftin', 'mift', 'ydftin', 'ydft',
'ftin', 'footin', 'handin', 'lboz', 'stlb', 'stlboz', 'stlb'}

-- Convert unit list to hash
local multTable = {}
for _, v in ipairs(multiple) do
	multTable[v] = true
end

local impPref = {'imperial', 'english', 'uk', 'us', 'u.s.', 'us customary', 'u.s. customary', 'standard'}

local impPrefTable = {}
for _, v in ipairs(impPref) do
    impPrefTable[v] = true
end

return {multiple=multTable, impPref=impPrefTable}