Jump to content

Module:CountryData/cacheF

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by GKFX (talk | contribs) at 19:23, 3 May 2021 (Add loadData-compatible modules to cache the content of the most-used country data). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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