Template:WBSC World Rankings/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 =2021 }
data.previous = { 	day = 11, 	month = 'August',  year =2021 }

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

data.rankings = {
          { "Japan", 1, 0, 3752 },
          { "Chinese Taipei", 2, 1, 3321 },
          { "South Korea", 3, -1, 3137 },
          { "Mexico", 4, 1, 2722 },
          { "United States", 5, -1, 2445 },
          { "Venezuela", 6, 4, 2255 },
          { "Dominican Republic", 7, -1, 2235 },
          { "Netherlands", 8, 0, 2058 },
          { "Cuba", 9, 2, 1692 },
          { "Australia", 10, -3, 1610 },
          { "Colombia", 11, 4, 1346 },
          { "Canada", 12, -3, 1336 },
          { "Panama", 13, 0, 1230 },
          { "Czech Republic", 14, 2, 1091 },
          { "Nicaragua", 15, -1, 1035 },
          { "Puerto Rico", 16, -4, 1022 },
          { "Italy", 17, 0, 971 },
          { "Germany", 18, 0, 952 },
          { "Spain", 19, 0, 749 },
          { "Israel", 20, 4, 659 },
          { "China", 21, -1, 546 },
          { "France", 22, 0, 508 },
          { "Great Britain", 23, 9, 418 },
          { "Belgium", 24, 3, 406 },
          { "Brazil", 25, -4, 404 },
          { "South Africa", 26, -3, 364 },
          { "Argentina", 27, -2, 297 },
          { "Russia", 28, 3, 292 },
          { "Ukraine", 29, 0, 278 },
          { "Austria", 30, 4, 258 },
          { "Pakistan", 31, -5, 246 },
          { "Croatia", 32, 11, 230 },
          { "Hong Kong", 33, -5, 214 },
          { "Greece", 34, 3, 181 },
          { "Slovakia", 35, -2, 151 },
          { "Philippines", 36, -6, 147 },
          { "Lithuania", 37, -1, 136 },
          { "Guam", 38, -3, 135 },
          { "Indonesia", 39, -1, 119 },
          { "Sweden", 40, 33, 116 },
          { "Ireland", 41, -2, 114 },
          { "Sri Lanka", 42, -1, 100 },
          { "Uganda", 43, 1, 93 },
          { "Peru", 44, -2, 82 },
          { "American Samoa", 45, 0, 78 },
          { "New Zealand", 46, 1, 77 },
          { "Zimbabwe", 47, 1, 74 },
          { "Honduras", 48, -8, 73 },
          { "Switzerland", 49, 1, 70 },
          { "Thailand", 50, 1, 69 },
          { "Serbia", 51, 1, 68 },
          { "Hungary", 52, 15, 67 },
          { "Belarus", 53, -8, 65 },
          { "Romania", 54, 1, 63 },
          { "Burkina Faso", 55, 1, 61 },
          { "Finland", 56, 1, 51 },
          { "Kenya", 57, 1, 49 },
          { "Poland", 58, -5, 44 },
          { "Guatemala", 59, -6, 43 },
          { "Curaçao", 60, -1, 41 },
          { "Chile", 61, -1, 40 },
          { "India", 62, -1, 39 },
          { "Bulgaria", 63, -1, 38 },
          { "Nigeria", 64, 0, 36 },
          { "Aruba", 65, -2, 33 },
          { "El Salvador", 66, -18, 32 },
          { "US Virgin Islands", 66, 0, 32 },
          { "Fiji", 68, 0, 30 },
          { "Georgia", 69, -4, 28 },
          { "Slovenia", 70, -1, 26 },
          { "Ghana", 71, -1, 23 },
          { "Iran", 71, -1, 23 },
          { "Tanzania", 71, -1, 23 },
          { "Estonia", 74, 1, 18 },
          { "Bangladesh", 75, 1, 14 },
          { "Bolivia", 76, 2, 10 },
          { "Palau", 76, 2, 10 },
          { "Costa Rica", 78, -4, 8 },
          { "Northern Mariana Islands", 78, 2, 8 },
          { "Bahamas", 80, 1, 5 },
          { "Haiti", 80, 1, 5 },
          { "Nepal", 80, 1, 5 },
          { "Norway", 80, 1, 5},
          { "Singapore", 80, -3, 5},
          { "Turkey", 85, 0, 3 },
}

-- 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"
	},
	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"
	},
}
    	                          
return data