Module:CountryData/cacheR: Difference between revisions
Appearance
Content deleted Content added
Put the redirects all on the summary cache. *** existing text overwritten *** |
Re-arrange cache data by popularity |
||
Line 1: | Line 1: | ||
local CountryData = require('Module:CountryData') |
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 pages = {'Republic of Artsakh', 'Republic of China (1912–1949)', 'Republic of China', 'Republic of Crimea', 'Republic of Ireland', 'Republic of Rose Island', 'Republic of Texas', 'Republic of Venice', 'Republic of the Congo', 'Republika Srpska', 'Rhode Island', 'Rhodesia', 'Rio Grande do Sul', 'Rio de Janeiro', 'Romania', 'Russia', 'Russian Empire', 'Russian Soviet Federative Socialist Republic', 'Rwanda', 'Réunion'} |
|||
local p = { |
local p = { |
||
data = {} |
|||
} |
} |
||
local frame = mw.getCurrentFrame() |
local frame = mw.getCurrentFrame() |
||
for _,v in ipairs(pages) do |
for _,v in ipairs(pages) do |
||
p.data[v] = CountryData.gettable(frame, v, {}) |
|||
end |
end |
||
Latest revision as of 20:08, 5 May 2021
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