Module:CountryData/cacheR

MyWikiBiz, Author Your Legacy — Tuesday November 12, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:CountryData/cacheR/doc

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