Module:CountryData/cacheU: 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 = {'British_Columbia', 'British_Virgin_Islands', 'Connecticut', 'Cook_Islands', 'Empire_of_Japan', 'French_Polynesia', 'Marshall_Islands', 'New_Caledonia', 'North_Carolina', 'Pennsylvania', 'South_Carolina', 'United_Nations'} |
|||
local pages = {'U.S. Virgin Islands', 'UNESCO', 'Uganda', 'Ukraine', 'Ukrainian Soviet Socialist Republic', 'Union of South Africa', 'United Arab Emirates', 'United Arab Republic', 'United Kingdom of Great Britain and Ireland', 'United Kingdom', 'United Nations', 'United States Army', 'United States Federal Government', 'United States Marine Corps', 'United States Navy', 'United States military', 'United States', 'Upper Volta', 'Uruguay', 'Utah', 'Uzbekistan'} |
|||
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:09, 5 May 2021
local CountryData = require('Module:CountryData')
local pages = {'British_Columbia', 'British_Virgin_Islands', 'Connecticut', 'Cook_Islands', 'Empire_of_Japan', 'French_Polynesia', 'Marshall_Islands', 'New_Caledonia', 'North_Carolina', 'Pennsylvania', 'South_Carolina', 'United_Nations'}
local p = {
data = {}
}
local frame = mw.getCurrentFrame()
for _,v in ipairs(pages) do
p.data[v] = CountryData.gettable(frame, v, {})
end
return p