Modul:SportsRankings/data/FIFA World Rankings

local data = {}

-- information about other templates used by module
data.templates = { flagged_team_link = "fb" }

-- general information about ranking and website being cited
data.source = {
    url = "https://www.fifa.com/fifa-world-ranking/ranking-table/men/", 
	title = "The FIFA/Coca-Cola World Ranking",
	website = "FIFA"
}

-- date of latest update and previous one for movement
data.updated  = { 	day = 19, 	month = 'Desember',	year =2019 }
data.previous = { 	day = 28, 	month = 'November',	year =2019 }

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

data.rankings = {
          {  "Belgium", 1, 0, 1765 },
          {  "France", 2, 0, 1733 },
          {  "Brazil", 3, 0, 1712 },
          {  "England", 4, 0, 1661 },
          {  "Uruguay", 5, 0, 1645 },
          {  "Croatia", 6, 0, 1642 },
          {  "Portugal", 7, 0, 1639 },
          {  "Spain", 8, 0, 1636 },
          {  "Argentina", 9, 0, 1623 },
          {  "Colombia", 10, 0, 1622 },
          {  "Mexico", 11, 0, 1621 },
          {  "Switzerland", 12, 0, 1608 },
          {  "Italy", 13, 0, 1607 },
          {  "Netherlands", 14, 0, 1604 },
          {  "Germany", 15, 0, 1602 },
          {  "Denmark", 16, 0, 1598 },
          {  "Sweden", 17, 0, 1579 },
          {  "Chile", 17, 0, 1579 },
          {  "Poland", 19, 0, 1559 },
          {  "Senegal", 20, 0, 1555 },
          {  "Peru", 21, 0, 1544 },
          {  "USA", 22, 0, 1540 },
          {  "Wales", 22, 0, 1540 },
          {  "Ukraine", 24, 0, 1537 },
          {  "Venezuela", 25, 0, 1517 },
          {  "Austria", 26, 0, 1507 },
          {  "Tunisia", 27, 0, 1506 },
          {  "Japan", 28, 0, 1503 },
          {  "Turkey", 29, 0, 1494 },
          {  "Serbia", 29, 0, 1494 },
          {  "Nigeria", 31, 0, 1493 },
          {  "Slovakia", 32, 0, 1490 },
          {  "IR Iran", 33, 0, 1489 },
          {  "Republic of Ireland", 34, 0, 1486 },
          {  "Algeria", 35, 0, 1482 },
          {  "Northern Ireland", 36, 0, 1476 },
          {  "Romania", 37, 0, 1475 },
          {  "Russia", 38, 0, 1470 },
          {  "Iceland", 39, 0, 1464 },
          {  "Korea Republic", 40, 1, 1461 },
          {  "Paraguay", 40, 0, 1461 },
          {  "Australia", 42, 0, 1457 },
          {  "Morocco", 43, 0, 1456 },
          {  "Norway", 44, 0, 1451 },
          {  "Czech Republic", 45, 0, 1446 },
          {  "Costa Rica", 46, 0, 1442 },
          {  "Ghana", 47, 0, 1439 },
          {  "Jamaica", 48, 0, 1437 },
          {  "Bosnia and Herzegovina", 49, 0, 1430 },
          {  "Scotland", 50, 0, 1422 },
          {  "Egypt", 51, 0, 1420 },
          {  "Hungary", 52, 0, 1416 },
          {  "Cameroon", 53, 0, 1413 },
          {  "Greece", 54, 0, 1409 },
          {  "Qatar", 55, 0, 1396 },
          {  "Mali", 56, 0, 1389 },
          {  "Congo DR", 56, 0, 1389 },
          {  "Finland", 58, 0, 1386 },
          {  "Bulgaria", 59, 0, 1381 },
          {  "Burkina Faso", 59, 0, 1381 },
          {  "Côte d'Ivoire", 61, 0, 1380 },
          {  "Honduras", 62, 0, 1377 },
          {  "Ecuador", 63, 0, 1368 },
          {  "Montenegro", 64, 0, 1365 },
          {  "Slovenia", 64, 0, 1365 },
          {  "Albania", 66, 0, 1356 },
          {  "Saudi Arabia", 67, 0, 1351 },
          {  "North Macedonia", 68, 0, 1347 },
          {  "El Salvador", 69, 0, 1346 },
          {  "Iraq", 70, 0, 1344 },
          {  "South Africa", 71, 1, 1334 },
          {  "United Arab Emirates", 71, 0, 1334 },
          {  "Canada", 73, 0, 1331 },
          {  "Guinea", 74, 0, 1328 },
          {  "Bolivia", 75, 1, 1324 },
          {  "China PR", 76, -1, 1322 },
          {  "Uganda", 77, 0, 1321 },
          {  "Cabo Verde", 78, 0, 1318 },
          {  "Syria", 79, 0, 1314 },
          {  "Curaçao", 80, 0, 1313 },
          {  "Panama", 81, 0, 1304 },
          {  "Oman", 82, -1, 1303 },
          {  "Gabon", 83, 0, 1297 },
          {  "Benin", 84, 0, 1295 },
          {  "Uzbekistan", 85, 0, 1289 },
          {  "Haiti", 86, 0, 1285 },
          {  "Belarus", 87, 0, 1280 },
          {  "Zambia", 88, 0, 1277 },
          {  "Congo", 89, 0, 1269 },
          {  "Lebanon", 89, 0, 1269 },
          {  "Madagascar", 91, 0, 1267 },
          {  "Georgia", 91, 0, 1267 },
          {  "Israel", 93, 0, 1260 },
          {  "Vietnam", 94, 0, 1258 },
          {  "Cyprus", 95, 0, 1251 },
          {  "Kyrgyz Republic", 96, 0, 1240 },
          {  "Jordan", 97, 0, 1238 },
          {  "Luxembourg", 98, 0, 1236 },
          {  "Bahrain", 99, 1, 1225 },
          {  "Mauritania", 100, -1, 1223 },
          {  "Libya", 101, 0, 1215 },
          {  "Armenia", 102, 0, 1213 },
          {  "Estonia", 103, 0, 1202 },
          {  "Trinidad and Tobago", 104, 0, 1201 },
          {  "Mozambique", 105, 0, 1200 },
          {  "Kenya", 106, 0, 1199 },
          {  "Palestine", 106, 0, 1199 },
          {  "India", 108, 0, 1187 },
          {  "Central African Republic", 109, 0, 1184 },
          {  "Faroe Islands", 110, 0, 1181 },
          {  "Zimbabwe", 111, 0, 1180 },
          {  "Niger", 112, 0, 1179 },
          {  "Thailand", 113, 0, 1178 },
          {  "Azerbaijan", 114, 0, 1177 },
          {  "Kosovo", 115, 0, 1174 },
          {  "Korea DPR", 116, 0, 1170 },
          {  "Namibia", 117, 0, 1160 },
          {  "Kazakhstan", 118, 0, 1155 },
          {  "Sierra Leone", 118, 0, 1155 },
          {  "Guinea-Bissau", 118, 0, 1155 },
          {  "Tajikistan", 121, 0, 1152 },
          {  "New Zealand", 122, 0, 1149 },
          {  "Malawi", 123, 0, 1141 },
          {  "Philippines", 124, 0, 1136 },
          {  "Angola", 124, 0, 1136 },
          {  "Antigua and Barbuda", 126, 0, 1127 },
          {  "Togo", 126, 0, 1127 },
          {  "Sudan", 128, 0, 1112 },
          {  "Turkmenistan", 129, 0, 1107 },
          {  "Guatemala", 130, 0, 1106 },
          {  "Rwanda", 131, 0, 1089 },
          {  "Lithuania", 131, 0, 1089 },
          {  "Comoros", 133, 0, 1088 },
          {  "Tanzania", 134, 0, 1086 },
          {  "Andorra", 135, 0, 1082 },
          {  "Myanmar", 136, 0, 1081 },
          {  "Latvia", 137, 0, 1079 },
          {  "Chinese Taipei", 138, 0, 1078 },
          {  "Lesotho", 139, 1, 1074 },
          {  "St. Kitts and Nevis", 139, 1, 1074 },
          {  "Hong Kong", 141, -2, 1073 },
          {  "Suriname", 141, 1, 1073 },
          {  "Solomon Islands", 141, 1, 1073 },
          {  "Yemen", 144, 0, 1071 },
          {  "Equatorial Guinea", 145, 0, 1066 },
          {  "Ethiopia", 146, 0, 1061 },
          {  "Kuwait", 147, 0, 1060 },
          {  "Botswana", 148, 0, 1055 },
          {  "Afghanistan", 149, 0, 1052 },
          {  "Nicaragua", 150, 0, 1050 },
          {  "Burundi", 151, 0, 1049 },
          {  "Liberia", 152, 0, 1047 },
          {  "Eswatini", 153, 0, 1042 },
          {  "Malaysia", 154, 0, 1040 },
          {  "Maldives", 155, 0, 1038 },
          {  "New Caledonia", 156, 0, 1035 },
          {  "Singapore", 157, 0, 1020 },
          {  "Dominican Republic", 158, 0, 1019 },
          {  "Gambia", 159, 0, 1015 },
          {  "Grenada", 159, 0, 1015 },
          {  "Tahiti", 161, 0, 1014 },
          {  "Barbados", 162, 0, 1011 },
          {  "Fiji", 163, 0, 996 },
          {  "Vanuatu", 163, 0, 996 },
          {  "Papua New Guinea", 165, 0, 991 },
          {  "Guyana", 166, 0, 988 },
          {  "St. Vincent and the Grenadines", 167, 0, 986 },
          {  "Bermuda", 168, 0, 984 },
          {  "South Sudan", 169, 0, 983 },
          {  "Nepal", 170, 0, 974 },
          {  "Belize", 170, 0, 974 },
          {  "Mauritius", 172, 0, 968 },
          {  "Indonesia", 173, 0, 964 },
          {  "Cambodia", 173, 0, 964 },
          {  "Moldova", 175, 0, 959 },
          {  "St. Lucia", 176, 0, 953 },
          {  "Chad", 177, 0, 943 },
          {  "Puerto Rico", 178, 0, 941 },
          {  "Cuba", 179, 0, 936 },
          {  "Liechtenstein", 180, 0, 926 },
          {  "São Tomé and Príncipe", 181, 0, 923 },
          {  "Macau", 182, 0, 922 },
          {  "Montserrat", 183, 0, 921 },
          {  "Malta", 184, 0, 919 },
          {  "Djibouti", 184, 0, 919 },
          {  "Dominica", 184, 0, 919 },
          {  "Bangladesh", 187, 0, 915 },
          {  "Laos", 188, 0, 912 },
          {  "Bhutan", 189, 0, 911 },
          {  "Mongolia", 190, 0, 906 },
          {  "Brunei Darussalam", 191, 0, 904 },
          {  "American Samoa", 192, 0, 900 },
          {  "Cayman Islands", 193, 0, 897 },
          {  "Samoa", 194, 0, 894 },
          {  "Bahamas", 195, 0, 880 },
          {  "Gibraltar", 196, 0, 879 },
          {  "Timor-Leste", 196, 0, 879 },
          {  "Somalia", 196, 0, 879 },
          {  "Guam", 199, 0, 873 },
          {  "Seychelles", 200, 0, 868 },
          {  "Pakistan", 201, 0, 867 },
          {  "Aruba", 201, 0, 867 },
          {  "Tonga", 203, 0, 862 },
          {  "Turks and Caicos Islands", 203, 0, 862 },
          {  "Sri Lanka", 205, 0, 856 },
          {  "Eritrea", 205, 0, 856 },
          {  "US Virgin Islands", 207, 0, 844 },
          {  "British Virgin Islands", 208, 0, 842 },
          {  "San Marino", 209, 0, 824 },
          {  "Anguilla", 210, 0, 821 },
}

-- list of FIFA country codes
data.alias = { 
        { "AFG",  "Afghanistan" },
        { "AIA",  "Anguilla" },
        { "ALB",  "Albania" },
        { "ALG",  "Algeria" },
        { "AND",  "Andorra" },
        { "ANG",  "Angola" },
        { "ARG",  "Argentina" },
        { "ARM",  "Armenia" },
        { "ARU",  "Aruba" },
        { "ASA",  "American 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" },
        { "BLR",  "Belarus" },
        { "BLZ",  "Belize" },
        { "BOL",  "Bolivia" },
        { "BOT",  "Botswana" },
        { "BRA",  "Brazil" },
        { "BRB",  "Barbados" },
        { "BRU",  "Brunei Darussalam" },
        { "BUL",  "Bulgaria" },
        { "CAM",  "Cambodia" },
        { "CAN",  "Canada" },
        { "CAY",  "Cayman Islands" },
        { "CGO",  "Congo" },
        { "CHA",  "Chad" },
        { "CHI",  "Chile" },
        { "CHN",  "China PR" },
        { "CIV",  "Côte d'Ivoire" },
        { "CMR",  "Cameroon" },
        { "COD",  "Congo DR" },
        { "COK",  "Cook Islands" },
        { "COL",  "Colombia" },
        { "COM",  "Comoros" },
        { "CPV",  "Cape Verde Islands" },
        { "CRC",  "Costa Rica" },
        { "CRO",  "Croatia" },
        { "CTA",  "Central African Republic" },
        { "CUB",  "Cuba" },
        { "CUW",  "Curacao" },
        { "CYP",  "Cyprus" },
        { "CZE",  "Czech Republic" },
        { "DEN",  "Denmark" },
        { "DJI",  "Djibouti" },
        { "DMA",  "Dominica" },
        { "DOM",  "Dominican Republic" },
        { "ECU",  "Ecuador" },
        { "EGY",  "Egypt" },
        { "ENG",  "England" },
        { "EQG",  "Equatorial Guinea" },
        { "ERI",  "Eritrea" },
        { "ESP",  "Spain" },
        { "EST",  "Estonia" },
        { "ETH",  "Ethiopia" },
        { "FIJ",  "Fiji" },
        { "FIN",  "Finland" },
        { "FRA",  "France" },
        { "FRO",  "Faroe Islands" },
        { "GAB",  "Gabon" },
        { "GAM",  "Gambia" },
        { "GEO",  "Georgia" },
        { "GER",  "Germany" },
        { "GHA",  "Ghana" },
        { "GIB",  "Gibraltar" },
        { "GNB",  "Guinea-Bissau" },
        { "GRE",  "Greece" },
        { "GRN",  "Grenada" },
        { "GUA",  "Guatemala" },
        { "GUI",  "Guinea" },
        { "GUM",  "Guam" },
        { "GUY",  "Guyana" },
        { "HAI",  "Haiti" },
        { "HKG",  "Hong Kong" },
        { "HON",  "Honduras" },
        { "HUN",  "Hungary" },
        { "IDN",  "Indonesia" },
        { "IND",  "India" },
        { "IRL",  "Republic of Ireland" },
        { "IRN",  "IR Iran" },
        { "IRQ",  "Iraq" },
        { "ISL",  "Iceland" },
        { "ISR",  "Israel" },
        { "ITA",  "Italy" },
        { "JAM",  "Jamaica" },
        { "JOR",  "Jordan" },
        { "JPN",  "Japan" },
        { "KAZ",  "Kazakhstan" },
        { "KEN",  "Kenya" },
        { "KGZ",  "Kyrgyz Republic" },
        { "KOR",  "Korea Republic" },
        { "KSA",  "Saudi Arabia" },
        { "KUW",  "Kuwait" },
        { "KVX",  "Kosovo" },
        { "LAO",  "Laos" },
        { "LBR",  "Liberia" },
        { "LBY",  "Libya" },
        { "LCA",  "St. Lucia" },
        { "LES",  "Lesotho" },
        { "LIB",  "Lebanon" },
        { "LIE",  "Liechtenstein" },
        { "LTU",  "Lithuania" },
        { "LUX",  "Luxembourg" },
        { "LVA",  "Latvia" },
        { "MAC",  "Macau" },
        { "MAD",  "Madagascar" },
        { "MAR",  "Morocco" },
        { "MAS",  "Malaysia" },
        { "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" },
        { "MWI",  "Malawi" },
        { "MYA",  "Myanmar" },
        { "NAM",  "Namibia" },
        { "NCA",  "Nicaragua" },
        { "NCL",  "New Caledonia" },
        { "NED",  "Netherlands" },
        { "NEP",  "Nepal" },
        { "NGA",  "Nigeria" },
        { "NIG",  "Niger" },
        { "NIR",  "Northern Ireland" },
        { "NOR",  "Norway" },
        { "NZL",  "New Zealand" },
        { "OMA",  "Oman" },
        { "PAK",  "Pakistan" },
        { "PAN",  "Panama" },
        { "PAR",  "Paraguay" },
        { "PER",  "Peru" },
        { "PHI",  "Philippines" },
        { "PLE",  "Palestine" },
        { "PNG",  "Papua New Guinea" },
        { "POL",  "Poland" },
        { "POR",  "Portugal" },
        { "PRK",  "Korea DPR" },
        { "PUR",  "Puerto Rico" },
        { "QAT",  "Qatar" },
        { "ROU",  "Romania" },
        { "RSA",  "South Africa" },
        { "RUS",  "Russia" },
        { "RWA",  "Rwanda" },
        { "SAM",  "Samoa" },
        { "SCO",  "Scotland" },
        { "SDN",  "Sudan" },
        { "SEN",  "Senegal" },
        { "SEY",  "Seychelles" },
        { "SIN",  "Singapore" },
        { "SKN",  "St. Kitts and Nevis" },
        { "SLE",  "Sierra Leone" },
        { "SLV",  "El Salvador" },
        { "SMR",  "San Marino" },
        { "SOL",  "Solomon Islands" },
        { "SOM",  "Somalia" },
        { "SRB",  "Serbia" },
        { "SRI",  "Sri Lanka" },
        { "SSD",  "South Sudan" },
        { "STP",  "Sao Tome e Principe" },
        { "SUI",  "Switzerland" },
        { "SUR",  "Suriname" },
        { "SVK",  "Slovakia" },
        { "SVN",  "Slovenia" },
        { "SWE",  "Sweden" },
        { "SWZ",  "Eswatini" },
        { "SYR",  "Syria" },
        { "TAH",  "Tahiti" },
        { "TAN",  "Tanzania" },
        { "TCA",  "Turks and Caicos Islands" },
        { "TGA",  "Tonga" },
        { "THA",  "Thailand" },
        { "TJK",  "Tajikistan" },
        { "TKM",  "Turkmenistan" },
        { "TLS",  "Timor-Leste" },
        { "TOG",  "Togo" },
        { "TPE",  "Chinese Taipei" },
        { "TRI",  "Trinidad and Tobago" },
        { "TUN",  "Tunisia" },
        { "TUR",  "Turkey" },
        { "UAE",  "United Arab Emirates" },
        { "UGA",  "Uganda" },
        { "UKR",  "Ukraine" },
        { "URU",  "Uruguay" },
        { "USA",  "USA" },
        { "UZB",  "Uzbekistan" },
        { "VAN",  "Vanuatu" },
        { "VEN",  "Venezuela" },
        { "VGB",  "British Virgin Islands" },
        { "VIE",  "Vietnam" },
        { "VIN",  "St. Vincent and the Grenadines" },
        { "VIR",  "US Virgin Islands" },
        { "WAL",  "Wales" },
        { "YEM",  "Yemen" },
        { "ZAM",  "Zambia" },
        { "ZIM",  "Zimbabwe" },
}

data.confederation = { AFC =    { "AFG","AUS","BAN","BHR","BHU","BRU","CAM","CHN","GUM","HKG",
	                              "IDN","IND","IRN","IRQ","JOR","JPN","KGZ","KOR","KSA","KUW",
	                              "LAO","LIB","MAC","MAS","MDV","MNG","MYA","NEP","OMA","PAK",
    	                          "PHI","PLE","PRK","QAT","SIN","SRI","SYR","THA","TJK","TKM",
    	                          "TLS","TPE","UAE","UZB","VIE","YEM" 
                                } ,
                          EAFF =    { "CHN","GUM","HKG","JPN","KOR","MAC","MNG","PRK","TPE"
                                } ,
                        test = { "ENG", "SCO", "WAL", "IRE", "NIR", "FRA", "England", "France", "Germany" },
                      }
    	                          
return data