Modul:SportsRankings/data/FIFA World Rankings

local data = {}

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

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

-- date of latest update and previous one for movement
data.updated  = { 	day = 23, 	month = 'Juni',  year =2022 }
data.previous = { 	day = 31, 	month = 'Maret',  year =2022 }

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

data.rankings = {
          {  "Brazil", 1, 0, 1837.56 },
          {  "Belgium", 2, 0, 1821.92 },
          {  "Argentina", 3, 1, 1770.65 },
          {  "France", 4, -1, 1764.85 },
          {  "England", 5, 0, 1737.46 },
          {  "Spain", 6, 1, 1716.93 },
          {  "Italy", 7, -1, 1713.86 },
          {  "Netherlands", 8, 2, 1679.41 },
          {  "Portugal", 9, -1, 1678.65 },
          {  "Denmark", 10, 1, 1665.47 },
          {  "Germany", 11, 1, 1658.96 },
          {  "Mexico", 12, -3, 1649.57 },
          {  "Uruguay", 13, 0, 1643.71 },
          {  "USA", 14, 1, 1635.01 },
          {  "Croatia", 15, 1, 1632.15 },
          {  "Switzerland", 16, -2, 1621.43 },
          {  "Colombia", 17, 0, 1604.07 },
          {  "Senegal", 18, 2, 1593.45 },
          {  "Wales", 19, -1, 1582.13 },
          {  "Sweden", 20, -1, 1563.44 },
          {  "Peru", 21, 1, 1562.24 },
          {  "Morocco", 22, 2, 1558.9 },
          {  "IR Iran", 23, -2, 1558.64 },
          {  "Japan", 24, -1, 1552.77 },
          {  "Serbia", 25, 0, 1549.53 },
          {  "Poland", 26, 0, 1546.18 },
          {  "Ukraine", 27, 0, 1542.79 },
          {  "Korea Republic", 28, 1, 1526.2 },
          {  "Chile", 29, -1, 1514.86 },
          {  "Tunisia", 30, 5, 1507.86 },
          {  "Nigeria", 31, -1, 1504.7 },
          {  "Czech Republic", 32, 1, 1502.9 },
          {  "Austria", 33, 1, 1502.47 },
          {  "Costa Rica", 34, -3, 1500.06 },
          {  "Russia", 35, 1, 1493.42 },
          {  "Norway", 36, 5, 1488.57 },
          {  "Hungary", 37, 3, 1486.76 },
          {  "Cameroon", 38, -1, 1484.95 },
          {  "Australia", 39, 3, 1483.73 },
          {  "Egypt", 40, -8, 1482.63 },
          {  "Algeria", 41, 3, 1480.59 },
          {  "Turkey", 42, 1, 1475.13 },
          {  "Canada", 43, -5, 1473.82 },
          {  "Ecuador", 44, 2, 1463.74 },
          {  "Scotland", 45, -6, 1462.96 },
          {  "Mali", 46, 6, 1447.74 },
          {  "Republic of Ireland", 47, 0, 1442.48 },
          {  "Greece", 48, 7, 1441.45 },
          {  "Qatar", 49, 2, 1441.41 },
          {  "Paraguay", 50, 0, 1440.13 },
          {  "Slovakia", 51, -6, 1439.99 },
          {  "Côte d'Ivoire", 52, 1, 1435.91 },
          {  "Saudi Arabia", 53, -4, 1435.74 },
          {  "Romania", 54, -6, 1427.84 },
          {  "Burkina Faso", 55, 1, 1425.64 },
          {  "Venezuela", 56, 2, 1405.17 },
          {  "Bosnia and Herzegovina", 57, 2, 1403.98 },
          {  "Northern Ireland", 58, -4, 1399.1 },
          {  "Finland", 59, -2, 1398.41 },
          {  "Ghana", 60, 0, 1389.68 },
          {  "Panama", 61, 0, 1386.51 },
          {  "Jamaica", 62, 2, 1382.06 },
          {  "Iceland", 63, 0, 1379.61 },
          {  "North Macedonia", 64, -2, 1375.2 },
          {  "Slovenia", 65, 0, 1372.48 },
          {  "Albania", 66, 0, 1361.81 },
          {  "Montenegro", 67, 3, 1354.59 },
          {  "South Africa", 68, 1, 1347.91 },
          {  "United Arab Emirates", 69, -1, 1346.09 },
          {  "Iraq", 70, 2, 1338.91 },
          {  "El Salvador", 71, 3, 1333.48 },
          {  "Cabo Verde", 72, -1, 1332.96 },
          {  "Congo DR", 73, -6, 1332.84 },
          {  "Bulgaria", 74, -1, 1325.16 },
          {  "Oman", 75, 0, 1323.03 },
          {  "Israel", 76, 0, 1316.35 },
          {  "Uzbekistan", 77, 6, 1306.63 },
          {  "China PR", 78, -1, 1304.02 },
          {  "Gabon", 79, 2, 1301.84 },
          {  "Honduras", 80, 2, 1299.69 },
          {  "Bolivia", 81, -3, 1298.81 },
          {  "Georgia", 82, 3, 1296.46 },
          {  "Guinea", 83, -3, 1294.89 },
          {  "Curaçao", 84, -5, 1293.35 },
          {  "Bahrain", 85, 4, 1289.25 },
          {  "Jordan", 86, 5, 1279.74 },
          {  "Haiti", 87, 3, 1269.07 },
          {  "Zambia", 88, -1, 1268.18 },
          {  "Syria", 89, -1, 1265.03 },
          {  "Uganda", 90, -4, 1264.56 },
          {  "Benin", 91, -7, 1262.49 },
          {  "Armenia", 92, 0, 1242.42 },
          {  "Luxembourg", 93, 1, 1235.36 },
          {  "Palestine", 94, 6, 1233.72 },
          {  "Kyrgyz Republic", 95, 0, 1232.91 },
          {  "Belarus", 96, -3, 1226.55 },
          {  "Vietnam", 97, -1, 1218.84 },
          {  "Equatorial Guinea", 98, 1, 1215.33 },
          {  "Congo", 99, -1, 1215.09 },
          {  "Lebanon", 100, -3, 1211.71 },
          {  "Trinidad and Tobago", 101, 2, 1205.85 },
          {  "Kenya", 102, 2, 1202.26 },
          {  "New Zealand", 103, -2, 1198.96 },
          {  "India", 104, 2, 1198.65 },
          {  "Madagascar", 105, -3, 1196.03 },
          {  "Kosovo", 106, 1, 1183.9 },
          {  "Cyprus", 107, -2, 1180.52 },
          {  "Tajikistan", 108, 6, 1179.1 },
          {  "Estonia", 109, 1, 1177.4 },
          {  "Mauritania", 110, 3, 1177 },
          {  "Thailand", 111, 0, 1170.69 },
          {  "Korea DPR", 112, -3, 1169.96 },
          {  "Sierra Leone", 113, -5, 1168.21 },
          {  "Kazakhstan", 114, 11, 1166.28 },
          {  "Guinea-Bissau", 115, 0, 1165.78 },
          {  "Guatemala", 116, 2, 1161.96 },
          {  "Namibia", 117, -5, 1160.97 },
          {  "Mozambique", 118, 1, 1160.55 },
          {  "Niger", 119, -3, 1155.23 },
          {  "Libya", 120, -3, 1148.36 },
          {  "Malawi", 121, -1, 1146.49 },
          {  "Angola", 122, 4, 1145.26 },
          {  "Zimbabwe", 123, -1, 1138.56 },
          {  "Gambia", 124, -1, 1137.22 },
          {  "Faroe Islands", 125, -1, 1136.29 },
          {  "Comoros", 126, 2, 1131.88 },
          {  "Togo", 127, -6, 1130.22 },
          {  "Azerbaijan", 128, 1, 1127.17 },
          {  "Latvia", 129, 6, 1125.36 },
          {  "Sudan", 130, 2, 1124.91 },
          {  "Tanzania", 131, -1, 1119.24 },
          {  "Antigua and Barbuda", 132, -5, 1117.01 },
          {  "Central African Republic", 133, -2, 1116.06 },
          {  "Philippines", 134, -1, 1113.75 },
          {  "Turkmenistan", 135, -1, 1100.47 },
          {  "Rwanda", 136, 0, 1095.04 },
          {  "Solomon Islands", 137, 0, 1092.56 },
          {  "Ethiopia", 138, 2, 1086.73 },
          {  "Nicaragua", 139, 5, 1079.18 },
          {  "Burundi", 140, -1, 1078.12 },
          {  "St. Kitts and Nevis", 141, 1, 1076.91 },
          {  "Lithuania", 142, -4, 1074.08 },
          {  "Suriname", 143, -2, 1072.24 },
          {  "Eswatini", 144, -1, 1066.92 },
          {  "Hong Kong", 145, 2, 1061.15 },
          {  "Lesotho", 146, -1, 1059.04 },
          {  "Malaysia", 147, 7, 1057.59 },
          {  "Kuwait", 148, -2, 1053.41 },
          {  "Botswana", 149, -1, 1050.32 },
          {  "Liberia", 150, -1, 1047.36 },
          {  "Dominican Republic", 151, 4, 1031.86 },
          {  "Andorra", 152, 1, 1028.7 },
          {  "Yemen", 153, -2, 1023.52 },
          {  "Afghanistan", 154, -4, 1023.04 },
          {  "Indonesia", 155, 4, 1019.19 },
          {  "Maldives", 156, 0, 1018.25 },
          {  "Chinese Taipei", 157, 0, 1017.78 },
          {  "Myanmar", 158, -6, 1011.91 },
          {  "Singapore", 159, -1, 1004.75 },
          {  "New Caledonia", 160, 0, 999.7 },
          {  "Papua New Guinea", 161, 1, 997.6 },
          {  "Tahiti", 162, 2, 995.11 },
          {  "Fiji", 163, 2, 993.37 },
          {  "Vanuatu", 164, 2, 990.55 },
          {  "South Sudan", 165, -4, 985.53 },
          {  "Barbados", 166, -3, 982.27 },
          {  "Cuba", 167, 10, 978.65 },
          {  "Malta", 168, 1, 974.68 },
          {  "Puerto Rico", 169, 3, 974.32 },
          {  "Bermuda", 170, -3, 970.3 },
          {  "Grenada", 171, -1, 969 },
          {  "Guyana", 172, 2, 968.74 },
          {  "St. Lucia", 173, 3, 965.66 },
          {  "Cambodia", 174, -3, 954.3 },
          {  "Belize", 175, -2, 950.88 },
          {  "Nepal", 176, -8, 950.45 },
          {  "Montserrat", 177, 1, 947.96 },
          {  "Moldova", 178, 2, 944.96 },
          {  "Mauritius", 179, 0, 940.47 },
          {  "St. Vincent and the Grenadines", 180, -5, 939.97 },
          {  "Chad", 181, 0, 931.98 },
          {  "Macau", 182, 0, 922.1 },
          {  "Laos", 183, 2, 914.66 },
          {  "Mongolia", 184, 2, 913.55 },
          {  "Dominica", 185, -1, 911.51 },
          {  "Bhutan", 186, 1, 910.96 },
          {  "São Tomé and Príncipe", 187, -4, 908.18 },
          {  "American Samoa", 188, 1, 900.27 },
          {  "Cook Islands", 189, 1, 899.33 },
          {  "Brunei Darussalam", 190, 1, 897.1 },
          {  "Samoa", 191, 2, 894.26 },
          {  "Bangladesh", 192, -4, 883.18 },
          {  "Djibouti", 193, 1, 875.98 },
          {  "Liechtenstein", 194, -2, 873.99 },
          {  "Seychelles", 195, 1, 866.94 },
          {  "Pakistan", 196, 1, 866.81 },
          {  "Cayman Islands", 197, -2, 865.72 },
          {  "Tonga", 198, 1, 861.81 },
          {  "Timor-Leste", 199, -1, 861.43 },
          {  "Somalia", 200, 2, 857.39 },
          {  "Gibraltar", 201, 2, 856.55 },
          {  "Eritrea", 202, 2, 855.56 },
          {  "Aruba", 203, -3, 855.37 },
          {  "Bahamas", 204, -3, 854.8 },
          {  "Guam", 205, 2, 838.33 },
          {  "Turks and Caicos Islands", 206, 0, 832 },
          {  "Sri Lanka", 207, -2, 825.25 },
          {  "US Virgin Islands", 208, 0, 823.97 },
          {  "British Virgin Islands", 209, 0, 809.32 },
          {  "Anguilla", 210, 0, 790.74 },
          {  "San Marino", 211, 0, 763.82 },
}

-- 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",  "Cabo Verde" },
        { "CRC",  "Costa Rica" },
        { "CRO",  "Croatia" },
        { "CTA",  "Central African Republic" },
        { "CUB",  "Cuba" },
        { "CUW",  "Curaçao" }, { "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" },
        { "LBN",  "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",  "São Tomé and Príncipe" },
        { "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" },
}
-- List of FIFA confederations (Minus test and EAFF)
data.confederation = { 
	AFC = {"AFG", "AUS", "BHR", "BAN", "BHU", "BRU", "CAM", "CHN", "TPE", "GUM", 
		"HKG", "IND", "IDN", "IRN", "IRQ", "JPN", "JOR", "PRK", "KOR", "KUW", 
		"KGZ", "LAO", "LBN", "MAC", "MAS", "MDV", "MNG", "MYA", "NEP", "OMA", 
		"PAK", "PLE", "PHI", "QAT", "KSA", "SIN", "SRI", "SYR", "TJK", "THA", 
		"TLS", "TKM", "UAE", "UZB", "VIE", "YEM"
	},
	CAF = {"ALG", "ANG", "BEN", "BOT", "BFA", "BDI", "CPV", "CMR", "CTA", "CHA", 
		"COM", "CGO", "COD", "CIV", "DJI", "EGY", "EQG", "ERI", "SWZ", "ETH", 
		"GAB", "GAM", "GHA", "GUI", "GNB", "KEN", "LES", "LBR", "LBY", "MAD", 
		"MWI", "MLI", "MTN", "MRI", "MAR", "MOZ", "NAM", "NIG", "NGA", "RWA", 
		"STP", "SEN", "SEY", "SLE", "SOM", "RSA", "SSD", "SDN", "TAN", "TOG", 
		"TUN", "UGA", "ZAM", "ZIM"
	},
	CONCACAF = {"AIA", "ATG", "ARU", "BAH", "BRB", "BLZ", "BER", "VGB", "CAN", 
		"CAY", "CRC", "CUB", "CUW", "DMA", "DOM", "SLV", "GRN", "GUA", "GUY", 
		"HAI", "HON", "JAM", "MEX", "MSR", "NCA", "PAN", "PUR", "SKN", "LCA", 
		"VIN", "SUR", "TRI", "TCA", "VIR", "USA"
	},
	CONMEBOL = {"ARG", "BOL", "BRA", "CHI", "COL", "ECU", "PAR", "PER", "URU", 
		"VEN"
	},
	OFC = {"ASA", "FIJ", "NCL", "NZL", "PNG", "SAM", "SOL", "TAH", "TGA", "VAN"
	},
	UEFA = {"ALB", "AND", "ARM", "AUT", "AZE", "BLR", "BEL", "BIH", "BUL", "CRO",
		"CYP", "CZE", "DEN", "ENG", "EST", "FRO", "FIN", "FRA", "GEO", "GER", 
		"GIB", "GRE", "HUN", "ISL", "ISR", "ITA", "KAZ", "KVX", "LVA", "LIE", 
		"LTU", "LUX", "MLT", "MDA", "MNE", "NED", "MKD", "NIR", "NOR", "POL", 
		"POR", "IRL", "ROU", "RUS", "SMR", "SCO", "SRB", "SVK", "SVN", "ESP", 
		"SWE", "SUI", "TUR", "UKR", "WAL",
	},
    EAFF = { "CHN","GUM","HKG","JPN","KOR","MAC","MNG","PRK","TPE"},
    test = { "ENG", "SCO", "WAL", "IRE", "NIR", "FRA", "England", "France", "Germany" },
}
    	                          
return data