local p =
-- Given an input area, return a map zoom level to use with mw:Extension:Kartographer. Defaults to mapzoom=15. function p.autoMapZoom(frame) local sizestr,null = frame.args[1]:gsub("%D+%.?%D+", ""):gsub(",","") local size = tonumber(sizestr) or 0 local LUT = for zoom, scale in ipairs(LUT) do if size > scale then return zoom+1 end end return 15end
return p