Модуль:SportsRankings/песочница

Материал из Википедии — свободной энциклопедии
Перейти к навигации Перейти к поиску
Документация
local data = {}

-- информация о других шаблонах, используемых модулем
data.templates = { flagged_team_link = "Футбол" }

-- общая информация о рейтинге и цитируемом веб-сайте
data.source = {
	name    = 'World Football Elo Ratings',
	text    = 'Изменение рейтинга Эло за год ',
	url     = 'https://www.eloratings.net/',
	title   = 'World Football Elo Ratings',
	website = 'eloratings.net'
}

-- дата последнего обновления
data.updated = {
	day = 24,
	month = 'June',
	year = 2021
}

-- см. раздел "создание кода рейтинга" на странице документации для обновления рейтинга

data.rankings = {
     { 'Brazil', 1, 1, 2168 },
     { 'Belgium', 2, -1, 2141 },
     { 'France', 3, 0, 2087 },
     { 'Italy', 4, 4, 2052 },
     { 'Portugal', 5, 1, 2023 },
     { 'Spain', 6, -2, 2005 },
     { 'Argentina', 6, 3, 2005 },
     { 'England', 8, 4, 1978 },
     { 'Netherlands', 9, -4, 1977 },
     { 'Germany', 10, 1, 1939 },
     { 'Denmark', 11, 5, 1925 },
     { 'Uruguay', 12, -3, 1919 },
     { 'Sweden', 13, 5, 1897 },
     { 'Switzerland', 14, 1, 1894 },
     { 'Colombia', 15, -8, 1892 },
     { 'Mexico', 16, -2, 1884 },
     { 'Wales', 17, 8, 1860 },
     { 'Croatia', 18, -5, 1847 },
     { 'Paraguay', 19, 14, 1827 },
     { 'Peru', 20, -3, 1813 },
     { 'Iran', 21, 11, 1804 },
     { 'Czechia', 22, 12, 1799 },
     { 'United States', 22, 15, 1799 },
     { 'Chile', 24, -3, 1798 },
     { 'Austria', 25, 6, 1787 },
     { 'Ukraine', 26, -7, 1786 },
     { 'Serbia', 27, -4, 1784 },
     { 'Ecuador', 28, 10, 1781 },
     { 'Venezuela', 29, -9, 1773 },
     { 'Japan', 30, 0, 1771 },
     { 'Algeria', 31, -2, 1765 },
     { 'South Korea', 32, -5, 1763 },
     { 'Poland', 33, -9, 1762 },
     { 'Hungary', 34, 21, 1755 },
     { 'Norway', 35, 4, 1738 },
     { 'Australia', 36, 4, 1737 },
     { 'Senegal', 37, -9, 1733 },
     { 'Turkey', 38, -12, 1731 },
     { 'Russia', 39, -17, 1730 },
     { 'Finland', 40, 9, 1706 },
     { 'Morocco', 41, 6, 1683 },
     { 'Canada', 42, 16, 1675 },
     { 'Nigeria', 43, -2, 1672 },
     { 'Slovakia', 44, -9, 1670 },
     { 'Greece', 45, 12, 1661 },
     { 'Qatar', 46, 0, 1656 },
     { 'Ivory Coast', 47, 9, 1645 },
     { 'Tunisia', 48, 5, 1640 },
     { 'Scotland', 49, 1, 1629 },
     { 'Romania', 49, -7, 1629 },
     { 'Costa Rica', 51, -3, 1628 },
     { 'Bosnia and Herzegovina', 51, -7, 1628 },
     { 'Ireland', 53, -17, 1622 },
     { 'Iraq', 54, -1, 1621 },
     { 'Slovenia', 55, 5, 1617 },
     { 'Iceland', 56, -13, 1612 },
     { 'Israel', 57, 14, 1607 },
     { 'Honduras', 58, -6, 1606 },
     { 'Saudi Arabia', 58, 10, 1606 },
     { 'Egypt', 60, 1, 1602 },
     { 'Ghana', 61, -10, 1600 },
     { 'Bolivia', 62, -3, 1587 },
     { 'Armenia', 63, 30, 1584 },
     { 'Jamaica', 64, -3, 1580 },
     { 'Cameroon', 65, -2, 1568 },
     { 'Northern Ireland', 66, -21, 1567 },
     { 'North Macedonia', 67, 3, 1564 },
     { 'Albania', 68, 7, 1556 },
     { 'Panama', 69, 11, 1555 },
     { 'Burkina Faso', 70, 6, 1547 },
     { 'Uzbekistan', 71, -7, 1546 },
     { 'Bahrain', 71, 2, 1546 },
     { 'Mali', 73, -1, 1545 },
     { 'Georgia', 74, -5, 1527 },
     { 'Haiti', 75, -8, 1519 },
     { 'Montenegro', 76, 1, 1518 },
     { 'Guatemala', 77, 8, 1505 },
     { 'China', 78, 12, 1504 },
     { 'El Salvador', 79, 5, 1503 },
     { 'Oman', 80, 2, 1501 },
     { 'Bulgaria', 81, -15, 1500 },
     { 'Belarus', 82, -3, 1491 },
     { 'Zambia', 83, 16, 1489 },
     { 'United Arab Emirates', 83, 11, 1489 },
     { 'South Africa', 85, -12, 1488 },
     { 'New Zealand', 86, -3, 1486 },
     { 'Kosovo', 87, -22, 1482 },
     { 'Democratic Republic of Congo', 88, -7, 1479 },
     { 'Jordan', 89, -2, 1468 },
     { 'Northern Cyprus', 90, 2, 1456 },
     { 'Uganda', 91, -13, 1453 },
     { 'Syria', 92, -7, 1448 },
     { 'Palestine', 93, 14, 1445 },
     { 'Cape Verde', 94, 11, 1444 },
     { 'Guinea', 95, 1, 1442 },
     { 'Benin', 96, -7, 1436 },
     { 'Gabon', 97, -7, 1434 },
     { 'Martinique', 98, -3, 1429 },
     { 'Curaçao', 99, 3, 1427 },
     { 'Kurdistan', 100, 0, 1424 },
     { 'Vietnam', 101, 3, 1418 },
     { 'Estonia', 102, -6, 1405 },
     { 'Zimbabwe', 103, 0, 1404 },
     { 'Sudan', 103, 35, 1404 },
     { 'Mauritania', 105, 5, 1400 },
     { 'Kenya', 106, 5, 1391 },
     { 'Kuwait', 107, -6, 1389 },
     { 'Luxembourg', 108, 14, 1386 },
     { 'North Korea', 109, 4, 1375 },
     { 'Azerbaijan', 109, 3, 1375 },
     { 'Gambia', 111, 12, 1374 },
     { 'Madagascar', 112, -14, 1372 },
     { 'Angola', 113, 8, 1370 },
     { 'Réunion', 113, 1, 1370 },
     { 'Congo', 115, -6, 1367 },
     { 'Cyprus', 116, -9, 1365 },
     { 'Lebanon', 117, -11, 1361 },
     { 'Trinidad and Tobago', 118, 0, 1360 },
     { 'Liberia', 119, 7, 1357 },
     { 'Guinea-Bissau', 120, 16, 1355 },
     { 'Equatorial Guinea', 120, 12, 1355 },
     { 'Sierra Leone', 122, 2, 1350 },
     { 'Kazakhstan', 123, -8, 1347 },
     { 'Namibia', 124, 1, 1342 },
     { 'Suriname', 125, 5, 1338 },
     { 'Malawi', 125, -6, 1338 },
     { 'Libya', 127, -39, 1330 },
     { 'Ethiopia', 128, 9, 1329 },
     { 'Zanzibar', 129, -2, 1328 },
     { 'Rwanda', 130, 14, 1327 },
     { 'Lithuania', 131, -3, 1319 },
     { 'Tanzania', 132, -1, 1311 },
     { 'Togo', 133, -4, 1291 },
     { 'Botswana', 133, 2, 1291 },
     { 'Turkmenistan', 135, 7, 1289 },
     { 'Thailand', 136, -20, 1288 },
     { 'Central African Republic', 137, -20, 1285 },
     { 'Latvia', 138, 8, 1281 },
     { 'Mozambique', 139, -20, 1274 },
     { 'Cuba', 140, 1, 1270 },
     { 'New Caledonia', 140, 0, 1270 },
     { 'Tajikistan', 142, 6, 1265 },
     { 'French Guiana', 143, 0, 1264 },
     { 'Faroe Islands', 144, 6, 1263 },
     { 'Kyrgyzstan', 145, -6, 1254 },
     { 'Burundi', 146, 15, 1251 },
     { 'Lesotho', 147, -14, 1245 },
     { 'Bermuda', 148, -14, 1244 },
     { 'Niger', 149, -4, 1233 },
     { 'Nicaragua', 150, 9, 1232 },
     { 'Fiji', 151, -2, 1230 },
     { 'Guadeloupe', 152, 3, 1226 },
     { 'Mayotte', 153, -2, 1225 },
     { 'Moldova', 154, -7, 1220 },
     { 'Malta', 155, 13, 1219 },
     { 'Comoros', 156, 7, 1215 },
     { 'Malaysia', 157, 0, 1202 },
     { 'Saint Kitts and Nevis', 158, 0, 1198 },
     { 'Tahiti', 159, 0, 1196 },
     { 'India', 160, 1, 1194 },
     { 'Chad', 161, -7, 1183 },
     { 'Vanuatu', 162, 4, 1174 },
     { 'Dominican Republic', 163, 1, 1171 },
     { 'Yemen', 164, -8, 1169 },
     { 'Antigua and Barbuda', 165, 6, 1165 },
     { 'Solomon Islands', 166, 3, 1162 },
     { 'Hong Kong', 167, 0, 1160 },
     { 'Grenada', 168, -15, 1154 },
     { 'Papua New Guinea', 169, 4, 1151 },
     { 'Eswatini', 170, 8, 1150 },
     { 'Saint Vincent and the Grenadines', 171, -6, 1149 },
     { 'Eritrea', 172, 2, 1143 },
     { 'Guyana', 173, -21, 1141 },
     { 'Philippines', 174, -2, 1138 },
     { 'Singapore', 175, -5, 1134 },
     { 'Afghanistan', 176, 1, 1132 },
     { 'Belize', 177, -1, 1127 },
     { 'Barbados', 178, 3, 1109 },
     { 'Indonesia', 179, 0, 1100 },
     { 'Liechtenstein', 180, -5, 1093 },
     { 'Gibraltar', 181, 2, 1089 },
     { 'South Sudan', 182, 2, 1082 },
     { 'São Tomé and Príncipe', 183, -1, 1067 },
     { 'Puerto Rico', 184, 7, 1059 },
     { 'Saint Lucia', 185, 1, 1036 },
     { 'Andorra', 186, -6, 1026 },
     { 'Dominica', 187, 0, 1024 },
     { 'Mauritius', 188, 0, 1009 },
     { 'Myanmar', 189, -4, 1007 },
     { 'Somaliland', 190, -1, 1002 },
     { 'Western Sahara', 191, -1, 996 },
     { 'Greenland', 192, 0, 963 },
     { 'Bonaire', 193, 0, 960 },
     { 'Maldives', 194, 0, 951 },
     { 'Montserrat', 195, 11, 940 },
     { 'Nepal', 196, 1, 935 },
     { 'Somalia', 197, -1, 912 },
     { 'Aruba', 198, 5, 911 },
     { 'Seychelles', 199, 0, 908 },
     { 'Taiwan', 200, -5, 905 },
     { 'Djibouti', 200, 2, 905 },
     { 'Monaco', 202, -2, 903 },
     { 'Cayman Islands', 203, -5, 892 },
     { 'Bahamas', 204, -3, 874 },
     { 'Pakistan', 205, -1, 873 },
     { 'Saint Martin', 206, -1, 855 },
     { 'Bangladesh', 207, 1, 843 },
     { 'Cambodia', 208, -1, 835 },
     { 'San Marino', 209, 0, 827 },
     { 'Turks and Caicos Islands', 210, 0, 777 },
     { 'Chagos Islands', 211, 0, 776 },
     { 'Sint Maarten', 212, 0, 767 },
     { 'Mongolia', 213, 2, 766 },
     { 'Tuvalu', 214, -1, 739 },
     { 'Guam', 215, -1, 726 },
     { 'Saint Barthélemy', 216, 0, 715 },
     { 'Wallis and Futuna', 217, 1, 701 },
     { 'Macao', 218, 1, 696 },
     { 'Vatican', 219, 1, 692 },
     { 'Laos', 220, 1, 690 },
     { 'Cook Islands', 221, 1, 687 },
     { 'Samoa', 222, 1, 680 },
     { 'Saint Pierre and Miquelon', 223, 1, 677 },
     { 'US Virgin Islands', 224, -7, 659 },
     { 'Sri Lanka', 225, 0, 657 },
     { 'East Timor', 226, 0, 638 },
     { 'Tibet', 227, 0, 630 },
     { 'Brunei', 228, 0, 619 },
     { 'British Virgin Islands', 229, 0, 604 },
     { 'Falkland Islands', 230, 0, 580 },
     { 'Federated States of Micronesia', 231, 0, 565 },
     { 'Bhutan', 232, 0, 563 },
     { 'Anguilla', 233, 0, 561 },
     { 'Kiribati', 234, 0, 545 },
     { 'Tonga', 235, 0, 529 },
     { 'Niue', 236, 0, 496 },
     { 'Eastern Samoa', 237, 0, 473 },
     { 'Northern Mariana Islands', 238, 0, 409 },
     { 'Palau', 239, 0, 403 },
}
-- alias list 
-- список кодов стран
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' },
        { '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' },
        { '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