Module:SportsRankings/data/FIH World Rankings

From The Global Wiki
Jump to navigation Jump to search

Template:Module rating

Usage

{{#invoke:SportsRankings/data/FIH World Rankings|function_name}}


local data = {}

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

-- general information about ranking and website being cited
data.source = {
    url = "https://www.fih.hockey/outdoor-hockey-rankings", 
	title = "FIH Outdoor World Hockey Rankings",
	website = "FIH"
}

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

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

data.rankings = {
          { "Australia", 1, 0, 3053.63},
          { "Belgium", 2, 0, 2857.72},
          { "Netherlands", 3, 0, 2722.68},
          { "Germany", 4, 0, 2623.30},
          { "England", 5, 1, 2497.91},
          { "India", 6, -1, 2485.68},
          { "Argentina", 7, 0, 2245.59},
          { "Spain", 8, 0, 2120.35},
          { "New Zealand", 9, 0, 1918.18},
          { "South Korea", 10, 2, 1853.02},
          { "Malaysia", 11, -1, 1840.08},
          { "France", 12, -1, 1767.17},
          { "Ireland", 13, 0, 1739.47}, 
          { "South Africa", 14, 2, 1653.04},
          { "Wales", 15, 0, 1634.40},
          { "Japan", 16, 2, 1543.77}, 
          { "Pakistan", 17, 0, 1495.19},
          { "Canada", 18, -4, 1488.84},
          { "Austria", 19, 0, 1418.20},
          { "Egypt", 20, 0, 1375.45},
          { "Scotland", 21, 0, 1370.14}, 
          { "Chile", 22, 0, 1209.28},
          { "United States", 23, 0, 1195.77},
          { "Russia", 24, 0, 1142.77},
          { "China", 25, 0, 1129.00},
          { "Oman", 26, 0, 1081.79},
          { "Italy", 27, 0, 1077.59},
          { "Poland", 28, 0, 1044.89},
          { "Bangladesh", 29, 0, 1043.82},
          { "Ukraine", 30, 0, 1002.90},
          { "Czech Republic", 31, 0, 985.12},
          { "Mexico", 32, 0, 972.67},
          { "Belarus", 33, 0, 922.58},
          { "Sri Lanka", 34, 0, 873.30},
          { "Brazil", 35, 0, 838.62},
          { "Switzerland", 36, 0, 838.45},
          { "Ghana", 37, 0, 807.68},
          { "Turkey", 38, 0, 794.40},
          { "Venezuela", 39, 0, 774.00},
          { "Portugal", 40, 0, 755.14},
          { "Peru", 41, 0, 753.77},
          { "Nigeria", 42, 0, 753.16},
          { "Thailand", 43, 0, 752.68},
          { "Guatemala", 44, 0, 750.73},
          { "Chinese Taipei", 45, 0, 746.00},
          { "Uruguay", 46, 0, 741.46},
          { "Zimbabwe", 47, 0, 736.32},
          { "Trinidad and Tobago", 48, 0, 734.68},
          { "Cuba", 49, 0, 728.00},
          { "Slovakia", 50, 0, 723.57},
          { "Gibraltar", 51, 0, 723.53},
          { "Papua New Guinea", 52, 0, 716.00},
          { "Barbados", 53, 7, 711.98},
          { "Singapore", 54, 8, 701.37},
          { "Croatia", 55, -2, 697.42},
          { "Cyprus", 56, -2, 697.00},
          { "Kenya", 57, -2, 695.01},
          { "Puerto Rico", 58, -2, 693.59},
          { "Jamaica", 59, -2, 693.53},
          { "Hungary", 60, -1, 685.10},
          { "Solomon Islands", 61, -1, 684.00},
          { "Tonga", 62, 1, 675.00},
          { "Vanuatu", 63, 1, 674.00},
          { "Finland", 64, 2, 670.00},
          { "Hong Kong", 65, -7, 668.29},
          { "Uzbekistan", 66, 1, 665.17},
          { "Afghanistan", 67, 1, 665.00},
          { "Fiji", 68, 1, 664.00},
          { "Norway", 69, 1, 655.00},
          { "Lithuania", 70, 1, 654.77},
          { "Zambia", 71, 1, 651.76},
          { "Samoa", 72, 1, 648.00},
          { "Malta", 73, 1, 647.63},
          { "Guyana", 74, -9, 644.02},
          { "Myanmar", 75, 0, 640.00},
          { "Macau", 76, 0, 638.00},
          { "Indonesia", 77, 0, 637.94},
          { "Nepal", 78, 0, 625.00},
          { "Dominican Republic", 79, 0, 624.00},
          { "Vietnam", 80, 0, 610.00},
          { "Qatar", 80, 0, 610.00},
          { "Paraguay", 82, 0, 597.62},
          { "Costa Rica", 83, 0, 597.36},
          { "Brunei", 84, 0, 597.14},
          { "Slovenia", 85, 0, 592.88},
          { "Namibia", 86, 0, 564.68},
          { "Panama", 87, 0, 561.91},
          { "Kazakhstan", 88, 0, 559.83},
          { "Bolivia", 89, 0, 542.05},
          { "Ecuador", 90, 0, 540.46},
          { "Uganda", 91, 0, 495.94},
          { "Iran", 92, 0, 394.30},
          { "Bermuda", 93, 0, 248.87},
          { "Serbia", 94, 0, 208.94},
          { "Malawi", 95, 0, 53.92},
}

-- list of country codes
data.alias = { 
        { "AFG",  "Afghanistan" },
        { "ALG", "Algeria" },
        { "ARG",  "Argentina" },
        { "ARM",  "Armenia" },
        { "AUS",  "Australia" },
        { "AUT",  "Austria" },
        { "AZE",  "Azerbaijan" },
        { "BAH", "Bahamas" },
        { "BAN",  "Bangladesh" },
        { "BAR",  "Barbados" },
        { "BDI", "Burundi" },
        { "BEL",  "Belgium" },
        { "BER", "Bermuda" },
        { "BLR",  "Belarus" },
        { "BOL", "Bolivia" },
        { "BOT",  "Botswana" },
        { "BRA",  "Brazil" },
        { "BRU",  "Brunei" },
        { "BUL",  "Bulgaria" },
        { "BUR", "Burkina Faso" },
        { "CAM", "Cambodia" },
        { "CAN",  "Canada" },
        { "CAY", "Cayman Islands" },
        { "CHI",  "Chile" },
        { "CHN",  "China" },
        { "CMR", "Cameroon" },
        { "COL", "Colombia" },
        { "CRC", "Costa Rica" },
        { "CRO",  "Croatia" },
        { "CUB",  "Cuba" },
        { "CYP",  "Cyprus" },
        { "CZE",  "Czech Republic" },
        { "DEN",  "Denmark" },
        { "DOM",  "Dominican Republic" },
        { "ECU",  "Ecuador" },
        { "EGY",  "Egypt" },
        { "ESA", "El Salvador" },
        { "ENG",  "England" },
        { "ESP",  "Spain" },
        { "EST", "Estonia"},
        { "FIJ",  "Fiji" },
        { "FIN",  "Finland" },
        { "FRA",  "France" },
        { "GEO", "Georgia" },
        { "GER",  "Germany" },
        { "GHA",  "Ghana" },
        { "GIB",  "Gibraltar" },
        { "GRE", "Greece" },
        { "GUA", "Guatemala" },
        { "GUY",  "Guyana" },
        { "HAI", "Haiti" },
        { "HKG",  "Hong Kong" },
        { "HON", "Honduras" },
        { "HUN",  "Hungary" },
        { "INA", "Indonesia" },
        { "IND",  "India" },
        { "IRE",  "Ireland" },
        { "IRI",  "Iran" },
        { "ISR", "Israel" },
        { "ITA",  "Italy" },
        { "JAM",  "Jamaica" },
        { "JPN",  "Japan" },
        { "KAZ",  "Kazakhstan" },
        { "KEN",  "Kenya" },
        { "KOR",  "South Korea" },
        { "LBA", "Libya" },
        { "LTU",  "Lithuania" },
        { "LUX", "Luxembourg" },
        { "MAC", "Macau" },
        { "MAR", "Morocco" },
        { "MAS",  "Malaysia" },
        { "MAW", "Malawi" },
        { "MDA", "Moldova" },
        { "MEX",  "Mexico" },
        { "MGL", "Mongolia" },
        { "MKD", "North Macedonia" },
        { "MLT",  "Malta" },
        { "MRI", "Mauritius" },
        { "MYA",  "Myanmar" },
        { "NAM",  "Namibia" },
        { "NCA", "Nicaragua" },
        { "NED",  "Netherlands" },
        { "NEP", "Nepal" },
        { "NGR",  "Nigeria" },
        { "NOR", "Norway" },
        { "NZL",  "New Zealand" },
        { "OMA",  "Oman" },
        { "PAK",  "Pakistan" },
        { "PAN",  "Panama" },
        { "PAR",  "Paraguay" },
        { "PER",  "Peru" },
        { "PHI", "Philippines" },
        { "PNG",  "Papua New Guinea" },
        { "POL",  "Poland" },
        { "POR",  "Portugal" },
        { "PRK", "North Korea" },
        { "PUR",  "Puerto Rico" },
        { "QAT",  "Qatar" },
        { "ROU", "Romania" },
        { "RSA",  "South Africa" },
        { "RUS",  "Russia" },
        { "SAM",  "Samoa" },
        { "SCO",  "Scotland" },
        { "SEY", "Seychelles" },
        { "SGP",  "Singapore" },
        { "SLE", "Sierra Leone" },
        { "SLO",  "Slovenia" },
        { "SOL",  "Solomon Islands" },
        { "SRB", "Serbia" },
        { "SRI",  "Sri Lanka" },
        { "SUD", "Sudan" },
        { "SUI",  "Switzerland" },
        { "SVK",  "Slovakia" },
        { "SWE",  "Sweden" },
        { "TAN",  "Tanzania" },
        { "TGA",  "Tonga" },
        { "THA",  "Thailand" },
        { "TJK", "Tajikistan" },
        { "TKM", "Turkmenistan" },
        { "TOG", "Togo" },
        { "TPE",  "Chinese Taipei" },
        { "TTO",  "Trinidad and Tobago" },
        { "TUR",  "Turkey" },
        { "UAE", "United Arab Emirates" },
        { "UGA", "Uganda" },
        { "UKR",  "Ukraine" },
        { "URU",  "Uruguay" },
        { "USA",  "United States" },
        { "UZB",  "Uzbekistan" },
        { "VAN",  "Vanuatu" },
        { "VEN", "Venezuela" },
        { "VIE", "Vietnam" },
        { "WAL",  "Wales" },
        { "ZAM", "Zambia" },
        { "ZIM", "Zimbabwe" },
}

data.confederation = {
	AfHF = {"ALG","BDI","BOT","BUR","CMR","EGY","GHA","KEN","LBA","MAW","MRI","MAR","NAM","NGR","RSA","SEY","SLE","SUD","TAN","TOG","UGA","ZAM","ZIM"
	},
	AHF = {"AFG","BAN","BRU","CAM","CHN","HKG","INA","IND","IRI","JPN","KAZ","KOR",
		"MAC","MAS","MGL","MYA","NEP","OMA","PAK","PHI","PRK","QAT","SGP","SRI","THA","TJK","TKM","TPE","UAE",
		"UZB","VIE"
	},
	EHF = {"ARM","AUT","AZE","BEL","BLR","BUL","CRO","CYP","CZE","DEN","ENG",
		"ESP","FIN","FRA","GER","GIB","GRE","HUN","IRE","ITA","LTU","LUX","MLT",
		"NED","NOR","POL","POR","RUS","SCO","SRB","SUI","SVK","SLO","SWE","TUR",
		"UKR","WAL"
	},
	OHF = {"AUS","FIJ","NZL","PNG","SAM","SOL","TGA","VAN"
	},
	PAHF = {"ARG","BAH","BER","BOL","BRA","BAR","CAN","CAY","CHI","COL","CRC","CUB","DOM","ESA","ECU","GUA",
		"HAI","HON","GUY","JAM","MEX","NCA","PAN","PAR","PER","PUR","TTO","URU","USA","VEN"
	},
}
return data