Module:CountryData/cacheF: Difference between revisions
Appearance
Content deleted Content added
Add loadData-compatible modules to cache the content of the most-used country data |
(No difference)
|
Revision as of 19:23, 3 May 2021
local CountryData = require('Module:CountryData')
local redirects = {FRA='France', FIN='Finland', FRO='Faroe Islands', FJI='Fiji', FSM='Federated States of Micronesia', FRG='West Germany', FIJ='Fiji', ['Free French']='Free France', ['Free French Forces']='Free France', FRY='FR Yugoslavia'}
local pages = {'Federation of Bosnia and Herzegovina', 'Falkland Islands', 'Federated States of Micronesia', 'French Southern and Antarctic Lands', 'French Third Republic', 'Free France', 'Friesland', 'French First Republic', 'Faroe Islands', 'FR Yugoslavia', 'Flanders', 'French Guiana', 'French Polynesia', 'Flemish Brabant', 'France', 'Florida', 'Finland', 'Fiji'}
local p = {
redirects = redirects,
data = {}
}
local frame = mw.getCurrentFrame()
for _,v in ipairs(pages) do
p.data[v] = CountryData.gettable(frame, v, {})
end
return p