Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:ConvertIB/data

Permanently protected module
From Wikipedia, the free encyclopedia
-- 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}