Module:Regions of France

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Lua

CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules

Examples of use

[edit]
{{#invoke:Countries|main|Module:Regions of France|showcode=yes}}
  • {{Regions of France|prefix=:Category:}} gives:
  • {{Regions of France|prefix=:Category:|showcode=}} gives:
  • {{Regions of France|prefix=:Category:|all=1}} gives:

See also

[edit]

Code

--[=[
Data defining countries for {{#invoke:Countries|main|Module:Departments of France}}.

Output is pattern after making these substitutes:
	{lang}		User's language from {{int:lang}} such as 'en' or 'de'.
	{dir}		Language direction 'ltr' or 'rtl'.
	{colon}		Language equivalent of ": " from {{colon|lang}}.
	{XYZtitle}	Title for lang from XYZ section of defined titles.
	{XYZlist}	List of countries for lang from XYZ section of defined lists.
Where XYZ must consist of en alphabetic characters [A-Za-z].
]=]
return {
	titles = {
		met = {
			['be-tarask'] = 'Адміністрацыйныя рэгіёны і тэрыторыі мэтрапольнай Францыі (<small style="font-size:88%"><sup>‡</sup></small> з пачатку 2016)',
			de = 'Verwaltungsregionen und territoriale Gemeinschaft von Metropolitan-Frankreich (<small style="font-size:88%"><sup>‡</sup></small> seit Anfang 2016)',
			en = 'Administrative regions and territorial collectivity of Metropolitan France (<small style="font-size:88%"><sup>‡</sup></small> since start of 2016)',
			es = 'Regiones administrativas y colectividade territoriale de Francia metropolitana (<small style="font-size:88%"><sup>‡</sup></small> desde principios de 2016)',
			fr = 'Régions administratives et collectivité territoriale de France métropolitaine (<small style="font-size:88%"><sup>‡</sup></small> depuis le début de 2016)',
			it = 'Regioni amministrative e collettività territoriale di Francia metropolitana (<small style="font-size:88%"><sup>‡</sup></small> da inizio 2016)',
			nb = 'Administrative regioner og territoriell kollektivitet i Frankrike metropolitaine (<small style="font-size:88%"><sup>‡</sup></small> siden starten av 2016)',
			nl = 'Administratieve regio’s en territoriale collectiviteit van Europees Frankrijk (<small style="font-size:88%"><sup>‡</sup></small> sinds begin 2016)',
			nn = 'Administrative regionar og territoriell kollektivitet i Frankrike metropolitaine (<small style="font-size:88%"><sup>‡</sup></small> sidan starten av 2016)',
			no = 'Administrative regioner og territoriell kollektivitet i Frankrike metropolitaine (<small style="font-size:88%"><sup>‡</sup></small> siden starten av 2016)',
			pt = 'Regiões administrativas e coletividade territorial da França Metropolitana (<small style="font-size:88%"><sup>‡</sup></small> desde o início de 2016)',
			sl = 'Administrativne regije in teritorialna kolektiviteta metropolitanske Francije (<small style="font-size:88%"><sup>‡</sup></small> od začetka leta 2016)',
			sr = 'Административни региони и територијални колективитет метрополитенске Француске (<small style="font-size:88%"><sup>‡</sup></small> од почетка 2016)',
			['sr-latn'] = 'Administrativni regioni i teritorijalni kolektivitet metropolitenske Francuske (<small style="font-size:88%"><sup>‡</sup></small> od početka 2016)',
			['zh-hans'] = '法国本土的大区和领土集体(<small style="font-size:88%"><sup>‡</sup></small>自2016年初开始)',
			['zh-hant'] = '法國本土的大區與領土集體(<small style="font-size:88%"><sup>‡</sup></small>自2016年初開始)',
		},
		metf = {
			['be-tarask'] = 'Колішнія адміністрацыйныя рэгіёны мэтрапольнай Францыі (да канца 2015)',
			de = 'Ehemalige Verwaltungsregionen von Metropolitan-Frankreich (bis Ende 2015)',
			en = 'Former administrative regions of Metropolitan France (until end of 2015)',
			es = 'Antiguas regiones administrativas de Francia metropolitana (hasta finales de 2015)',
			fr = 'Anciennes régions administratives de France métropolitaine (jusqu’à la fin de 2015)',
			it = 'Antiche regioni amministrative della Francia metropolitana (fino a fine 2015)',
			nb = 'Tidligere administrative regioner i France métropolitaine (til slutten av 2015)',
			nl = 'Voormalige bestuurlijke regio’s van Europees Frankrijk (tot eind 2015)',
			nn = 'Tidlegare administrative regionar i Frankrike metropolitaine (til slutten av 2015)',
			no = 'Tidligere administrative regioner i Frankrike metropolitaine (til slutten av 2015)',
			pt = 'Antigas regiões administrativas da França Metropolitana (até ao final de 2015)',
			sl = 'Nekdanje administrativne regije metropolitanske Francije (do konca leta 2015)',
			sr = 'Бивши административни региони метрополитенске Француске (до краја 2015)',
			['sr-latn'] = 'Bivši administrativni regioni metropolitenske Francuske (do kraja 2015)',
			['zh-hans'] = '曾经的法国本土大区(直到2015年末)',
			['zh-hant'] = '曾經的法國本土大區(直到2015年末)',
		},
		dom = {
			['be-tarask'] = 'Заморскія дэпартамэнты і рэгіёны',
			de = 'Überseeische Departements und Regionen',
			en = 'Overseas departments and regions',
			es = 'Departamentos y regiones de ultramar',
			fr = 'Départements et régions d’outre-mer',
			it = 'Dipartimenti e regioni d’oltremare',
			nb = 'Oversjøiske departement og regioner',
			nl = 'Overzeese departementen en regio’s',
			nn = 'Oversjøiske departement og regionar',
			no = 'Oversjøiske departement og regioner',
			pt = 'Departamentos e regiões ultramarinas',
			sl = 'Čezmorski departmaji in regije',
			sr = 'Прекоморски департмани и региони',
			['sr-latn'] = 'Prekomorski departmani i regioni',
			['zh-hans'] = '海外省及大区',
			['zh-hant'] = '海外省及大區',
		},
		com = {
			['be-tarask'] = 'Заморскія тэрыторыі',
			de = 'Überseeische Kollektivitäten',
			en = 'Overseas collectivities',
			es = 'Colectividades de ultramar',
			fr = 'Collectivités d’outre-mer',
			it = 'Collettività d’oltremare',
			nb = 'Oversjøiske kollektiviteter',
			nl = 'Overzeese gemeenschappen',
			nn = 'Oversjøiske kollektivitetar',
			no = 'Oversjøiske kollektiviteter',
			pt = 'Coletividades ultramarinas',
			sl = 'Čezmorske kolektivitete',
			sr = 'Прекоморски колективитети',
			['sr-latn'] = 'Prekomorski kolektiviteti',
			['zh-hans'] = '海外集体',
			['zh-hant'] = '海外集體',
		},
		sgt = {
			['be-tarask'] = 'Тэрыторыі sui generis',
			de = 'Sui-generis-Gebiete',
			en = 'Sui generis territories',
			es = 'Territorios sui generis',
			fr = 'Territoires sui generis',
			it = 'Territori sui generis',
			nb = 'Sui generis territorier',
			nl = 'Sui generis-gebieden',
			nn = 'Sui generis territorium',
			no = 'Sui generis territorier',
			pt = 'Territórios sui generis',
			sl = 'Ozemlja sui generis',
			sr = 'Територије sui generis',
			['sr-latn'] = 'Teritorije sui generis',
			['zh-hans'] = '特殊集体',
			['zh-hant'] = '特殊集體',
		},
	},
	pattern = {
		{	'<div lang="{lang}" dir="{dir}" class="catlinks"' ..
			' style="clear:none;display:table;box-sizing:border-box;max-width:100%;font-size:88%;line-height:normal;margin:2px 0;padding:2px"><div style="display:table-cell;width:100%">',
				'metlist',
				'metflist',
				'domlist',
				'comlist',
				'sgtlist',
		},
		{	'<em>{mettitle}{colon}</em><br /> ',
				{ 'mettitle','metlist', },
		},
			'{metlist}',
                {	'<br /> ',
				{ 'metlist', 'metflist', },
				{ 'metlist', 'domlist', },
				{ 'metlist', 'comlist', },
				{ 'metlist', 'sgtlist', },
		},
		{	'<em>{metftitle}{colon}</em><br /> ',
				{ 'metftitle','metflist', },
		},
			'{metflist}',
                {	'<br /> ',
				{ 'metflist', 'domlist', },
				{ 'metflist', 'comlist', },
				{ 'metflist', 'sgtlist', },
		},
		{	'<em>{domtitle}{colon}</em>',
				{ 'domtitle', 'domlist', },
		},
			'{domlist}',
		{	'<br /> ',
				{ 'domlist', 'comlist', },
				{ 'domlist', 'sgtlist', },
		},
		{	'<em>{comtitle}{colon}</em>',
				{ 'comtitle', 'comlist', },
		},
			'{comlist}',
		{	'<br /> ',
				{ 'comlist', 'sgtlist', },
		},
		{	'<em>{sgttitle}{colon}</em>',
				{ 'sgttitle', 'sgtlist', },
		},
			'{sgtlist}',
		{
			'</div></div>',
				'metlist',
				'metflist',
				'domlist',
				'comlist',
				'sgtlist',
		},
	},
	lists = {
		met = {
			default = 'ARA BFC BRE CVL COR GES HDF IDF NOR NAQ OCC PDL PAC'
		},
		metf = {
			default = 'A B C D G I K L M N O P Q S T V' --[['E F H J R U']]
		},
		dom = {
			default = 'GUA MTQ GUF LRE MAY' -- [['GF MQ GP RE YT']]
		},
		com = {
			default = 'BL MF PM PF WF TF'
		},
		sgt = {
			default = 'NC CP'
		},
	},
	countries = {
		['A'  ] = { 'Alsace',                                      qid = 'Q1142', },
		['ARA'] = { 'Auvergne-Rhône-Alpes',                        qid = 'Q18338206', mark = '‡', },
		['B'  ] = { 'Aquitaine',                                   qid = 'Q1179', },
		['BFC'] = { 'Bourgogne-Franche-Comté',                     qid = 'Q18578267', mark = '‡', },
		['BL' ] = { 'Saint-Barthélemy',
		            'Saint Barthélemy',                            qid = 'Q25362', },
		['BRE'] = { 'Bretagne',                            
		            'Brittany',                            
		            'Région Bretagne',                             qid = 'Q12130', },
		['C'  ] = { 'Auvergne',                                    qid = 'Q1152', },
		['COR'] = { 'Corsica',                            
		            'Corse',                                       qid = 'Q14112', },
		['CP' ] = { 'Clipperton Island',                           
		            'Île Clipperton',                              qid = 'Q161258', mark = '+', },
		['CVL'] = { 'Centre-Val de Loire',                            
		            'Centre',                                      qid = 'Q13947', },
		['D'  ] = { 'Bourgogne',                            
		            'Burgundy',                                    qid = 'Q1173', },
	--	['E'  ] = ['BRE']
	--	['F'  ] = ['CVL']
		['G'  ] = { 'Champagne-Ardenne',                           qid = 'Q14103', },
		['GES'] = { 'Grand Est',                            
		            'Alsace-Champagne-Ardenne-Lorraine',           qid = 'Q18677983', mark = '‡', },
	--	['GF' ] = ['GUF']
	--	['GP' ] = ['GUA']
		['GUA'] = { 'Guadeloupe',                                  qid = 'Q17012', },
		['GUF'] = { 'French Guiana',                            
		            'Guyane',                                      qid = 'Q3769', },
	--	['H'  ] = ['COR']
		['HDF'] = { 'Hauts-de-France',                            
		            'Nord-Pas-de-Calais-Picardie',                 qid = 'Q18677767', mark = '‡', },
		['I'  ] = { 'Franche-Comté',                               qid = 'Q16394', },
		['IDF'] = { 'Île-de-France',                               qid = 'Q13917', },
	--	['J'  ] = ['IDF']
		['K'  ] = { 'Languedoc-Roussillon',                        qid = 'Q17005', },
		['L'  ] = { 'Limousin',                                    qid = 'Q1190', },
		['LRE'] = { 'Réunion',                            
		            'La Réunion',                                  qid = 'Q17070', },
		['M'  ] = { 'Lorraine',                                    qid = 'Q22248793', },
		['MAY'] = { 'Mayotte',                                     qid = 'Q17063', },
		['MF' ] = { 'Saint-Martin (France)',
		            'Saint Martin (France)',                       qid = 'Q126125', },
	--	['MQ' ] = ['MTQ']
		['MTQ'] = { 'Martinique',                                  qid = 'Q17054', },
		['N'  ] = { 'Midi-Pyrénées',                               qid = 'Q16393', },
		['NAQ'] = { 'Nouvelle-Aquitaine',                            
		            'Aquitaine-Limousin-Poitou-Charentes',         qid = 'Q18678082', mark = '‡', },
		['NC' ] = { 'New Caledonia',                               
		            'Nouvelle-Calédonie',                          qid = 'Q33788', },
		['NOR'] = { 'Normandie',                            
		            'Normandy',                            
		            'Région Normandie',                            qid = 'Q18677875', mark = '‡', },
		['O'  ] = { 'Nord-Pas-de-Calais',                          qid = 'Q16987', },
		['OCC'] = { 'Occitanie',                            
		            'Languedoc-Roussillon-Midi-Pyrénées',          qid = 'Q18678265', mark = '‡', },
		['P'  ] = { 'Basse-Normandie',                             qid = 'Q16954', },
		['PAC'] = { "Provence-Alpes-Côte d'Azur",                  qid = 'Q15104', },
		['PDL'] = { 'Pays de la Loire',                            qid = 'Q16994', },
		['PF' ] = { 'French Polynesia',                            
		            'Polynésie française',                         qid = 'Q30971', },
		['PM' ] = { 'Saint-Pierre and Miquelon',                            
		            'Saint-Pierre-et-Miquelon',                    qid = 'Q34617', },
		['Q'  ] = { 'Haute-Normandie',                             qid = 'Q16961', },
	--	['R'  ] = ['PDL']
	--	['RE' ] = ['LRE']
		['S'  ] = { 'Picardie',                            
		            'Picardy',                                     qid = 'Q13950', },
		['T'  ] = { 'Poitou-Charentes',                            qid = 'Q17009', },
		['TF' ] = { 'French Southern and Antarctic Lands', the = true,
		            'Terres australes et antarctiques françaises', qid = 'Q129003', mark = '+', },
	--	['U'  ] = ['PAC']
		['V'  ] = { 'Rhône-Alpes',                                 qid = 'Q463', },
		['WF' ] = { 'Wallis and Futuna',                           
		            'Wallis-et-Futuna',                            qid = 'Q35555', },
	--	['YT' ] = ['MAY']
	},
}