Module:SportsRankings/data/FIBA World Rankings

From WikiProjectMed
Jump to navigation Jump to search

local data = {}

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

-- general information about ranking and website being cited
data.source = {
    url    = 'http://www.fiba.basketball/rankingmen',
    title  = 'FIBA Ranking Presented by Nike', 
	website = "FIBA"
}

-- date of latest update and previous one for movement
data.updated  = { 	day = 27, 	month = 'February',  year =2024 }
data.previous = { 	day = 10, 	month = 'September',  year =2023 }

--[[ the rankings list
     copy rankings from FIBA and use follow excel to generate table entre
         =CONCAT("          {  '", B1, "',  ",A1,",  ",F1," },")
     must manual fix for apostrophe in "Cote d'Ivoire"
--]]
data.rankings = {
	    --	{ country code, rank, move },
          {  'USA', 1, 0, 784.8 },
          {  'Spain', 2, 0, 773.9 },
          {  'Germany', 3, 0, 759.0 },
          {  'Serbia', 4, 1, 757.9 },
          {  'Australia', 5, -1, 756.3 },
          {  'Latvia', 6, 2, 750.6 },
          {  'Canada', 7, -1, 746.2 },
          {  'Argentina', 8, -1, 743.2 },
          {  'France', 9, 0, 737.1 },
          {  'Lithuania', 10, 0, 713.1 },
          {  'Slovenia', 11, 0, 703.6 },
          {  'Brazil', 12, 0, 660.4 },
          {  'Italy', 13, 0, 655.7 },
          {  'Greece', 14, 0, 641.6 },
          {  'Poland', 15, 0, 611.7 },
          {  'Puerto Rico', 16, 0, 608.4 },
          {  'Montenegro', 17, 0, 607.7 },
          {  'Czech Republic', 18, 1, 560.5 },
          {  'Dominican Republic', 19, -1, 556.3 },
          {  'Finland', 20, 0, 537.4 },
          {  'New Zealand', 21, 0, 505.9 },
          {  'Venezuela', 22, 0, 495.2 },
          {  'Georgia', 23, 0, 453.8 },
          {  'Turkiye', 24, 0, 444.7 },
          {  'Mexico', 25, 0, 437.4 },
          {  'Japan', 26, 0, 435.7 },
          {  'Iran', 27, 0, 426.9 },
          {  'Lebanon', 28, 0, 422.5 },
          {  'China', 29, 0, 420.1 },
          {  'Croatia', 30, 0, 419.2 },
          {  "Cote d'Ivoire", 31, 2, 373.8 },
          {  'Jordan', 32, 0, 373.7 },
          {  'South Sudan', 33, -2, 371.4 },
          {  'Angola', 34, 0, 369.3 },
          {  'Tunisia', 35, 1, 360.8 },
          {  'Ukraine', 36, -1, 354.4 },
          {  'Philippines', 37, 1, 343.5 },
          {  'Nigeria', 38, -1, 342.1 },
          {  'Belgium', 39, 0, 338.1 },
          {  'Egypt', 40, 1, 326.4 },
          {  'Bosnia and Herzegovina', 41, -1, 321.9 },
          {  'Israel', 42, 0, 308.4 },
          {  'Hungary', 43, 0, 294.9 },
          {  'Estonia', 44, 0, 277.7 },
          {  'Bulgaria', 45, 0, 270.3 },
          {  'Cape Verde', 46, 0, 269.8 },
          {  'Senegal', 47, 0, 252.2 },
          {  'Uruguay', 48, 2, 249.9 },
          {  'Iceland', 49, -1, 248.4 },
          {  'Korea', 50, 1, 244.9 },
          {  'Sweden', 51, -2, 244.3 },
          {  'Great Britain', 52, 1, 236.2 },
          {  'Netherlands', 53, -1, 230.5 },
          {  'Portugal', 54, 0, 208.7 },
          {  'Denmark', 55, 3, 205.8 },
          {  'Colombia', 56, 0, 205.1 },
          {  'Bahamas', 57, 0, 204.3 },
          {  'North Macedonia', 58, 1, 196.6 },
          {  'Panama', 59, -4, 189.4 },
          {  'Slovakia', 60, 0, 185.3 },
          {  'Chile', 61, 1, 176.2 },
          {  'Switzerland', 62, 1, 175.6 },
          {  'Romania', 63, -2, 169.4 },
          {  'Saudi Arabia', 64, 3, 160.9 },
          {  'Austria', 65, 0, 157.6 },
          {  'Virgin Islands', 66, -2, 156.1 },
          {  'Bahrain', 67, 2, 152.9 },
          {  'Cameroon', 68, -1, 152.2 },
          {  'Kazakhstan', 69, -1, 152.0 },
          {  'Cuba', 70, 0, 143.8 },
          {  'Syria', 71, 0, 131.0 },
          {  'Guam', 72, 4, 126.8 },
          {  'Congo DR', 73, -1, 126.7 },
          {  'Norway', 74, 1, 126.7 },
          {  'Indonesia', 75, -1, 123.5 },
          {  'Guinea', 76, 3, 122.3 },
          {  'Nicaragua', 77, -4, 121.4 },
          {  'Luxembourg', 78, 4, 119.3 },
          {  'Kosovo', 79, -2, 118.2 },
          {  'Paraguay', 80, 0, 116.9 },
          {  'Chinese Taipei', 81, -3, 116.8 },
          {  'India', 82, -1, 116.7 },
          {  'Uganda', 83, 4, 114.8 },
          {  'Armenia', 84, -1, 113.7 },
          {  'Central African Rep.', 85, -1, 113.6 },
          {  'Mali', 86, 0, 109.3 },
          {  'Cyprus', 87, 1, 109.1 },
          {  'Ireland', 88, -3, 109.0 },
          {  'Costa Rica', 89, 0, 108.5 },
          {  'Thailand', 90, 1, 106.3 },
          {  'Iraq', 91, -1, 105.1 },
          {  'Rwanda', 92, 0, 97.6 },
          {  'Libya', 93, 0, 97.5 },
          {  'Andorra', 94, 0, 97.2 },
          {  'Morocco', 95, -2, 94.4 },
          {  'Kenya', 96, 2, 93.7 },
          {  'Malta', 97, -2, 92.8 },
          {  'Congo', 98, -2, 92.3 },
          {  'Palestine', 99, -2, 89.5 },
          {  'Albania', 100, -1, 86.6 },
          {  'Barbados', 101, 0, 83.9 },
          {  'Guyana', 102, 0, 83.6 },
          {  'Qatar', 103, 1, 82.6 },
          {  'Malaysia', 104, 1, 81.8 },
          {  'Azerbaijan', 105, 13, 80.0 },
          {  'Jamaica', 106, 0, 77.9 },
          {  'Bolivia', 107, 1, 77.5 },
          {  'Mongolia', 108, -8, 76.0 },
          {  'Chad', 109, -2, 75.8 },
          {  'Kuwait', 110, 0, 75.7 },
          {  'Mozambique', 111, -2, 75.4 },
          {  'St.Vincent and the Grenadines', 112, -1, 75.0 },
          {  'UAE', 113, -10, 74.6 },
          {  'Honduras', 114, -2, 74.4 },
          {  'Antigua & Barbuda', 115, -2, 74.2 },
          {  'Madagascar', 116, 4, 72.4 },
          {  'Grenada', 117, -3, 71.7 },
          {  'Ecuador', 118, -3, 71.0 },
          {  'San Marino', 119, -2, 67.0 },
          {  'Burundi', 120, -4, 66.9 },
          {  'Hong Kong', 121, -2, 66.3 },
          {  'Belize', 122, -1, 66.0 },
          {  'Samoa', 123, -1, 64.3 },
          {  'South Africa', 124, 8, 63.2 },
          {  'Singapore', 125, -2, 62.5 },
          {  'El Salvador', 126, -2, 62.4 },
          {  'Suriname', 127, -2, 61.1 },
          {  'Tahiti', 128, -2, 60.5 },
          {  'Bermuda', 129, -2, 60.2 },
          {  'Sri Lanka', 130, -2, 58.5 },
          {  'Maldives', 131, -2, 57.7 },
          {  'Montserrat', 132, -2, 56.3 },
          {  'Burkina Faso', 133, -2, 56.2 },
          {  'Vietnam', 134, 0, 53.2 },
          {  'Tonga', 135, 0, 52.4 },
          {  'Algeria', 136, -3, 51.0 },
          {  'Bangladesh', 137, -1, 50.0 },
          {  'American Samoa', 138, -1, 49.2 },
          {  'Benin', 139, 1, 48.1 },
          {  'Zambia', 140, 1, 45.4 },
          {  'Somalia', 141, -3, 45.4 },
          {  'Gibraltar', 142, 0, 44.2 },
          {  'Bhutan', 143, 0, 44.1 },
          {  'Moldova', 144, 0, 43.8 },
          {  'Equatorial Guinea', 145, -6, 43.6 },
          {  'Brunei Darussalam', 146, -1, 42.7 },
          {  'Guatemala', 147, -1, 41.5 },
          {  'Tanzania', 148, -1, 39.9 },
          {  'Zimbabwe', 149, -1, 39.6 },
          {  'Oman', 150, -1, 37.4 },
          {  'Macau', 151, -1, 34.9 },
          {  'Gabon', 152, -1, 33.5 },
          {  'St. Lucia', 153, -1, 30.8 },
          {  'Nepal', 154, -1, 28.6 },
          {  'Fiji', 155, -1, 27.5 },
          {  'Cambodia', 156, -1, 27.0 },
          {  'Myanmar', 157, -1, 25.5 },
          {  'Haiti', 158, -1, 22.4 },
          {  'Eritrea', 159, -1, 19.9 },
          {  'Cook Islands', 160, -1, 19.0 },
}

-- alias list (need empty list if not used)
data.alias = {
          {  'ALB',  'Albania' },
          {  'ALG',  'Algeria' },
          {  'AND',  'Andorra' },
          {  'ANG',  'Angola' },
          {  'ATG',  'Antigua and Barbuda' },
          {  'ARG',  'Argentina' },
          {  'ARM',  'Armenia' },
          {  'ASA',  'American Samoa' },
          {  'AUS',  'Australia' },
          {  'AUT',  'Austria' },
          {  'AZE',  'Azerbaijan' },
          {  'BAH',  'Bahamas' },
          {  'BAN',  'Bangladesh' },
          {  'BAR',  'Barbados' },
          {  'BDI',  'Burundi' },
          {  'BEL',  'Belgium' },
          {  'BEN',  'Benin' },
          {  'BER',  'Bermuda' },
          {  'BHR',  'Bahrain' },
          {  'BHU',  'Bhutan' },
          {  'BIH',  'Bosnia and Herzegovina' },
          {  'BLR',  'Belarus' },
          {  'BLZ',  'Belize' },
          {  'BOL',  'Bolivia' },
          {  'BOT',  'Botswana' },
          {  'BRA',  'Brazil' },
          {  'BRU',  'Brunei Darussalam' },
          {  'BUL',  'Bulgaria' },
          {  'BUR',  'Burkina Faso' },
          {  'CAF',  'Central African Rep.' },
          {  'CAM',  'Cambodia' },
          {  'CAN',  'Canada' },
          {  'CAY',  'Cayman Islands' },
          {  'CGO',  'Congo' },
          {  'CHA',  'Chad' },
          {  'CHI',  'Chile' },
          {  'CHN',  'China' },
          {  'CIV',  "Cote d'Ivoire" },
          {  'CMR',  'Cameroon' },
          {  'COD',  'Congo DR' },
          {  'COK',  'Cook Islands' },
          {  'COL',  'Colombia' },
          {  'CPV',  'Cape Verde' },
          {  'CRC',  'Costa Rica' },
          {  'CRO',  'Croatia' },
          {  'CUB',  'Cuba' },
          {  'CYP',  'Cyprus' },
          {  'CZE',  'Czech Republic' },
          {  'DEN',  'Denmark' },
          {  'DOM',  'Dominican Republic' },
          {  'ECU',  'Ecuador' },
          {  'EGY',  'Egypt' },
          {  'EQG',  'Equatorial Guinea' },
          {  'ERI',  'Eritrea' },
          {  'ESA',  'El Salvador' },
          {  'ESP',  'Spain' },
          {  'EST',  'Estonia' },
          {  'FIJ',  'Fiji' },
          {  'FIN',  'Finland' },
          {  'FRA',  'France' },
          {  'GAB',  'Gabon' },
          {  'GBR',  'Great Britain' },
          {  'GEO',  'Georgia' },
          {  'GER',  'Germany' },
          {  'GIB',  'Gibraltar' },
          {  'GRE',  'Greece' },
          {  'GRN',  'Grenada' },
          {  'GUA',  'Guatemala' },
          {  'GUI',  'Guinea' },
          {  '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' },
          {  'ISV',  'Virgin Islands' },
          {  'ITA',  'Italy' },
          {  'IVB',  'British Virgin Islands' },
          {  'JAM',  'Jamaica' },
          {  'JOR',  'Jordan' },
          {  'JPN',  'Japan' },
          {  'KAZ',  'Kazakhstan' },
          {  'KEN',  'Kenya' },
          {  'KOR',  'Korea' },
          {  'KOS',  'Kosovo' },
          {  'KSA',  'Saudi Arabia' },
          {  'KUW',  'Kuwait' },
          {  'LAT',  'Latvia' },
          {  'LBA',  'Libya' },
          {  'LBN',  'Lebanon' },
          {  'LCA',  'St. Lucia' },
          {  'LTU',  'Lithuania' },
          {  'LUX',  'Luxembourg' },
          {  'MAC',  'Macau' },
          {  'MAD',  'Madagascar' },
          {  'MAR',  'Morocco' },
          {  'MAS',  'Malaysia' },
          {  'MSR',  'Montserrat' },
          {  'MAW',  'Malawi' },
          {  'MDA',  'Moldova' },
          {  'MDV',  'Maldives' },
          {  'MEX',  'Mexico' },
          {  'MKD',  'North Macedonia' },
          {  'MLI',  'Mali' },
          {  'MLT',  'Malta' },
          {  'MNE',  'Montenegro' },
          {  'MNG',  'Mongolia' },
          {  'MOZ',  'Mozambique' },
          {  'MTN',  'Mauritania' },
          {  'MYA',  'Myanmar' },
          {  'NCA',  'Nicaragua' },
          {  'NED',  'Netherlands' },
          {  'NEP',  'Nepal' },
          {  'NGR',  'Nigeria' },
          {  'NOR',  'Norway' },
          {  'NZL',  'New Zealand' },
          {  'OMA',  'Oman' },
          {  'PAN',  'Panama' },
          {  'PAR',  'Paraguay' },
          {  'PER',  'Peru' },
          {  'PHI',  'Philippines' },
          {  'PLE',  'Palestine' },
          {  'POL',  'Poland' },
          {  'POR',  'Portugal' },
          {  'PUR',  'Puerto Rico' },
          {  'QAT',  'Qatar' },
          {  'ROU',  'Romania' },
          {  'RSA',  'South Africa' },
          {  'RUS',  'Russia' },
          {  'RWA',  'Rwanda' },
          {  'SAM',  'Samoa' },
          {  'SEN',  'Senegal' },
          {  'SEY',  'Seychelles' },
          {  'SGP',  'Singapore' },
          {  'SLO',  'Slovenia' },
          {  'SMR',  'San Marino' },
          {  'SOM',  'Somalia' },
          {  'SRB',  'Serbia' },
          {  'SRI',  'Sri Lanka' },
          {  'SSD',  'South Sudan' },
          {  'SUI',  'Switzerland' },
          {  'SUR',  'Suriname' },
          {  'SVK',  'Slovakia' },
          {  'SWE',  'Sweden' },
          {  'SYR',  'Syria' },
          {  'TAH',  'Tahiti' },
          {  'TAN',  'Tanzania' },
          {  'THA',  'Thailand' },
          {  'TOG',  'Togo' },
          {  'TGA',  'Tonga' },
          {  'TPE',  'Chinese Taipei' },
          {  'TUN',  'Tunisia' },
          {  'TUR',  'Turkey' },
          {  'UAE',  'UAE' },
          {  'UGA',  'Uganda' },
          {  'UKR',  'Ukraine' },
          {  'URU',  'Uruguay' },
          {  'USA',  'USA' },
          {  'UZB',  'Uzbekistan' },
          {  'VEN',  'Venezuela' },
          {  'VIE',  'Vietnam' },
          {  'VIN',  'Saint Vincent and the Grenadines' },
          {  'ZAM',  'Zambia' },
          {  'ZIM',  'Zimbabwe' },
     	  --
     	  { 'code', 'key'}
}	

-- List of FIBA confederations
data.confederation = { 
	Africa = { "NGR", "TUN", "ANG", "SEN", "CIV", "EGY", "CMR", "MAR", "MLI",
		"CAF", "COD", "MOZ", "UGA", "SSD", "RWA", "CPV", "ALG", "CHA", "KEN",
		"CGO", "GUI", "RSA", "BDI", "MAD", "GAB", "BUR", "ZIM", "ZAM", "SEY", 
		"SOM", "BEN", "EQG", "BOT", "TAN", "ERI", "LBA"
	},
	Americas = { "USA", "ARG", "BRA", "VEN", "CAN", "PUR", "DOM", "MEX", "URU",
		"PAN", "ISV", "BAH", "CUB", "COL", "CHI", "PAR", "CRC", "ATG", "BAR",
		"NCA", "JAM", "HON", "GUY", "VIN", "BER", "BOL", "SUR", "BLZ", "GRN",
		"ESA", "CAY", "ECU", "IVB", "MSR", "GUA", "LCA", "HAI", 
	},
	Asia = { "AUS", "IRI", "NZL", "CHN", "KOR", "PHI", "JPN", "JOR", "LBN",
		"TPE", "QAT", "KAZ", "GUM", "IND", "IRQ", "SYR", "PLE", "INA", "KSA",
		"TAH", "BHR", "MNG", "THA", "SGP", "HKG", "SAM", "MAS", "UAE", "SRI", "TGA",
		"VIE", "MDV", "KUW", "BAN", "BHU", "ASA", "MAC", "BRU", "NEP", "OMA",
		"FIJ", "CAM", "MYA", "COK"
	},
	Europe = { "ESP", "SLO", "FRA", "SRB", "ITA", "LTU", "GRE", "GER", "CZE",
		"POL", "RUS", "TUR", "CRO", "MNE", "LAT", "UKR", "FIN", "GEO", "BEL",
		"HUN", "GBR", "ISR", "BIH", "NED", "ISL", "EST", "BUL", "BLR", "MKD", 
		"ROU", "DEN", "SWE", "POR", "SUI", "AUT", "SVK", "KOS", "LUX", "CYP",
		"ARM", "NOR", "MLT", "AND", "ALB", "IRL", "SMR", "MDA", "GIB"
		
	},
}
return data