Module:SportsRankings/data/WBSC World Rankings

From The Global Wiki
Jump to navigation Jump to search

Template:Module rating {{#lst:Template:WBSC World Rankings/doc|Doc}}


local data = {}

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

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

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

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

data.rankings = {
          { "Japan", 1, 0, 4179 },
          { "Chinese Taipei", 2, 0, 3819 },
          { "United States", 3, 2, 3449 },
          { "South Korea", 4, -1, 3428 },
          { "Mexico", 5, -1, 3273 },
          { "Venezuela", 6, 1, 2723 },
          { "Netherlands", 7, 1, 2468 },
          { "Cuba", 8, 1, 2246 },
          { "Dominican Republic", 9, -3, 1894 },
          { "Australia", 10, 0, 1889 },
          { "Colombia", 11, 0, 1669 },
          { "Panama", 12, 1, 1529 },
          { "Puerto Rico", 13, 3, 1419 },
          { "Canada", 14, -2, 1404 },
          { "Czech Republic", 15, -1, 1309 },
          { "Italy", 16, 1, 1206 },
          { "Nicaragua", 17, -2, 1117 },
          { "Germany", 18, 0, 1071 },
          { "Spain", 19, 0, 806 },
          { "Israel", 20, 0, 702 },
          { "France", 21, 1, 672 },
          { "Great Britain", 22, 2, 450 },
          { "Brazil", 23, 0, 423 },
          { "Belgium", 24, 1, 412 },
          { "South Africa", 25, 1, 385 },
          { "Austria", 26, 4, 305 },
          { "Russia", 27, 1, 266 },
          { "Argentina", 28, -1, 241 },
          { "Guam", 29, 9, 230 },
          { "China", 30, -9, 229 },
          { "Croatia", 31, 1, 227 },
          { "Ukraine", 32, -3, 210 },
          { "Curaçao", 33, 11, 184 },
          { "Slovakia", 34, 1, 170 },
          { "Lithuania", 35, 2, 165 },
          { "Greece", 36, -2, 136 },
          { "Sweden", 37, 3, 116 },
          { "New Zealand", 38, 9, 114 }, 
          { "Peru", 39, 3, 106 },
          { "Philippines", 40, -4, 97 },
          { "Uganda", 41, 3, 93 },
          { "Switzerland", 42, 8, 84 },
          { "Pakistan", 43, -12, 82 },
          { "American Samoa", 44, 2, 78 },
          { "Sri Lanka", 45, -2, 77 },
          { "Zimbabwe", 46, 2, 74 },
          { "Hungary", 47, 5, 73 },
          { "Belarus", 48, 5, 65 },
          { "Serbia", 49, 5, 64 },
          { "Burkina Faso", 50, 4, 61 },
          { "Ireland", 51, -10, 60 },
          { "Honduras", 52, -3, 55 },
          { "Hong Kong", 53, -20, 51 },
          { "Kenya", 54, 4, 49 },
          { "Guatemala", 55, 5, 44 },
          { "Poland", 56, 3, 42 },
          { "Bulgaria", 57, 11, 40 },
          { "Fiji", 58, 9, 38 },
          { "Nigeria", 59, 5, 36 },
          { "Northern Mariana Islands", 60, 18, 33 },
          { "El Salvador", 61, 5, 32 },
          { "India", 61, 1, 32 },
          { "Finland", 63, -6, 31 },
          { "Bahamas", 64, 16, 29 },
          { "Palau", 65, 11, 24 },
          { "Ghana", 66, 5, 23 },
          { "Iran", 66, 5, 23 },
          { "Slovenia", 66, 4, 23 },
          { "Tanzania", 66, 5, 23 },
          { "Romania", 70, -14, 20 },
          { "Ecuador", 71, 0, 19 },
          { "Indonesia", 72, -33, 18 },
          { "Norway", 73, 7, 17 },
          { "Bangladesh", 74, 1, 14 },
          { "US Virgin Islands", 74, -11, 14 },
          { "Costa Rica", 76, 2, 8 },
          { "Nepal", 77, 3, 5 },
          { "Bolivia", 78, -2, 4 },
          { "Solomon Islands", 79, 0, 3 },
          { "Turkey", 79, 6, 3 },
          { "Estonia", 81, -7, 2},
}

-- list of WBSC country codes
data.alias = { 
		{ "AFG",  "Afghanistan" },
	    { "ARG",  "Argentina" },
	    { "ARM",  "Armenia" },
	    { "ARU",  "Aruba" },
	    { "ASA",  "American Samoa" },
	    { "AUS",  "Australia" },
	    { "AUT",  "Austria" },
	    { "BAH",  "Bahamas" },
	    { "BAN",  "Bangladesh" },
	    { "BEL",  "Belgium" },
        { "BEN",  "Benin" },
        { "BER",  "Bermuda" },
        { "BHU",  "Bhutan" },
        { "BLR",  "Belarus" },
        { "BOL",  "Bolivia" },
        { "BOT",  "Botswana" },
        { "BRA",  "Brazil" },
        { "BRU",  "Brunei" },
        { "BUL",  "Bulgaria" },
        { "BUR",  "Burkina Faso" },
        { "CAN",  "Canada" },
        { "CHI",  "Chile" },
        { "CHN",  "China" },
        { "CIV",  "Ivory Coast" },
        { "CMR",  "Cameroon" },
        { "COD",  "Congo DR" },
        { "COK",  "Cook Islands" },
        { "COL",  "Colombia" },
        { "CPV",  "Cape Verde" },
        { "CRC",  "Costa Rica" },
        { "CRO",  "Croatia" },
        { "CUB",  "Cuba" },
        { "CUW",  "Curaçao" },
        { "CYP",  "Cyprus" },
        { "CZE",  "Czech Republic" },
        { "DEN",  "Denmark" },
        { "DOM",  "Dominican Republic" },
        { "ECU",  "Ecuador" },
        { "EGY",  "Egypt" },
        { "ESA",  "El Salvador" },
        { "ESP",  "Spain" },
        { "EST",  "Estonia" },
        { "FIJ",  "Fiji" },
        { "FIN",  "Finland" },
        { "FRA",  "France" },
        { "FSM",  "Federated States of Micronesia" },
        { "GBR",  "Great Britain" },
        { "GEO",  "Georgia" },
        { "GER",  "Germany" },
        { "GHA",  "Ghana" },
        { "GRE",  "Greece" },
        { "GUA",  "Guatemala" },
        { "GUM",  "Guam" },
        { "GUY",  "Guyana" },
        { "HAI",  "Haiti" },
        { "HKG",  "Hong Kong" },
        { "HON",  "Honduras" },
        { "HUN",  "Hungary" },
        { "INA",  "Indonesia" },
        { "IND",  "India" },
        { "IRI",  "Iran" },
        { "IRL",  "Ireland" },
        { "IRQ",  "Iraq" },
        { "ISL",  "Iceland" },
        { "ISR",  "Israel" },
        { "ISV",  "US Virgin Islands" },
        { "ITA",  "Italy" },
        { "IVB",  "British Virgin Islands" },
        { "JAM",  "Jamaica" },
        { "JPN",  "Japan" },
        { "KEN",  "Kenya" },
        { "KOR",  "South Korea" },
        { "KOS",  "Kosovo" },
        { "KSA",  "Saudi Arabia" },
        { "LAO",  "Laos" },
        { "LAT",  "Lativa" },
        { "LES",  "Lesotho" },
        { "LTU",  "Lithuania" },
        { "MAS",  "Malaysia" },
        { "MDA",  "Moldova" },
        { "MEX",  "Mexico" },
        { "MGL",  "Mongolia" },
        { "MHL",  "Marshall Islands" },
        { "MLT",  "Malta" },
        { "MNP",  "Northern Mariana Islands" },
        { "MYA",  "Myanmar" },
        { "NCA",  "Nicaragua" },
        { "NCL",  "New Caledonia" },
        { "NED",  "Netherlands" },
        { "NEP",  "Nepal" },
        { "NGR",  "Nigeria" },
        { "NOR",  "Norway" },
        { "NZL",  "New Zealand" },
        { "PAK",  "Pakistan" },
        { "PAN",  "Panama" },
        { "PER",  "Peru" },
        { "PHI",  "Philippines" },
        { "PLE",  "Palestine" },
        { "PLW",  "Palau" },
        { "PNG",  "Papua New Guinea" },
        { "POL",  "Poland" },
        { "POR",  "Portugal" },
        { "PRK",  "North Korea" },
        { "PUR",  "Puerto Rico" },
        { "ROU",  "Romania" },
        { "RSA",  "South Africa" },
        { "RUS",  "Russia" },
        { "SAM",  "Samoa" },
        { "SGP",  "Singapore" },
        { "SLE",  "Sierra Leone" },
        { "SLO",  "Slovenia" },
        { "SMR",  "San Marino" },
        { "SOL",  "Solomon Islands" },
        { "SRB",  "Serbia" },
        { "SRI",  "Sri Lanka" },
        { "SUI",  "Switzerland" },
        { "SVK",  "Slovakia" },
        { "SWE",  "Sweden" },
        { "SXM",  "Sint Maarten" },
        { "TAN",  "Tanzania" },
        { "THA",  "Thailand" },
        { "TOG",  "Togo" },
        { "TPE",  "Chinese Taipei" },
        { "TTO",  "Trinidad and Tobago" },
        { "TUN",  "Tunisia" },
        { "TUR",  "Turkey" },
        { "UGA",  "Uganda" },
        { "UKR",  "Ukraine" },
        { "USA",  "United States" },
        { "VEN",  "Venezuela" },
        { "ZAM",  "Zambia" },
        { "ZIM",  "Zimbabwe" },
}
-- List of WBSC confederations
data.confederation = { 
	Africa = { "RSA", "UGA", "ZIM", "BUR", "KEN", "NGR", "GHA", "TAN"
	},
	Americas = { "USA", "MEX", "DOM", "CAN", "VEN", "CUB", "PUR", "PAN", "NCA",
		"COL", "BRA", "ARG", "HON", "PER", "ESA", "GUA", "CUW", "CHI", "ARU",
		"ISV", "CRC", "BOL", "BAH", "HAI", "ECU"
	},
	Asia = { "JPN", "KOR", "TPE", "CHN", "PAK", "HKG", "PHI", "INA", "SRI",
		"THA", "IND", "IRI", "BAN", "SGP", "NEP"
	},
	Europe = { "NED", "CZE", "ITA", "GER", "ESP", "FRA", "ISR", "BEL", "UKR",
		"RUS", "GBR", "SVK", "AUT", "LTU", "GRE", "IRL", "CRO", "BLR", "SUI",
		"SRB", "POL", "ROU", "FIN", "BUL", "GEO", "HUN", "SLO", "SWE", "EST", 
		"NOR", "TUR"
	},
	Oceania = { "AUS", "GUM", "ASA", "NZL", "FIJ", "PLW", "MNP", "SOL"
	},
}
    	                          
return data