Jump to content

Module:Map/region

From Wikivoyage

Documentation for this module may be created at Module:Map/region/doc

local p = {};

function p.trim (frame)
 local name = mw.text.trim(frame.args[1] or "")
 local page = mw.text.jsonEncode(mw.ext.data.get(name))
 page = string.match(page,"%[%[%[..+%]%]%]")
 return string.sub(page,2,-2)
end

return p;