Module:SportsRankings/data/WBSC Women's World Rankings

local data = {}

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

-- general information about ranking and website being cited
data.source = {
    url = "https://rankings.wbsc.org/list/softball/women", 
	title = "The WBSC Women's World Ranking",
	website = "WBSC"
}

-- date of latest update and previous one for movement
data.updated  = { 	day = 10, 	month = 'November',  year =2023 }
data.previous = { 	day = 31, 	month = 'July',  year =2023 }

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

data.rankings = {
          { "United States", 1, 0, 4301 },
          { "Japan", 2, 0, 2899 },
          { "Puerto Rico", 3, 0, 2815 },
          { "Chinese Taipei", 4, 1, 2573 },
          { "Canada", 5, -1, 1885 },
          { "Italy", 6, 2, 1816 },
          { "Mexico", 7, -1, 1684 },
          { "Netherlands", 8, 1, 1602 },
          { "Czech Republic", 9, 1, 1483 },
          { "Australia", 10, -3, 1379 },
          { "Cuba", 11, 3, 953 },
          { "Spain", 12, 0, 950 },
          { "Great Britain", 13, 0, 936 },
          { "Philippines", 14, 7, 898 },
          { "China", 15, -4, 845 },
          { "Peru", 16, 2, 771 },
          { "Venezuela", 17, -2, 770 },
          { "Israel", 18, 1, 725 },
          { "Germany", 19, 1, 646 },
          { "France", 20, 2, 624 },
          { "Ireland", 21, -4, 614 },
          { "Poland", 22, 2, 477 },
          { "Brazil", 23, -7, 451 },
          { "Croatia", 24, 1, 443 },
          { "Ukraine", 25, 2, 438 },
          { "Austria", 26, 4, 398 },
          { "Slovakia", 27, 1, 370 },
          { "Greece", 28, -2, 365 },
          { "Argentina", 29, 0, 320 },
          { "South Korea", 30, 4, 264 },
          { "Singapore", 31, 7, 258 },
          { "New Zealand", 32, -9, 241 },
          { "Hong Kong", 33, 7, 223 },
          { "Denmark", 34, 1, 219 },
          { "Belgium", 35, 6, 211 },
          { "South Africa", 36, -5, 206 },
          { "Guatemala", 37, -4, 196 },
          { "Russia", 38, -1, 185 },
          { "Botswana", 39, -7, 176 },
          { "Switzerland", 40, 2, 169 },
          { "Dominican Republic", 41, -2, 149 },
          { "El Salvador", 42, 1, 139 },
          { "Colombia", 43, -7, 118 },
          { "Malta", 44, 1, 95 },
          { "Finland", 45, 1, 88 },
          { "Curaçao", 46, -2, 85 },
          { "Hungary", 47, 5, 76 },
          { "Nicaragua", 48, -1, 71 },
          { "Thailand", 49, 1, 70 },
          { "Chile", 50, 5, 67 },
          { "Bulgaria", 51, -2, 65 },
          { "Lithuania", 52, -1, 57 },
          { "Turkey", 53, 0, 50 },
          { "India", 54, -6, 45 },
          { "Costa Rica", 55, -1, 42 },
          { "Sweden", 56, 0, 38 },
          { "Kenya", 57, -1, 32 },
          { "Indonesia", 58, 0, 23 },
          { "Malaysia", 59, 0, 17 },
          { "Ecuador", 60, -3, 16 },
          { "Lesotho", 61, 0, 8 },
          { "Aruba", 62, 1, 6 },
          { "US Virgin Islands", 62, 1, 6 },
          { "American Samoa", 64, 0, 5 },
          { "British Virgin Islands", 65, 0, 2 },
          { "Uganda", 66, 0, 0 },
}

-- list of WBSC country codes
data.alias = { 
	    { "ARG",  "Argentina" },
	    { "ARU",  "Aruba" },
	    { "ASA",  "American Samoa" },
	    { "AUS",  "Australia" },
	    { "AUT",  "Austria" },
	    { "BAH",  "Bahamas" },
	    { "BEL",  "Belgium" },
        { "BIZ",  "Belize" },
        { "BOT",  "Botswana" },
        { "BRA",  "Brazil" },
        { "BUL",  "Bulgaria" },
        { "CAN",  "Canada" },
        { "CHI",  "Chile" },
        { "CHN",  "China" },
        { "COL",  "Colombia" },
        { "CRC",  "Costa Rica" },
        { "CRO",  "Croatia" },
        { "CUB",  "Cuba" },
        { "CUW",  "Curaçao" },
        { "CZE",  "Czech Republic" },
        { "DEN",  "Denmark" },
        { "DOM",  "Dominican Republic" },
        { "ECU",  "Ecuador" },
        { "ESA",  "El Salvador" },
        { "ESP",  "Spain" },
        { "FIN",  "Finland" },
        { "FRA",  "France" },
        { "GBR",  "Great Britain" },
        { "GER",  "Germany" },
        { "GRE",  "Greece" },
        { "GUA",  "Guatemala" },
        { "HKG",  "Hong Kong" },
        { "HUN",  "Hungary" },
        { "INA",  "Indonesia" },
        { "IND",  "India" },
        { "IRL",  "Ireland" },
        { "ISR",  "Israel" },
        { "ISV",  "US Virgin Islands" },
        { "ITA",  "Italy" },
        { "IVB",  "British Virgin Islands" },
        { "JPN",  "Japan" },
        { "KEN",  "Kenya" },
        { "KOR",  "South Korea" },
        { "LES",  "Lesotho" },
        { "LTU",  "Lithuania" },
        { "MAS",  "Malaysia" },
        { "MEX",  "Mexico" },
        { "MLT",  "Malta" },
        { "NCA",  "Nicaragua" },
        { "NED",  "Netherlands" },
        { "NZL",  "New Zealand" },
        { "PAN",  "Panama" },
        { "PER",  "Peru" },
        { "PHI",  "Philippines" },
        { "POL",  "Poland" },
        { "PUR",  "Puerto Rico" },
        { "RSA",  "South Africa" },
        { "RUS",  "Russia" },
        { "SGP",  "Singapore" },
        { "SUI",  "Switzerland" },
        { "SVK",  "Slovakia" },
        { "SWE",  "Sweden" },
        { "THA",  "Thailand" },
        { "TPE",  "Chinese Taipei" },
        { "TUR",  "Turkey" },
        { "UGA",  "Uganda" },
        { "UKR",  "Ukraine" },
        { "USA",  "United States" },
        { "VEN",  "Venezuela" },
}
-- List of WBSC confederations
data.confederation = { 
	Africa = { "RSA", "BOT", "KEN", "LES", "UGA"
	},
	Americas = { "USA", "PUR", "CAN", "MEX", "CUB", "PER", "VEN", "BRA", "ARG",
		"GUA", "DOM", "ESA", "COL", "CUW", "NCA", "CHI", "CRC", "ECU", "ARU", 
		"ISV", "IVB"
	},
	Asia = { "JPN", "TPE", "PHI", "CHN", "KOR", "SGP", "HKG", "THA", "IND",
		"INA", "MAS"
	},
	Europe = { "ITA", "NED", "CZE", "ESP", "GBR", "ISR", "GER", "FRA", "IRL", 
		"POL", "CRO", "UKR", "AUT", "SVK", "GRE", "DEN", "BEL", "RUS", "SUI", 
		"MLT", "FIN", "HUN", "BUL", "LTU", "TUR", "SWE"
	},
	Oceania = { "AUS", "NZL", "ASA"
	},
}
    	                          
return data