BellaCH
Created page with "-- Calculates the width of the span box for Template:Flaglist -- based on the specified image size local p = {} function p.luawidth(size) --For use within Lua local w if string.find(size,"^%d+x%d+px$") then -- width and height (eg. 20x10px) -- use specified width w = tonumber(string.match(size,"(%d+)x%d+px")) + 2 -- (2px for borders) elseif string.find(size,"^%d+px$") then -- width only (eg. 20px) -- use specified width w = tonumber(string.match(size,"(..."