Module:Geography
Documentation for this module may be created at Module:Geography/doc
local p = {}
function p.sharedPlace(frame)
local args = frame.args or frame:getParent().args
local a = ""
local b = true
for name in string.gmatch(args[1], "[^,]+") do
name = name:gsub("^%s*(.-)%s*$", "%1")
if a == "" then
a = name
elseif a ~= name then
b = false
end
end
if b then return a else return "" end
end
function p.getRegion(country)
-- Switch on the provided country and return the region string.
end
return p