Module:CountryData/cacheF: 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 = {'Algeria', 'Azerbaijan', 'Bosnia_and_Herzegovina', 'Georgia_(country)', 'Hong_Kong', 'Latvia', 'Lithuania', 'Morocco', 'Pakistan', 'Republic_of_Ireland', 'Singapore', 'Uruguay'} |
|||
local pages = {'FR Yugoslavia', 'Falkland Islands', 'Faroe Islands', 'Federated States of Micronesia', 'Federation of Bosnia and Herzegovina', 'Fiji', 'Finland', 'Flanders', 'Flemish Brabant', 'Florida', 'France', 'Free France', 'French First Republic', 'French Guiana', 'French Polynesia', 'French Southern and Antarctic Lands', 'French Third Republic', 'Friesland'} |
|||
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 |
||
Revision as of 20:06, 5 May 2021
local CountryData = require('Module:CountryData')
local pages = {'Algeria', 'Azerbaijan', 'Bosnia_and_Herzegovina', 'Georgia_(country)', 'Hong_Kong', 'Latvia', 'Lithuania', 'Morocco', 'Pakistan', 'Republic_of_Ireland', 'Singapore', 'Uruguay'}
local p = {
data = {}
}
local frame = mw.getCurrentFrame()
for _,v in ipairs(pages) do
p.data[v] = CountryData.gettable(frame, v, {})
end
return p