View source for Module:Slippymap
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
-- cleans input of excessive whitespace typically added by linebreaks and spaces
function clean(input)
return input and #input > 0 and mw.text.trim(input) or nil
end
function p.slippymap(frame)
local args = (frame:getParent() or frame).args
local options = {}
options.latitude = tonumber(clean(args.lat), 10) or 51.3432699
options.longitude = tonumber(clean(args.lon), 10) or 0.52700328
options.height = tonumber(clean(args.height), 10) or 400
if clean(args.width) == "full" then
options.width = "full"
elseif args.width then
options.width = tonumber(clean(args.width), 10) or 400
else
options.width = 400
000
1:0
Templates used on this page:
Return to Module:Slippymap.