Modul:SportsRankings/data/BSWW World Ranking

local data = {}

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

-- general information about ranking and website being cited
data.source = {
    url = "https://beachsoccer.com/rankings#3398", 
	title = "World Ranking",
	website = "BSWW"
}

-- date of latest update and previous one for movement
data.updated  = { 	day = 31, 	month = 'Desember',	year =2020 }
data.previous = { 	day = 02, 	month = 'Maret',	year =2020 } -- unknown

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

-- new rankings only show direction of change, not the step -- so use +1000 for up and -1000 for down
data.rankings = {                        
          { "Portugal", 1, 0, 3124 },
          { "Brazil", 2, 0, 2911 },
          { "Italy", 3, 0, 2733 },
          { "Russia", 4, 0, 2715 },
          { "Spain", 5, 1000, 1605 },
          { "Japan", 6, -1000, 1549 },
          { "Iran", 7, 1000, 1486 },
          { "Switzerland", 8, -1000, 1462 },
          { "Paraguay", 9, 1000, 1239 },
          { "Senegal", 10, -1000, 1149 },
          { "Uruguay", 11, 0, 1087 },
          { "Mexico", 12, 1000, 1041 },
          { "Tahiti", 13, -1000, 1015 },
          { "UAE", 14, 0, 945 },
          { "Belarus", 15, 0, 839 },
          { "United States", 16, 0, 718 },
          { "Argentina", 17, 1000, 648 },
          { "Ukraine", 18, 1000, 625 },
          { "Morocco", 19, -1000, 598 },
          { "El Salvador", 20, 0, 582 },
          { "Oman", 21, 1000, 555 },
          { "France", 22, 1000, 551 },
          { "Egypt", 23, -1000, 472 },
          { "Panama", 24, 1000, 459 },
          { "Nigeria", 25, -1000, 453 },
          { "Ecuador", 26, -1000, 443 },
          { "Colombia", 27, -1000, 433 },
          { "Germany", 28, 0, 431 },
          { "Peru", 29, 0, 371 },
          { "Poland", 30, 1000, 367 },
          { "Azerbaijan", 31, 1000, 360 },
          { "Solomon Islands", 32, 1000, 335 },
          { "Bahamas", 33, 0, 330 },
          { "Turkey", 34, 1000, 324 },
          { "Chile", 35, -1000, 323 },
          { "Czech Republic", 36, 1000, 243 },
          { "Vanuatu", 37, 1000, 242 },
          { "Greece", 38, 1000, 233 },
          { "Venezuela", 39, -1000, 219 },
          { "Lebanon", 40, 0, 217 },
          { "Hungary", 41, 0, 215 },
          { "Trinidad & Tob.", 42, 0, 215 },
          { "England", 43, 1000, 200 },
          { "Kazakhstan", 44, 1000, 195 },
          { "New Caledonia", 45, 0, 195 },
          { "Bolivia", 46, -1000, 184 },
          { "Norway", 47, 1000, 165 },
          { "Tonga", 48, 1000, 154 },
          { "Estonia", 49, 0, 154 },
          { "Romania", 50, 1000, 149 },
          { "Lithuania", 51, 1000, 149 },
          { "Guatemala", 52, 1000, 142 },
          { "Moldova", 53, 1000, 141 },
          { "China", 54, 1000, 129 },
          { "Bahrain", 55, 1000, 128 },
          { "Guadeloupe", 56, 1000, 124 },
          { "Cape Verde", 57, 1000, 119 },
          { "Palestine", 58, 1000, 117 },
          { "Algeria", 59, 1000, 116 },
          { "Netherlands", 60, 1000, 115 },
          { "Libya", 61, -1000, 112 },
          { "US Virgin Islands", 62, 1000, 105 },
          { "Guyana", 63, 1000, 103 },
          { "Bulgaria", 64, 1000, 96 },
          { "Malaysia", 65, 1000, 95 },
          { "Madagascar", 66, -1000, 90 },
          { "Denmark", 67, 1000, 88 },
          { "Dominican Rep.", 68, 1000, 88 },
          { "Tanzania", 69, -1000, 87 },
          { "Costa Rica", 70, 1000, 84 },
          { "Iraq", 71, 1000, 78 },
          { "Thailand", 72, 1000, 77 },
          { "Côte d'Ivoire", 73, -1000, 72 },
          { "Georgia", 74, 1000, 70 },
          { "Afghanistan", 75, 1000, 69 },
          { "Jamaica", 76, 1000, 67 },
          { "Kenya", 77, -1000, 67 },
          { "Antigua and Barbuda", 78, 1000, 63 },
          { "Belize", 79, 1000, 62 },
          { "Latvia", 80, 1000, 61 },
          { "Qatar", 81, 1000, 61 },
          { "Turks & Caicos", 82, 1000, 61 },
          { "Equatorial Guinea", 83, 1000, 56 },
          { "Syria", 84, 1000, 56 },
          { "Uganda", 85, -1000, 52 },
          { "Kuwait", 86, 1000, 46 },
          { "Bonaire", 87, 1000, 45 },
          { "Serbia", 88, 1000, 45 },
          { "Albania", 89, 1000, 45 },
          { "Djibouti", 90, 1000, 45 },
          { "Finland", 91, 1000, 43 },
          { "Andorra", 92, 1000, 38 },
          { "Mozambique", 93, -1000, 37 },
          { "Saudi Arabia", 94, 0, 30 },
          { "Slovakia", 95, 1000, 10 },
          { "Austria", 96, 1000, 7 },
          { "Seychelles", 97, 1000, 7 },
          { "Malawi", 98, 1000, 4 },
          { "Belgium", 99, 1000, 2 }
}

-- 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" },
        { "BOE",  "Bonaire" },
        { "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" },
        { "CHN",  "China PR" },
        { "CIV",  "Côte d'Ivoire" },
        { "CMR",  "Cameroon" },
        { "COD",  "Congo DR" },
        { "COK",  "Cook Islands" },
        { "COL",  "Colombia" },
        { "COM",  "Comoros" },
        { "CPV",  "Cape Verde" },
        { "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" },
        { "GLP",  "Guadeloupe" },
        { "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",  "Iran" },
        { "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",  "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" },
        { "TRI",  "Trinidad & Tobago" },
        { "TUN",  "Tunisia" },
        { "TUR",  "Turkey" },
        { "UAE",  "UAE" },
        { "UAE",  "United Arab Emirates" },
        { "UGA",  "Uganda" },
        { "UKR",  "Ukraine" },
        { "URU",  "Uruguay" },
        { "USA",  "United States" },
        { "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" },
        { "ZAN",  "Zanzibar" },
        { "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