Module:Geography: Difference between revisions
| Robertbaxter (talk | contribs)  (Created page with "local p = {}  function p.sharedPlace(list, inter) end  function p.getRegion(country) end  return p") | Robertbaxter (talk | contribs)  No edit summary | ||
| Line 2: | Line 2: | ||
| function p.sharedPlace(list, inter) | function p.sharedPlace(list, inter) | ||
| -- Walk through the list and check if all items are identical. | |||
| -- If yes, return that item. | |||
| -- If not, return inter if set or an empty string if not. | |||
| end | end | ||
| function p.getRegion(country) | function p.getRegion(country) | ||
| -- Switch on the provided country and return the region string. | |||
| end | end | ||
| return p | return p | ||
Revision as of 19:42, 2 January 2025
Documentation for this module may be created at Module:Geography/doc
local p = {}
function p.sharedPlace(list, inter)
-- Walk through the list and check if all items are identical.
-- If yes, return that item.
-- If not, return inter if set or an empty string if not.
end
function p.getRegion(country)
-- Switch on the provided country and return the region string.
end
return p