Module:SportsRankings/data/UEFA Coefficient Rankings

From The Global Wiki
Jump to navigation Jump to search

Template:Module rating

Usage

{{#invoke:SportsRankings/data/UEFA Coefficient Rankings|function_name}}


local data = {}

-- information about other templates used by module
data.templates = { flagged_team_link = "fb" } -- template for flag icon and team link

-- general information about ranking and website being cited
data.source = {
    url = "https://www.uefa.com/memberassociations/uefarankings/country/#/yr/2019", 
	title = "Member Associations-UEFA Coefficients",
	website = "UEFA"
}

-- date of latest update
data.updated = {
	day = 23,
	month = 'October', 
	year =2018
}
--[[ the rankings list 
        FIFA provide list with country names, whereas template uses country code
        for simplicity generate the list below using excel code
              =CONCAT("          {  '", B1, "',  ",A1,",  ",E1," },  ")
        the alias list below wil handle conversion of code used by template
        must manually handle apostrophe in "Côte d'Ivoire" by changing to double quotes
--]]
data.rankings = {
	{ 'Spain',			1,	0,	92.855,	106.998 },
	{ 'England',		2,	0,	70.320,	79.605 },
	{ 'Italy',			3,	0,	69.725,	76.249 },
	{ 'Germany',		4,	0,	65.355,	71.427 },
	{ 'France',			5,	0,	53.165,	56.415 },
	{ 'Russia',			6,	0,	48.382, 53.382 },
	{ 'Portugal',		7,	0,	42.832, 47.248 },
	{ 'Belgium',		8,	1,	37.300,	38.500 },
	{ 'Ukraine',		9,	-1,	37.100,	41.133 },
	{ 'Turkey',			10,	0,	33.200,	35.800 },
	{ 'Austria',		11,	0,	28.850,	32.850 },
	{ 'Netherlands',	12,	2,	28.833,	29.749 },
	{ 'Denmark',		13,	4,	27.025,	25.950 },
	{ 'Greece',			14,	1,	27.000,	28.600 },
	{ 'Switzerland',	15,	-3,	26.300,	30.200 },
	{ 'Croatia',		16,	0,	25.875,	26.000 },
	{ 'Czech Republic',	17,	-4,	25.275,	30.175 },
	{ 'Cyprus',			18,	1,	23.425,	21.550 },
	{ 'Serbia',			19,	6,	22.250,	18.750 },
	{ 'Scotland',		20,	6,	21.375,	18.625 },
	{ 'Belarus',		21,	6,	20.375,	18.625 },
	{ 'Sweden',			22,	0,	20.150,	19.975 },
	{ 'Norway',			23,	6,	19.950,	17.425 },
	{ 'Kazakhstan',		24,	4,	19.250,	18.125 },
	{ 'Poland',			25,	-4,	19.250,	20.125 },
	{ 'Azerbaijan',		26,	-3,	19.000,	19.125 },
	{ 'Israel',			27,	-9,	18.625,	21.750 },
	{ 'Bulgaria',		28,	-4,	17.000,	19.125 },
	{ 'Romania',		29,	-9,	15.950,	20.450 },
	{ 'Slovenia',		30,	0,	15.000,	14.500 },
	{ 'Slovakia',		31,	1,	14.875,	12.125 },
	{ 'Liechtenstein',	32,	-1,	13.500,	13.000 },
	{ 'Hungary',		33,	3,	10.250,	8.125 },
	{ 'FYR Macedonia',	34,	3,	8.000,	7.500 },
	{ 'Moldova',		35,	-2,	7.750,	10.000 },
	{ 'Albania',		36,	-2,	7.500,	8.500 },
	{ 'Republic of Ireland',	37,	2,	7.450,	6.700 },
	{ 'Finland',		38,	0,	7.275,	6.900 },
	{ 'Iceland',		39,	-4,	7.250,	8.250 },
	{ 'Bosnia and Herzogovina',	40,	0,	7.125,	6.625 },
	{ 'Lithuania',		41,	2,	6.750,	5.375 },
    { 'Latvia',			42,	-2,	5.625,	5.625 },
    { 'Luxembourg',		43,	5,	5.250,	4.375 },
    { 'Armenia',		44,	2,	5.250,	4.875 },
    { 'Malta',			45,	2,	5.125,	4.500 },
    { 'Estonia',		46,	-4,	5.000,	5.500 },
    { 'Georgia',		47,	-2,	4.750,	5.000 },
    { 'Wales',			48,	2,	4.125,	3.875 },
    { 'Montenegro',		49,	-5,	4.125,	5.000 },
    { 'Faroe Islands',	50,	1,	4.000,	3.750 },
    { 'Gibraltar',		51,	1,	4.000,	3.000 },
    { 'Northern Ireland',	52,	-3,	3.875,	4.250 },
    { 'Kosovo',			53,	2,	2.500,	0.000 },
    { 'Andorra',		54,	-1,	1.831,	1.331 },
    { 'San Marino',		55,	-1,	0.666,	0.499 }
    
}
-- list of FIFA country codes
data.alias = { 
        { 'BEL',  'Belgium' },
        { 'FRA',  'France' },
        { 'BRA',  'Brazil' },
        { 'CRO',  'Croatia' },
        { 'ENG',  'England' },
        { 'URU',  'Uruguay' },
        { 'POR',  'Portugal' },
        { 'SUI',  'Switzerland' },
        { 'ESP',  'Spain' },
        { 'DEN',  'Denmark' },
        { 'COL',  'Colombia' },
        { 'ARG',  'Argentina' },
        { 'CHI',  'Chile' },
        { 'GER',  'Germany' },
        { 'NED',  'Netherlands' },
        { 'MEX',  'Mexico' },
        { 'SWE',  'Sweden' },
        { 'WAL',  'Wales' },
        { 'ITA',  'Italy' },
        { 'PER',  'Peru' },
        { 'POL',  'Poland' },
        { 'TUN',  'Tunisia' },
        { 'USA',  'USA' },
        { 'AUT',  'Austria' },
        { 'SEN',  'Senegal' },
        { 'ROU',  'Romania' },
        { 'UKR',  'Ukraine' },
        { 'SVK',  'Slovakia' },
        { 'VEN',  'Venezuela' },
        { 'IRN',  'IR Iran' },
        { 'PAR',  'Paraguay' },
        { 'BIH',  'Bosnia and Herzegovina' },
        { 'IRL',  'Republic of Ireland' },
        { 'NIR',  'Northern Ireland' },
        { 'SRB',  'Serbia' },
        { 'ISL',  'Iceland' },
        { 'CRC',  'Costa Rica' },
        { 'TUR',  'Turkey' },
        { 'MNE',  'Montenegro' },
        { 'SCO',  'Scotland' },
        { 'RUS',  'Russia' },
        { 'AUS',  'Australia' },
        { 'GRE',  'Greece' },
        { 'NGA',  'Nigeria' },
        { 'BUL',  'Bulgaria' },
        { 'COD',  'Congo DR' },
        { 'MAR',  'Morocco' },
        { 'CZE',  'Czech Republic' },
        { 'NOR',  'Norway' },
        { 'JPN',  'Japan' },
        { 'CMR',  'Cameroon' },
        { 'GHA',  'Ghana' },
        { 'KOR',  'Korea Republic' },
        { 'JAM',  'Jamaica' },
        { 'HUN',  'Hungary' },
        { 'FIN',  'Finland' },
        { 'BFA',  'Burkina Faso' },
        { 'EGY',  'Egypt' },
        { 'BOL',  'Bolivia' },
        { 'ALB',  'Albania' },
        { 'ECU',  'Ecuador' },
        { 'HON',  'Honduras' },
        { 'SVN',  'Slovenia' },
        { 'CIV',  "Côte d'Ivoire" },
        { 'GUI',  'Guinea' },
        { 'MLI',  'Mali' },
        { 'ALG',  'Algeria' },
        { 'CPV',  'Cape Verde Islands' },
        { 'MKD',  'FYR Macedonia' },
        { 'SLV',  'El Salvador' },
        { 'PAN',  'Panama' },
        { 'KSA',  'Saudi Arabia' },
        { 'RSA',  'South Africa' },
        { 'SYR',  'Syria' },
        { 'CHN',  'China PR' },
        { 'CAN',  'Canada' },
        { 'ZAM',  'Zambia' },
        { 'BLR',  'Belarus' },
        { 'CUW',  'Curaçao' },
        { 'UGA',  'Uganda' },
        { 'UAE',  'United Arab Emirates' },
        { 'LIB',  'Lebanon' },
        { 'GAB',  'Gabon' },
        { 'LUX',  'Luxembourg' },
        { 'OMA',  'Oman' },
        { 'CYP',  'Cyprus' },
        { 'CGO',  'Congo' },
        { 'BEN',  'Benin' },
        { 'IRQ',  'Iraq' },
        { 'KGZ',  'Kyrgyz Republic' },
        { 'ISR',  'Israel' },
        { 'GEO',  'Georgia' },
        { 'TRI',  'Trinidad and Tobago' },
        { 'UZB',  'Uzbekistan' },
        { 'FRO',  'Faroe Islands' },
        { 'QAT',  'Qatar' },
        { 'IND',  'India' },
        { 'EST',  'Estonia' },
        { 'PLE',  'Palestine' },
        { 'MAD',  'Madagascar' },
        { 'ARM',  'Armenia' },
        { 'VIE',  'Vietnam' },
        { 'HAI',  'Haiti' },
        { 'MTN',  'Mauritania' },
        { 'LBY',  'Libya' },
        { 'KEN',  'Kenya' },
        { 'AZE',  'Azerbaijan' },
        { 'NIG',  'Niger' },
        { 'NAM',  'Namibia' },
        { 'PRK',  'Korea DPR' },
        { 'ZIM',  'Zimbabwe' },
        { 'JOR',  'Jordan' },
        { 'CTA',  'Central African Republic' },
        { 'BHR',  'Bahrain' },
        { 'SLE',  'Sierra Leone' },
        { 'PHI',  'Philippines' },
        { 'KAZ',  'Kazakhstan' },
        { 'TJK',  'Tajikistan' },
        { 'NZL',  'New Zealand' },
        { 'GNB',  'Guinea-Bissau' },
        { 'THA',  'Thailand' },
        { 'MOZ',  'Mozambique' },
        { 'TOG',  'Togo' },
        { 'TPE',  'Chinese Taipei' },
        { 'MWI',  'Malawi' },
        { 'ATG',  'Antigua and Barbuda' },
        { 'NCA',  'Nicaragua' },
        { 'TKM',  'Turkmenistan' },
        { 'LTU',  'Lithuania' },
        { 'ANG',  'Angola' },
        { 'YEM',  'Yemen' },
        { 'LVA',  'Latvia' },
        { 'SKN',  'St Kitts and Nevis' },
        { 'AND',  'Andorra' },
        { 'SDN',  'Sudan' },
        { 'TAN',  'Tanzania' },
        { 'KVX',  'Kosovo' },
        { 'RWA',  'Rwanda' },
        { 'SWZ',  'Eswatini' },
        { 'BOT',  'Botswana' },
        { 'MYA',  'Myanmar' },
        { 'BDI',  'Burundi' },
        { 'SOL',  'Solomon Islands' },
        { 'HKG',  'Hong Kong' },
        { 'AFG',  'Afghanistan' },
        { 'EQG',  'Equatorial Guinea' },
        { 'GUA',  'Guatemala' },
        { 'COM',  'Comoros' },
        { 'LES',  'Lesotho' },
        { 'ETH',  'Ethiopia' },
        { 'MDV',  'Maldives' },
        { 'DOM',  'Dominican Republic' },
        { 'SUR',  'Suriname' },
        { 'LBR',  'Liberia' },
        { 'NCL',  'New Caledonia' },
        { 'MRI',  'Mauritius' },
        { 'KUW',  'Kuwait' },
        { 'TAH',  'Tahiti' },
        { 'SSD',  'South Sudan' },
        { 'IDN',  'Indonesia' },
        { 'NEP',  'Nepal' },
        { 'VAN',  'Vanuatu' },
        { 'BRB',  'Barbados' },
        { 'BLZ',  'Belize' },
        { 'SIN',  'Singapore' },
        { 'PNG',  'Papua New Guinea' },
        { 'FIJ',  'Fiji' },
        { 'LCA',  'St Lucia' },
        { 'MAS',  'Malaysia' },
        { 'CAM',  'Cambodia' },
        { 'MDA',  'Moldova' },
        { 'GRN',  'Grenada' },
        { 'GAM',  'Gambia' },
        { 'CHA',  'Chad' },
        { 'VIN',  'St Vincent and the Grenadines' },
        { 'PUR',  'Puerto Rico' },
        { 'CUB',  'Cuba' },
        { 'DMA',  'Dominica' },
        { 'GUY',  'Guyana' },
        { 'BER',  'Bermuda' },
        { 'LAO',  'Laos' },
        { 'LIE',  'Liechtenstein' },
        { 'MLT',  'Malta' },
        { 'MAC',  'Macau' },
        { 'ARU',  'Aruba' },
        { 'MNG',  'Mongolia' },
        { 'STP',  'São Tomé e Príncipe' },
        { 'BHU',  'Bhutan' },
        { 'SEY',  'Seychelles' },
        { 'GIB',  'Gibraltar' },
        { 'TLS',  'Timor-Leste' },
        { 'ASA',  'American Samoa' },
        { 'COK',  'Cook Islands' },
        { 'GUM',  'Guam' },
        { 'BAN',  'Bangladesh' },
        { 'BRU',  'Brunei Darussalam' },
        { 'DJI',  'Djibouti' },
        { 'SAM',  'Samoa' },
        { 'PAK',  'Pakistan' },
        { 'VIR',  'US Virgin Islands' },
        { 'SRI',  'Sri Lanka' },
        { 'MSR',  'Montserrat' },
        { 'CAY',  'Cayman Islands' },
        { 'ERI',  'Eritrea' },
        { 'SOM',  'Somalia' },
        { 'TGA',  'Tonga' },
        { 'VGB',  'British Virgin Islands' },
        { 'AIA',  'Anguilla' },
        { 'SMR',  'San Marino' },
        { 'BAH',  'Bahamas' },
        { 'TCA',  'Turks and Caicos Islands' },
        --END ALIAS LIST
        { 'code', 'country' }
}



return data