Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:Icon box/data

Permanently protected module
From Wikipedia, the free encyclopedia
require('strict')

local p = {}

-- The module maps ISO 3166 codes and adjectives to their corresponding countries.
-- This table contains the remaining misc keys to map to countries (or regions or languages)
p.countryMap = {
	Arabic='Arabic language',
	['Arabic-speaking'] = 'Arabic language',
	ar='Arabic language',
	ara='Arabic language',
	['Baltic states']='Baltic States',
	['Baltic nations']='Baltic States',
	Canada='Canada',
	Czechia='Czech Republic',
	Congolese='Democratic Republic of the Congo',
	['Kingdom of Denmark']='Denmark',
	dra='Dravidian',
	nl='Dutch-speaking',
	nld='Dutch-speaking',
	dut='Dutch-speaking',
	['Eastern European']='Eastern Europe',
	['German-speaking']='German',
	German='German',
	de='German',
	deu='German',
	['Hong Kongese']='Hong Kong',
	Magyar='Hungary',
	Kashmiri='Kashmir',
	Keralite='Kerala',
	Kurdish='Kurdistan',
	Kurd='Kurdistan',
	ku='Kurdistan',
	kur='Kurdistan',
	['Kingdom of the Netherlands'] = 'Netherlands',
	Macedonia = 'North Macedonia',
	['Northern Irish'] = 'Northern Ireland',
	Odishan='Odisha',
	Ossetian='Ossetia',
	['Ossetian-speaking']='Ossetia',
	os='Ossetia',
	oss='Ossetia',
	Punjabi='Punjab',
	['Québécois']='Quebec',
	Roma='Romani',
	Tamil='Tamil Nadu',
	tam='Tamil Nadu',
	Trinidadian='Trinidad and Tobago',
	Tobagonian='Trinidad and Tobago',
	Emirates='United Arab Emirates',
    Uae='United Arab Emirates',
	['Great Britain']='United Kingdom',
	Britain='United Kingdom',
	['West Indian']='West Indies'
}

-- Normally, country or region XXX will link to [[Wikipedia talk:WikiProject XXX]]. The exceptions are listed below:
p.linkMap = {
	['Arabic language'] = 'Wikipedia talk:WikiProject Arab world',
	Australia = "Wikipedia:Australian Wikipedians' notice board",
	['Baltic States'] = 'Wikipedia talk:WikiProject Europe',
	Bangladesh = 'Wikipedia:Notice board for Bangladesh-related topics',
	Canada = "Wikipedia talk:Canadian Wikipedians' notice board",
	Dravidian = 'Wikipedia talk:WikiProject Dravidian civilizations',
	German = "Wikipedia:German-speaking Wikipedians' notice board",
	India = 'Wikipedia:Noticeboard for India-related topics',
	Kashmir = 'Wikipedia:Noticeboard for Kashmir-related topics',
	['Azad Kashmir'] = 'Wikipedia:Noticeboard for Kashmir-related topics',
	['Jammu and Kashmir'] = 'Wikipedia:Noticeboard for Kashmir-related topics',
	['New Zealand'] = "Wikipedia:New Zealand Wikipedians' notice board",
	Pakistan = 'Wikipedia talk:Notice board for Pakistan-related topics',
	Philippines = 'Wikipedia:Tambayan Philippines',
	Punjab = "Wikipedia:Punjabi Wikipedians' notice board",
	Quebec = "Wikipedia:Quebec Wikipedians' notice board",
	Romani = 'Wikipedia talk:WikiProject Romani people',
	['Sri Lanka'] = "Wikipedia:Sri Lankan Wikipedians' notice board",
	['United Kingdom'] = "Wikipedia:UK Wikipedians' notice board",
	Wales = "Wikipedia:Welsh Wikipedians' notice board",
	['West Indies'] = 'Wikipedia talk:WikiProject Caribbean'
}

--By default, a country or region XXX will have link text "XXX<br>notice board". The exceptions are:
p.textMap = {
	['Arabic language'] = 'Arabic-speaking',
	Assyria = 'Assyrian',
	['Czech Republic'] = 'Czech',
	['Democratic Republic of the Congo'] = 'Dem Rep Congo',
	German = 'German-speaking',
	['Azad Kashmir'] = 'Kashmir',
	['Jammu and Kashmir'] = 'Kashmir',
	Kurdistan = 'Kurdish-speaking',
	Ossetia = 'Ossetian-speaking',
	['Tamil Nadu'] = 'Tamil'
}

return p