وحدة:SportsRankings/data/World Football Elo Ratings

يمكن إنشاء صفحة توثيق الوحدة في وحدة:SportsRankings/data/World Football Elo Ratings/شرح

local data = {}

-- information about other templates used by module
data.templates = {
	flagged_team_link = "fb", -- template for flag icon and team link
	flag_codes = { -- missing 3 letter country codes
		['CHG'] = 'Chagos Islands',
		['EUS'] = 'Sint Eustatius',
		['KRD'] = 'Kurdistan',
		['SAB'] = 'Saba',
		['SLD'] = 'Somaliland'
	}
}

-- general information about ranking and website being cited
data.source = {
	name    = 'World Football Elo Ratings',
	text    = 'Elo rankings change compared to one year ago. ',
	url = 'https://www.eloratings.net/',
	title   = 'World Football Elo Ratings',
	website = 'eloratings.net'
}

-- date of latest update
data.updated = {
	day = 4,
	month = 'January',
	year = 2024
}

-- see "Generating code" section on doc page for how to update the rankings

data.rankings = {
 { 'Argentina', 1, 0, 2138 },
 { 'France', 2, 1, 2110 },
 { 'Spain', 3, 3, 2033 },
 { 'Portugal', 3, 2, 2033 },
 { 'England', 5, 3, 2015 },
 { 'Brazil', 6, -4, 2012 },
 { 'Uruguay', 7, 6, 2007 },
 { 'Belgium', 8, 3, 1990 },
 { 'Colombia', 9, 3, 1984 },
 { 'Netherlands', 10, -6, 1970 },
 { 'Croatia', 11, -1, 1952 },
 { 'Italy', 12, -5, 1938 },
 { 'Japan', 13, 5, 1905 },
 { 'Germany', 14, -5, 1886 },
 { 'Ecuador', 15, 4, 1883 },
 { 'Ukraine', 16, 6, 1850 },
 { 'Morocco', 17, -1, 1847 },
 { 'Austria', 18, 16, 1835 },
 { 'Hungary', 19, 2, 1834 },
 { 'Iran', 20, 7, 1826 },
 { 'Denmark', 21, -7, 1825 },
 { 'Serbia', 22, -2, 1802 },
 { 'Scotland', 23, 10, 1801 },
 { 'South Korea', 24, 2, 1798 },
 { 'Mexico', 25, -1, 1794 },
 { 'Switzerland', 26, -11, 1792 },
 { 'Australia', 27, 2, 1783 },
 { 'United States', 28, -5, 1776 },
 { 'Turkey', 29, 11, 1766 },
 { 'Panama', 30, 23, 1765 },
 { 'Czechia', 31, -4, 1757 },
 { 'Russia', 32, 0, 1756 },
 { 'Norway', 33, -2, 1755 },
 { 'Venezuela', 33, 13, 1755 },
 { 'Peru', 35, -18, 1743 },
 { 'Tunisia', 36, -1, 1740 },
 { 'Senegal', 37, -2, 1731 },
 { 'Greece', 38, 6, 1729 },
 { 'Algeria', 39, 3, 1726 },
 { 'Poland', 40, -15, 1710 },
 { 'Slovenia', 40, 10, 1710 },
 { 'Canada', 42, -2, 1706 },
 { 'Paraguay', 43, -5, 1705 },
 { 'Chile', 44, -1, 1700 },
 { 'Wales', 45, -6, 1696 },
 { 'Sweden', 46, -16, 1692 },
 { 'Egypt', 47, 4, 1686 },
 { 'Romania', 48, 12, 1674 },
 { 'Slovakia', 49, 15, 1662 },
 { 'Ivory Coast', 50, -1, 1644 },
 { 'Uzbekistan', 51, 16, 1641 },
 { 'Finland', 51, -6, 1641 },
 { 'Georgia', 53, -1, 1638 },
 { 'Albania', 54, 16, 1632 },
 { 'Iraq', 55, 11, 1620 },
 { 'Cameroon', 56, -9, 1619 },
 { 'Jamaica', 57, 12, 1618 },
 { 'Mali', 58, -2, 1616 },
 { 'Bolivia', 59, -1, 1612 },
 { 'Ireland', 60, -12, 1608 },
 { 'Israel', 61, -5, 1603 },
 { 'Nigeria', 62, -7, 1590 },
 { 'Saudi Arabia', 63, -9, 1588 },
 { 'Costa Rica', 64, -27, 1577 },
 { 'North Macedonia', 65, 11, 1568 },
 { 'Burkina Faso', 66, -5, 1565 },
 { 'Oman', 67, 1, 1554 },
 { 'Ghana', 68, -6, 1551 },
 { 'Montenegro', 69, 4, 1550 },
 { 'Qatar', 70, -5, 1535 },
 { 'Honduras', 71, 14, 1532 },
 { 'United Arab Emirates', 72, 9, 1529 },
 { 'New Zealand', 73, 4, 1526 },
 { 'Luxembourg', 74, 18, 1520 },
 { 'Equatorial Guinea', 75, 18, 1517 },
 { 'Jordan', 76, -13, 1503 },
 { 'Democratic Republic of Congo', 77, 11, 1500 },
 { 'Kosovo', 78, 1, 1499 },
 { 'Azerbaijan', 79, 19, 1498 },
 { 'Haiti', 80, -5, 1497 },
 { 'Guatemala', 81, 10, 1494 },
 { 'Northern Ireland', 82, -9, 1491 },
 { 'South Africa', 83, -12, 1490 },
 { 'Zambia', 83, 4, 1490 },
 { 'Bosnia and Herzegovina', 85, -26, 1485 },
 { 'Cape Verde', 86, -3, 1482 },
 { 'Kazakhstan', 87, 19, 1481 },
 { 'Iceland', 88, -17, 1479 },
 { 'Armenia', 89, 1, 1470 },
 { 'Belarus', 90, 9, 1469 },
 { 'Bulgaria', 91, -13, 1457 },
 { 'Northern Cyprus', 91, -2, 1457 },
 { 'Bahrain', 93, -13, 1448 },
 { 'Gabon', 94, -12, 1442 },
 { 'Martinique', 95, 12, 1441 },
 { 'Trinidad and Tobago', 96, 26, 1432 },
 { 'China', 97, -11, 1431 },
 { 'Guinea', 98, 10, 1427 },
 { 'Syria', 99, 1, 1425 },
 { 'Kurdistan', 99, -3, 1425 },
 { 'Guinea-Bissau', 101, 9, 1416 },
 { 'El Salvador', 102, -18, 1409 },
 { 'Palestine', 103, -9, 1407 },
 { 'Gambia', 104, -7, 1399 },
 { 'Vietnam', 105, -3, 1392 },
 { 'Mauritania', 105, -1, 1392 },
 { 'Togo', 107, 22, 1391 },
 { 'Angola', 108, -7, 1386 },
 { 'Thailand', 109, 0, 1381 },
 { 'Namibia', 109, 5, 1381 },
 { 'Kuwait', 111, 22, 1377 },
 { 'Tajikistan', 111, 15, 1377 },
 { 'Libya', 113, 5, 1375 },
 { 'Uganda', 114, -11, 1368 },
 { 'North Korea', 115, -4, 1367 },
 { 'Estonia', 116, -22, 1366 },
 { 'Mozambique', 117, 10, 1357 },
 { 'Tanzania', 118, 14, 1351 },
 { 'Kenya', 119, -8, 1350 },
 { 'Malawi', 119, 21, 1350 },
 { 'Benin', 121, -17, 1348 },
 { 'Latvia', 122, -4, 1347 },
 { 'Botswana', 122, -7, 1347 },
 { 'Réunion', 124, -11, 1346 },
 { 'Curaçao', 125, -10, 1339 },
 { 'Moldova', 125, 28, 1339 },
 { 'Zimbabwe', 127, 3, 1337 },
 { 'Nicaragua', 128, 18, 1332 },
 { 'Guadeloupe', 129, 30, 1327 },
 { 'Zanzibar', 130, -6, 1326 },
 { 'Cyprus', 131, -14, 1322 },
 { 'Lithuania', 132, 18, 1320 },
 { 'Madagascar', 133, 4, 1316 },
 { 'Sudan', 133, 3, 1316 },
 { 'Sierra Leone', 135, -12, 1315 },
 { 'Lebanon', 136, -5, 1309 },
 { 'Rwanda', 137, 5, 1308 },
 { 'Solomon Islands', 137, 23, 1308 },
 { 'Central African Republic', 139, 4, 1306 },
 { 'Ethiopia', 140, -22, 1303 },
 { 'Suriname', 140, -12, 1303 },
 { 'Malaysia', 142, 11, 1301 },
 { 'Cuba', 143, -18, 1291 },
 { 'Burundi', 143, 4, 1291 },
 { 'French Guiana', 145, -24, 1285 },
 { 'Comoros', 146, 5, 1275 },
 { 'Guyana', 147, 16, 1274 },
 { 'Congo', 148, -10, 1271 },
 { 'Indonesia', 149, -8, 1266 },
 { 'Faroe Islands', 150, -15, 1264 },
 { 'Liberia', 151, -17, 1261 },
 { 'India', 152, 6, 1260 },
 { 'Eswatini', 153, -14, 1258 },
 { 'Malta', 154, -9, 1250 },
 { 'Kyrgyzstan', 155, -11, 1249 },
 { 'Lesotho', 156, 0, 1244 },
 { 'Niger', 157, -5, 1241 },
 { 'New Caledonia', 158, 8, 1234 },
 { 'Turkmenistan', 159, -11, 1220 },
 { 'Mayotte', 160, -5, 1218 },
 { 'Dominican Republic', 161, 4, 1205 },
 { 'Fiji', 162, -14, 1204 },
 { 'Tahiti', 163, 5, 1186 },
 { 'Chad', 164, -2, 1159 },
 { 'Bermuda', 165, -4, 1149 },
 { 'South Sudan', 166, 9, 1147 },
 { 'Puerto Rico', 166, 12, 1147 },
 { 'Eritrea', 168, 1, 1144 },
 { 'Singapore', 169, 3, 1115 },
 { 'Papua New Guinea', 170, -14, 1107 },
 { 'Yemen', 171, 5, 1102 },
 { 'Andorra', 171, 3, 1102 },
 { 'Grenada', 173, -2, 1096 },
 { 'Saint Lucia', 174, 9, 1094 },
 { 'Hong Kong', 175, -5, 1081 },
 { 'Vanuatu', 176, -3, 1080 },
 { 'Saint Kitts and Nevis', 177, -13, 1079 },
 { 'Saint Vincent and the Grenadines', 178, 4, 1078 },
 { 'Afghanistan', 179, -2, 1073 },
 { 'Gibraltar', 180, 1, 1058 },
 { 'Belize', 180, -1, 1058 },
 { 'São Tomé and Príncipe', 182, -2, 1057 },
 { 'Philippines', 183, 1, 1050 },
 { 'Mauritius', 184, 10, 1044 },
 { 'Montserrat', 185, 6, 1022 },
 { 'Antigua and Barbuda', 186, -19, 1011 },
 { 'Aruba', 187, 6, 1002 },
 { 'Somaliland', 187, -1, 1002 },
 { 'Dominica', 189, -1, 1001 },
 { 'Western Sahara', 190, -3, 996 },
 { 'Liechtenstein', 191, -2, 956 },
 { 'Greenland', 192, 0, 953 },
 { 'Saint Martin', 193, 15, 942 },
 { 'Barbados', 194, -9, 938 },
 { 'Bangladesh', 195, 11, 937 },
 { 'Taiwan', 196, 2, 924 },
 { 'Djibouti', 197, 7, 914 },
 { 'Myanmar', 198, 2, 906 },
 { 'Monaco', 199, -2, 903 },
 { 'Somalia', 200, -1, 898 },
 { 'Nepal', 201, -6, 894 },
 { 'Sint Maarten', 202, 9, 880 },
 { 'Maldives', 203, -7, 879 },
 { 'Seychelles', 204, -3, 855 },
 { 'Cambodia', 205, -3, 847 },
 { 'Bonaire', 206, -16, 833 },
 { 'Pakistan', 207, -4, 829 },
 { 'Bahamas', 208, -3, 817 },
 { 'Cayman Islands', 209, -2, 801 },
 { 'Mongolia', 210, -1, 792 },
 { 'Chagos Islands', 211, 1, 785 },
 { 'San Marino', 212, -2, 778 },
 { 'Sint Eustatius', 213, 0, 757 },
 { 'Tuvalu', 214, 0, 756 },
 { 'Saint Barthélemy', 215, 1, 725 },
 { 'Turks and Caicos Islands', 216, -1, 705 },
 { 'Wallis and Futuna', 217, 1, 701 },
 { 'Samoa', 218, 4, 699 },
 { 'Guam', 219, -2, 698 },
 { 'Vatican', 220, 0, 692 },
 { 'Cook Islands', 221, 0, 687 },
 { 'Sri Lanka', 222, 2, 684 },
 { 'Saint Pierre and Miquelon', 223, 0, 677 },
 { 'Saba', 224, 1, 671 },
 { 'Laos', 225, 2, 665 },
 { 'Macao', 225, -6, 665 },
 { 'British Virgin Islands', 227, 4, 659 },
 { 'Tibet', 228, 0, 630 },
 { 'Bhutan', 229, 6, 620 },
 { 'US Virgin Islands', 230, -4, 613 },
 { 'East Timor', 231, -2, 610 },
 { 'Brunei', 232, 0, 595 },
 { 'Falkland Islands', 233, 0, 571 },
 { 'Federated States of Micronesia', 234, 0, 564 },
 { 'Anguilla', 235, -5, 548 },
 { 'Kiribati', 236, 0, 545 },
 { 'Tonga', 237, 0, 525 },
 { 'Niue', 238, 0, 496 },
 { 'Northern Mariana Islands', 239, 1, 434 },
 { 'Palau', 240, 1, 403 },
 { 'Eastern Samoa', 241, -2, 377 },
}
-- alias list 
-- list of  country codes  (the countries need editing to match countries names in list above)
data.alias = { 
    { 'AFG',  'Afghanistan' },
    { 'AIA',  'Anguilla' },
    { 'ALB',  'Albania' },
    { 'ALG',  'Algeria' },
    { 'AND',  'Andorra' },
    { 'ANG',  'Angola' },
    { 'ARG',  'Argentina' },
    { 'ARM',  'Armenia' },
    { 'ARU',  'Aruba' },
    { 'ASA',  'Eastern Samoa' },
    { 'ATG',  'Antigua and Barbuda' },
    { 'AUS',  'Australia' },
    { 'AUT',  'Austria' },
    { 'AZE',  'Azerbaijan' },
    { 'BAH',  'Bahamas' },
    { 'BAN',  'Bangladesh' },
    { 'BDI',  'Burundi' },
    { 'BEL',  'Belgium' },
    { 'BEN',  'Benin' },
    { 'BER',  'Bermuda' },
    { 'BFA',  'Burkina Faso' },
    { 'BHR',  'Bahrain' },
    { 'BHU',  'Bhutan' },
    { 'BIH',  'Bosnia and Herzegovina' },
    { 'BLM',  'Saint Barthélemy' },
    { 'BLR',  'Belarus' },
    { 'BLZ',  'Belize' },
    { 'BOE',  'Bonaire' },
    { 'BOL',  'Bolivia' },
    { 'BOT',  'Botswana' },
    { 'BRA',  'Brazil' },
    { 'BRB',  'Barbados' },
    { 'BRU',  'Brunei' },
    { 'BUL',  'Bulgaria' },
    { 'CAM',  'Cambodia' },
    { 'CAN',  'Canada' },
    { 'CAY',  'Cayman Islands' },
    { 'CGO',  'Congo' },
    { 'CHA',  'Chad' },
    { 'CHG',  'Chagos Islands' },   -- missing template country data
    { 'CHI',  'Chile' },
    { 'CHN',  'China' },
    { 'CIV',  'Ivory Coast' },
    { 'CMR',  'Cameroon' },
    { 'COD',  'Democratic Republic of Congo' }, -- 'DR Congo' also used
    { 'COK',  'Cook Islands' },
    { 'COL',  'Colombia' },
    { 'COM',  'Comoros' },
    { 'CPV',  'Cape Verde' },
    { 'CRC',  'Costa Rica' },
    { 'CRO',  'Croatia' },
    { 'CTA',  'Central African Republic' },
    { 'CUB',  'Cuba' },
    { 'CUW',  'Curaçao' },
    { 'CYP',  'Cyprus' },
    { 'CZE',  'Czechia' },
    { 'DEN',  'Denmark' },
    { 'DJI',  'Djibouti' },
    { 'DMA',  'Dominica' },
    { 'DOM',  'Dominican Republic' },
    { 'ECU',  'Ecuador' },
    { 'EGY',  'Egypt' },
    { 'ENG',  'England' },
    { 'EQG',  'Equatorial Guinea' },
    { 'ERI',  'Eritrea' },
    { 'ESH',  'Western Sahara' },
    { 'ESP',  'Spain' },
    { 'EST',  'Estonia' },
    { 'ETH',  'Ethiopia' },
    { 'EUS',  'Sint Eustatius' },
    { 'FIJ',  'Fiji' },
    { 'FIN',  'Finland' },
    { 'FLK',  'Falkland Islands' },
    { 'FRA',  'France' },
    { 'FRO',  'Faroe Islands' },
    { 'FSM',  'Federated States of Micronesia' },    -- 'FS of Micronesia' and 'FS Micronesia' also used
    { 'GAB',  'Gabon' },
    { 'GAM',  'Gambia' },
    { 'GEO',  'Georgia' },
    { 'GER',  'Germany' },
    { 'GHA',  'Ghana' },
    { 'GIB',  'Gibraltar' },
    { 'GLP',  'Guadeloupe' },
    { 'GNB',  'Guinea-Bissau' },
    { 'GRE',  'Greece' },
    { 'GRL',  'Greenland' },
    { 'GRN',  'Grenada' },
    { 'GUA',  'Guatemala' },
    { 'GUF',  'French Guiana' },
    { 'GUI',  'Guinea' },
    { 'GUM',  'Guam' },
    { 'GUY',  'Guyana' },
    { 'HAI',  'Haiti' },
    { 'HKG',  'Hong Kong' },
    { 'HON',  'Honduras' },
    { 'HUN',  'Hungary' },
    { 'IDN',  'Indonesia' },
    { 'IND',  'India' },
    { 'IRL',  'Ireland' },
    { 'IRN',  'Iran' },
    { 'IRQ',  'Iraq' },
    { 'ISL',  'Iceland' },
    { 'ISR',  'Israel' },
    { 'ITA',  'Italy' },
    { 'JAM',  'Jamaica' },
    { 'JOR',  'Jordan' },
    { 'JPN',  'Japan' },
    { 'KAZ',  'Kazakhstan' },
    { 'KEN',  'Kenya' },
    { 'KGZ',  'Kyrgyzstan' },
    { 'KIR',  'Kiribati' },
    { 'KOR',  'South Korea' },
    { 'KRD',  'Kurdistan' }, -- missing template country data
    { 'KSA',  'Saudi Arabia' },
    { 'KUW',  'Kuwait' },
    { 'KVX',  'Kosovo' },
    { 'LAO',  'Laos' },
    { 'LBR',  'Liberia' },
    { 'LBY',  'Libya' },
    { 'LCA',  'Saint Lucia' },
    { 'LES',  'Lesotho' },
    { 'LIB',  'Lebanon' },
    { 'LIE',  'Liechtenstein' },
    { 'LTU',  'Lithuania' },
    { 'LUX',  'Luxembourg' },
    { 'LVA',  'Latvia' },
    { 'MAC',  'Macao' },
    { 'MAD',  'Madagascar' },
    { 'MAR',  'Morocco' },
    { 'MAS',  'Malaysia' },
    { 'MCO',  'Monaco' },
    { 'MDA',  'Moldova' },
    { 'MDV',  'Maldives' },
    { 'MEX',  'Mexico' },
    { 'MKD',  'North Macedonia' },
    { 'MLI',  'Mali' },
    { 'MLT',  'Malta' },
    { 'MNE',  'Montenegro' },
    { 'MNG',  'Mongolia' },
    { 'MOZ',  'Mozambique' },
    { 'MRI',  'Mauritius' },
    { 'MSR',  'Montserrat' },
    { 'MTN',  'Mauritania' },
    { 'MTQ',  'Martinique' },
    { 'MWI',  'Malawi' },
    { 'MYA',  'Myanmar' },
    { 'MYT',  'Mayotte' },
    { 'NAM',  'Namibia' },
    { 'NCA',  'Nicaragua' },
    { 'NCL',  'New Caledonia' },
    { 'NED',  'Netherlands' },
    { 'NEP',  'Nepal' },
    { 'NGA',  'Nigeria' },
    { 'NIG',  'Niger' },
    { 'NIR',  'Northern Ireland' },
    { 'NIU',  'Niue' },
    { 'NMI',  'Northern Mariana Islands' },
    { 'NOR',  'Norway' },
    { 'NZL',  'New Zealand' },
    { 'OMA',  'Oman' },
    { 'PAK',  'Pakistan' },
    { 'PAN',  'Panama' },
    { 'PAR',  'Paraguay' },
    { 'PER',  'Peru' },
    { 'PHI',  'Philippines' },
    { 'PLE',  'Palestine' },
    { 'PLW',  'Palau' },
    { 'PNG',  'Papua New Guinea' },
    { 'POL',  'Poland' },
    { 'POR',  'Portugal' },
    { 'PRK',  'North Korea' },
    { 'PUR',  'Puerto Rico' },
    { 'QAT',  'Qatar' },
    { 'REU',  'Réunion' },
    { 'TRNC', 'Northern Cyprus' },
    { 'ROU',  'Romania' },
    { 'RSA',  'South Africa' },
    { 'RUS',  'Russia' },
    { 'RWA',  'Rwanda' },
    { 'SAB',  'Saba' },
    { 'SAM',  'Samoa' },
    { 'SCO',  'Scotland' },
    { 'SDN',  'Sudan' },
    { 'SEN',  'Senegal' },
    { 'SEY',  'Seychelles' },
    { 'SIN',  'Singapore' },
    { 'SKN',  'Saint Kitts and Nevis' },
    { 'SLD',  'Somaliland' }, -- missing template country data
    { 'SLE',  'Sierra Leone' },
    { 'SLV',  'El Salvador' },
    { 'SMN',  'Saint Martin' },
    { 'SMR',  'San Marino' },
    { 'SOL',  'Solomon Islands' },
    { 'SOM',  'Somalia' },
    { 'SPM',  'Saint Pierre and Miquelon' },
    { 'SRB',  'Serbia' },
    { 'SRI',  'Sri Lanka' },
    { 'SSD',  'South Sudan' },
    { 'STP',  'São Tomé and Príncipe' },
    { 'SUI',  'Switzerland' },
    { 'SUR',  'Suriname' },
    { 'SVK',  'Slovakia' },
    { 'SVN',  'Slovenia' },
    { 'SWE',  'Sweden' },
    { 'SWZ',  'Eswatini' },
    { 'SXM',  'Sint Maarten' },
    { 'SYR',  'Syria' },
    { 'TAH',  'Tahiti' },
    { 'TAN',  'Tanzania' },
    { 'TCA',  'Turks and Caicos Islands' },
    { 'TGA',  'Tonga' },
    { 'THA',  'Thailand' },
    { 'TIB',  'Tibet' },  -- missing template country data
    { 'TJK',  'Tajikistan' },
    { 'TKM',  'Turkmenistan' },
    { 'TLS',  'East Timor' },
    { 'TOG',  'Togo' },
    { 'TPE',  'Taiwan' },
    { 'TRI',  'Trinidad and Tobago' },
    { 'TUN',  'Tunisia' },
    { 'TUR',  'Turkey' },
    { 'TUV',  'Tuvalu' },
    { 'UAE',  'United Arab Emirates' },
    { 'UGA',  'Uganda' },
    { 'UKR',  'Ukraine' },
    { 'URU',  'Uruguay' },
    { 'USA',  'United States' },
    { 'UZB',  'Uzbekistan' },
    { 'VAN',  'Vanuatu' },
    { 'VAT',  'Vatican' },
    { 'VEN',  'Venezuela' },
    { 'VGB',  'British Virgin Islands' },
    { 'VIE',  'Vietnam' },
    { 'VIN',  'Saint Vincent and the Grenadines' },   -- 'St Vincent & Grenadines' also used
    { 'VIR',  'US Virgin Islands' },
    { 'WAL',  'Wales' },
    { 'WLF',  'Wallis and Futuna' },
    { 'YEM',  'Yemen' },
    { 'ZAM',  'Zambia' },
    { 'ZAN',  'Zanzibar' },
    { 'ZIM',  'Zimbabwe' },
}

return data