Module:ConvertIB/data: Difference between revisions
Appearance
en>MusikBot II m Protected "Module:ConvertIB/data": High-risk template or module: 20995 transclusions (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) |
Richard470l (talk | contribs) m 1 revision imported: election and country infoboxes |
||
(No difference)
|
Latest revision as of 13:58, 28 September 2025
Documentation for this module may be created at Module:ConvertIB/data/doc
-- 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}