Moduli:SportsRankings/data/FIBA Women's World Rankings

local data = {}

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

-- general information about ranking and website being cited
data.source = {
    url    = 'https://www.fiba.basketball/rankingwomen',
    title  = "FIBA Women's Ranking Presented by Nike", 
	website = "FIBA",
	language = "en"
}

-- date of latest update and previous one for movement
data.updated  = { 	day = 21, 	month = 'August',  year =2023 }
data.previous = { 	day = 28, 	month = 'February',  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, 834.6 },
          {  'China', 2, 0, 687.1 },
          {  'Australia', 3, 0, 668.3 },
          {  'Spain', 4, 0, 662.1 },
          {  'Canada', 5, 0, 655.4 },
          {  'Belgium', 6, 1, 654.6 },
          {  'France', 7, -1, 643.8 },
          {  'Brazil', 8, 7, 612.6 },
          {  'Japan', 9, 0, 604.4 },
          {  'Serbia', 10, -2, 579.3 },
          {  'Nigeria', 11, 7, 528.9 },
          {  'Puerto Rico', 12, -2, 494.1 },
          {  'Korea', 13, 1, 450.6 },
          {  'Turkey', 14, -3, 409.5 },
          {  'Italy', 15, 1, 378.6 },
          {  'Mali', 16, 13, 362.1 },
          {  'Bosnia and Herzegovina', 17, -1, 353.2 },
          {  'Greece', 18, -1, 343.9 },
          {  'Hungary', 19, 5, 342.5 },
          {  'Senegal', 20, 11, 316.3 },
          {  'Great Britain', 21, -1, 313.9 },
          {  'Czech Republic', 22, 1, 310.3 },
          {  'New Zealand', 23, 6, 305.3 },
          {  'Montenegro', 24, -3, 302.3 },
          {  'Germany', 25, 11, 298.5 },
          {  'Slovenia', 26, -7, 298.0 },
          {  'Sweden', 27, -9, 273.9 },
          {  'Slovakia', 28, -6, 265.1 },
          {  'Latvia', 29, -4, 263.6 },
          {  'Colombia', 30, 2, 260.3 },
          {  'Argentina', 31, -1, 247.9 },
          {  'Mozambique', 32, 11, 237.3 },
          {  'Chinese Taipei', 33, 0, 234.5 },
          {  'Ukraine', 34, -8, 232.0 },
          {  'Dominican Republic', 35, 0, 211.3 },
          {  'Croatia', 36, -8, 206.7 },
          {  'Philippines', 37, 5, 203.3 },
          {  'Egypt', 38, 1, 202.8 },
          {  'Cameroon', 39, 12, 197.5 },
          {  'Cuba', 40, -3, 192.7 },
          {  'Angola', 41, 7, 187.5 },
          {  'Venezuela', 42, 4, 180.0 },
          {  'Mexico', 43, 2, 169.0 },
          {  'Poland', 44, -6, 160.4 },
          {  "Cote d'Ivoire", 45, 9, 159.5 },
          {  'Lithuania', 46, -12, 158.6 },
          {  'Lebanon', 47, -3, 153.3 },
          {  'Portugal', 48, -7, 151.7 },
          {  'Israel', 49, 0, 147.8 },
          {  'Netherlands', 50, -3, 146.9 },
          {  'Indonesia', 51, 12, 145.4 },
          {  'Iran', 52, 26, 135.0 },
          {  'El Salvador', 53, 9, 131.3 },
          {  'Romania', 54, -4, 131.2 },
          {  'Virgin Islands', 55, -15, 130.7 },
          {  'Denmark', 56, -4, 129.9 },
          {  'Uganda', 57, 23, 127.9 },
          {  'Bulgaria', 58, -5, 125.9 },
          {  'Jordan', 59, 17, 120.3 },
          {  'Switzerland', 60, -5, 119.7 },
          {  'Paraguay', 61, -5, 115.6 },
          {  'Thailand', 62, 39, 111.4 },
          {  'Kenya', 63, 2, 111.0 },
          {  'Guatemala', 64, 7, 110.8 },
          {  'Iceland', 65, -7, 109.9 },
          {  'Finland', 66, -7, 109.1 },
          {  'India', 67, -10, 108.9 },
          {  'Luxembourg', 68, -8, 108.7 },
          {  'Estonia', 69, -8, 107.8 },
          {  'Kazakhstan', 70, -6, 107.1 },
          {  'Congo DR', 71, 3, 107.1 },
          {  'Malaysia', 72, 9, 105.7 },
          {  'Costa Rica', 73, 4, 99.2 },
          {  'Rwanda', 74, 17, 95.3 },
          {  'North Macedonia', 75, -8, 94.4 },
          {  'Norway', 76, -8, 94.2 },
          {  'Cyprus', 77, -7, 93.0 },
          {  'Chile', 78, -12, 92.7 },
          {  'Bahamas', 79, -10, 89.5 },
          {  'Ireland', 80, -8, 88.6 },
          {  'Malta', 81, -8, 86.0 },
          {  'Syria', 82, -7, 85.9 },
          {  'Guinea', 83, 16, 81.2 },
          {  'Albania', 84, -1, 76.5 },
          {  'Austria', 85, -1, 76.3 },
          {  'Korea DPR', 86, 0, 75.5 },
          {  'Ecuador', 87, -8, 74.1 },
          {  'Barbados', 88, -3, 72.5 },
          {  'Kosovo', 89, 0, 72.3 },
          {  'Cape Verde', 90, 2, 71.2 },
          {  'Mongolia', 91, 0, 70.0 },
          {  'Uzbekistan', 92, -5, 69.5 },
          {  'Singapore', 93, -5, 68.7 },
          {  'Uruguay', 94, 0, 68.5 },
          {  'Gabon', 95, -13, 67.8 },
          {  'Tunisia', 96, 0, 66.8 },
          {  'Panama', 97, 11, 66.4 },
          {  'Honduras', 98, 4, 64.7 },
          {  'Algeria', 99, -4, 61.9 },
          {  'Moldova', 100, -3, 61.4 },
          {  'Zimbabwe', 101, 5, 60.0 },
          {  'Saint Vincent and the Grenadines', 102, -4, 58.9 },
          {  'Jamaica', 103, -13, 58.2 },
          {  'South Sudan', 104, 1, 53.6 },
          {  'Hong Kong', 105, -2, 52.0 },
          {  'Nicaragua', 106, 11, 46.5 },
          {  'Suriname', 107, -1, 45.2 },
          {  'Gibraltar', 108, 2, 42.2 },
          {  'Central African Rep.', 109, 0, 41.6 },
          {  'Fiji', 110, -2, 40.6 },
          {  'Zambia', 111, 3, 40.4 },
          {  'Benin', 112, 0, 40.2 },
          {  'Andorra', 113, 0, 39.8 },
          {  'South Africa', 114, 1, 38.5 },
          {  'Sri Lanka', 115, 1, 37.3 },
          {  'Guyana', 116, 2, 27.7 },
}

-- 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' },
          {  'BRN',  'Bahrain' },
          {  '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' },
          {  'MLG',  'Mongolia' },
          {  'MLI',  'Mali' },
          {  'MLT',  'Malta' },
          {  'MNE',  'Montenegro' },
          {  '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' },
          {  'PRK',  'Korea DPR' },
          {  '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' },
          {  'TON',  'Tonga' },
          {  'TPE',  'Chinese Taipei' },
          {  'TTO',  'Trinidad and Tobago' },
          {  '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", "SEN", "MLI", "MOZ", "ANG", "EGY", "CMR", "CIV", "KEN",
		"COD", "GAB", "UGA", "CPV", "RWA", "TUN", "ALG", "GUI", "RSA", "ZIM",
		"BDI", "CAF", "MAR", "BEN", "SSD", "BOT", "TAN"
	},
	Americas = { "USA", "CAN", "BRA", "PUR", "ARG", "CUB", "COL", "DOM", "ISV", 
		"MEX", "VEN", "PAR", "JAM", "BAH", "CHI", "ECU", "BAR", "CRC", "ESA",
		"TTO", "ATG", "VIN", "GUA", "HON", "IVB", "PAN", "URU", "SUR", "GUY", 
		"NCA"
	},
	Asia = { "AUS", "CHN", "JPN", "KOR", "TPE", "NZL", "PHI", "LBN", "KAZ",
		"MAS", "IND", "INA", "PRK", "IRI", "UZB", "SGP", "THA", "SYR", "HKG",
		"FIJ", "SRI", "JOR"
	},
	Europe = { "ESP", "FRA", "BEL", "SRB", "TUR", "BLR", "RUS", "ITA", "GRE",
		"SWE", "MNE", "GBR", "CZE", "SVK", "LAT", "SLO", "UKR", "BIH", "HUN", 
		"CRO", "LTU", "POL", "GER", "BUL", "ROU", "NED", "ISR", "POR", "LUX",
		"DEN", "SUI", "IRL", "AUT", "EST", "FIN", "MLT", "ISL", "KOS", "MKD", 
		"CYP", "MDA", "NOR", "ALB", "AZE", "AND", "GIB"
		
	},
}
return data