Jump to content

Module:CountryData/cacheR

From Wikipedia, the free encyclopedia
local CountryData = require('Module:CountryData')
local pages = {'Bhutan', 'Equatorial_Guinea', 'Eritrea', 'Eswatini', 'Gibraltar', 'Grenada', 'Guam', 'Lesotho', 'Saint_Vincent_and_the_Grenadines', 'Seychelles', 'U.S._Virgin_Islands', 'Vanuatu'}
local p = {
    data = {}
}
local frame = mw.getCurrentFrame()

for _,v in ipairs(pages) do
    p.data[v] = CountryData.gettable(frame, v, {})
end

return p