Module:SportsRankings/data/FIVB World Rankings
Module rating is invalid or not specified. |
Usage
[edit]This template is meant to help quickly update the FIVB World Rankings for all men's national volleyball teams, displayed in the infobox on each national team article. When given a country code, the template outputs the FIVB World Ranking of a country, along with a movement indicator (increase, decrease, or steady), and by how many spots a country moves, if applicable. The date of the rankings is also listed, along with a reference to the rankings from FIVB's website.
If desired, the FIVB ranking reference can be used elsewhere in the article using the name "FIVB World Rankings" (i.e. <ref name="FIVB World Rankings"/>
).
Note: Template:FIVB ranking men needs to be updated for men's national volleyball team pages.
Parameters
[edit]1
(unnamed): FIVB country codemdy
: Switches dates to month-day-year format
Example
[edit]An example of the code used to display the ranking of Peru:
{{FIVB World Rankings|PER}}
This code produces the following:
72 2 (30 August 2024)[1]
- ^ "The FIVB World Ranking". FIVB. 30 August 2024. Retrieved 30 August 2024.
Updating
[edit]The main template page is not meant to be updated. The rankings should be updated at Module:SportsRankings/data/FIVB World Rankings. To update the template, first update the day and month (along with the year if necessary) to the date of the current FIVB World Rankings. Then add a country's new position, along with how many spots they moved (e.g. 2 for increase of two positions, 0 for no movement, -5 for decrease of two positions).
All positions can be quickly updated using a spreadsheet. For example, after copying the entire table from FIVB's ranking list, the following formula can be used in an external spreadsheet to generate the code necessary to update the data page (given the WBSC rankings begin in cell A1):
="| {{subst:str sub old|"&B1&"|0|3}} = "&A1&" | {{subst:str sub old|"&B1&"|0|3}}_move = "&E1
The code generated can be saved on the data page, and the rankings will be updated. Once the cache of a national team page is purged, the updated ranking will be displayed.
local data = {}
-- information about other templates used by module
data.templates = { flagged_team_link = "National volleyball team" }
-- general information about ranking and website being cited
data.source = {
url = "https://en.volleyballworld.com/volleyball/world-ranking/men",
title = "The FIVB World Ranking",
website = "FIVB"
}
-- date of latest update and previous one for movement
data.updated = { day = 30, month = 'August', year = 2024 }
data.previous = { day = 10, month = 'July', year = 2024 }
-- see "Generating code" section on doc page for how to update the rankings
data.rankings = {
{ "Poland", 1, 0, 401.31 },
{ "France", 2, 2, 378.07 },
{ "United States", 3, 3, 365.87 },
{ "Slovenia", 4, 1, 352.50 },
{ "Italy", 5, -2, 346.23 },
{ "Japan", 6, -3, 338.12 },
{ "Brazil", 7, 0, 305.87 },
{ "Germany", 8, 3, 274.38 },
{ "Argentina", 9, -1, 266.94 },
{ "Serbia", 10, 0, 259.28 },
{ "Canada", 11, -2, 254.46 },
{ "Cuba", 12, 0, 249.34 },
{ "Netherlands", 13, 0, 204.81 },
{ "Ukraine", 14, 0, 196.00 },
{ "Iran", 15, 0, 185.07 },
{ "Belgium", 16, 0, 183.24 },
{ "Turkey", 17, 0, 175.28 },
{ "Czech Republic", 18, 0, 168.95 },
{ "Bulgaria", 19, 0, 161.06 },
{ "Egypt", 20, 0, 156.94 },
{ "Qatar", 21, 0, 151.46 },
{ "Portugal", 22, 0, 147.16 },
{ "Finland", 23, 1, 146.72 },
{ "Tunisia", 24, 1, 145.09 },
{ "China", 25, 1, 144.02 },
{ "Romania", 26, 1, 143.07 },
{ "Chile", 27, 2, 139.14 },
{ "South Korea", 28, 0, 138.48 },
{ "Croatia", 29, -6, 136.40 },
{ "Puerto Rico", 30, 0, 135.23 },
{ "Cameroon", 31, 0, 129.27 },
{ "Dominican Republic", 32, 0, 125.41 },
{ "Greece", 33, 2, 118.87 },
{ "Spain", 34, -1, 115.11 },
{ "Australia", 35, -1, 114.61 },
{ "Mexico", 36, 0, 112.85 },
{ "Latvia", 37, 1, 111.92 },
{ "Estonia", 38, 2, 110.82 },
{ "Slovakia", 39, -2, 107.82 },
{ "Switzerland", 40, -1, 106.90 },
{ "North Macedonia", 41, 0, 100.49 },
{ "Denmark", 42, 3, 93.30 },
{ "Montenegro", 43, -1, 91.94 },
{ "Libya", 44, 0, 91.63 },
{ "Colombia", 45, 0, 84.36 },
{ "Austria", 46, 1, 83.04 },
{ "Chinese Taipei", 47, 1, 81.22 },
{ "Pakistan", 48, 1, 80.71 },
{ "Hungary", 49, -3, 75.63 },
{ "Algeria", 50, 0, 73.43 },
{ "Norway", 51, 0, 71.16 },
{ "Morocco", 52, -1, 70.48 },
{ "Israel", 53, -1, 68.97 },
{ "Indonesia", 54, -1, 59.29 },
{ "Vietnam", 55, -1, 58.91 },
{ "Kazakhstan", 56, -1, 57.96 },
{ "Sweden", 57, 0, 53.59 },
{ "Cyprus", 58, -2, 52.80 },
{ "Kosovo", 59, 0, 50.64 },
{ "Kenya", 60, -3, 50.39 },
{ "Saudi Arabia", 61, -3, 49.30 },
{ "Sri Lanka", 62, -3, 48.01 },
{ "Afghanistan", 63, -3, 47.06 },
{ "Philippines", 64, -3, 46.69 },
{ "Thailand", 65, -3, 46.43 },
{ "Macau", 66, -3, 45.08 },
{ "Chad", 67, -3, 44.61 },
{ "Bahrain", 68, -3, 43.12 },
{ "Bangladesh", 69, -3, 43.02 },
{ "India", 70, -3, 40.23 },
{ "Rwanda", 71, -3, 38.86 },
{ "Peru", 72, -2, 36.79 },
{ "Senegal", 73, -2, 34.19 },
{ "Georgia", 74, -2, 31.54 },
{ "Iraq", 75, -3, 31.53 },
{ "Faroe Islands", 76, -2, 29.51 },
{ "Luxembourg", 77, -2, 29.32 },
{ "Ghana", 78, -2, 27.86 },
{ "Uzbekistan", 79, -2, 27.71 },
{ "Iceland", 80, -1, 23.65 },
{ "Guatemala", 81, 0, 22.74 },
{ "Azerbaijan", 82, -1, 26.55 },
{ "Suriname", 83, 0, 19.58 },
{ "Gambia", 84, 0, 19.30 },
{ "Hong Kong", 85, 0, 18.57 },
{ "Mongolia", 86, 0, 15.01 },
{ "Burundi", 87, 0, 4.49 },
{ "Tanzania", 88, 0, 4.44 },
{ "Mali", 89, 0, 3.63 },
}
-- list of FIVB country codes
data.alias = {
{ "AFG", "Afghanistan" },
{ "AIA", "Anguilla" },
{ "ALB", "Albania" },
{ "ALG", "Algeria" },
{ "AND", "Andorra" },
{ "ANG", "Angola" },
{ "ARG", "Argentina" },
{ "ARM", "Armenia" },
{ "ARU", "Aruba" },
{ "ASA", "American Samoa" },
{ "ATG", "Antigua and Barbuda" },
{ "AUS", "Australia" },
{ "AUT", "Austria" },
{ "AZE", "Azerbaijan" },
{ "BAH", "Bahamas" },
{ "BAN", "Bangladesh" },
{ "BDI", "Burundi" },
{ "BEL", "Belgium" },
{ "BEN", "Benin" },
{ "BER", "Bermuda" },
{ "BFA", "Burkina Faso" },
{ "BHR", "Bahrain" },
{ "BHU", "Bhutan" },
{ "BIH", "Bosnia and Herzegovina" },
{ "BLR", "Belarus" },
{ "BLZ", "Belize" },
{ "BOL", "Bolivia" },
{ "BOT", "Botswana" },
{ "BRA", "Brazil" },
{ "BRB", "Barbados" },
{ "BRU", "Brunei Darussalam" },
{ "BUL", "Bulgaria" },
{ "CAM", "Cambodia" },
{ "CAN", "Canada" },
{ "CAY", "Cayman Islands" },
{ "CGO", "Congo" },
{ "CHA", "Chad" },
{ "CHI", "Chile" },
{ "CHN", "China PR" },
{ "CIV", "Côte d'Ivoire" },
{ "CMR", "Cameroon" },
{ "COD", "Congo DR" },
{ "COK", "Cook Islands" },
{ "COL", "Colombia" },
{ "COM", "Comoros" },
{ "CPV", "Cabo Verde" },
{ "CRC", "Costa Rica" },
{ "CRO", "Croatia" },
{ "CTA", "Central African Republic" },
{ "CUB", "Cuba" },
{ "CUW", "Curaçao" },
{ "CYP", "Cyprus" },
{ "CZE", "Czechia" },
{ "DEN", "Denmark" },
{ "DJI", "Djibouti" },
{ "DMA", "Dominica" },
{ "DOM", "Dominican Republic" },
{ "ECU", "Ecuador" },
{ "EGY", "Egypt" },
{ "ENG", "England" },
{ "EQG", "Equatorial Guinea" },
{ "ERI", "Eritrea" },
{ "ESP", "Spain" },
{ "EST", "Estonia" },
{ "ETH", "Ethiopia" },
{ "FIJ", "Fiji" },
{ "FIN", "Finland" },
{ "FRA", "France" },
{ "FRO", "Faroe Islands" },
{ "GAB", "Gabon" },
{ "GAM", "The Gambia" },
{ "GEO", "Georgia" },
{ "GER", "Germany" },
{ "GHA", "Ghana" },
{ "GIB", "Gibraltar" },
{ "GNB", "Guinea-Bissau" },
{ "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" },
{ "IRL", "Republic of Ireland" },
{ "IRI", "IR Iran" },
{ "IRQ", "Iraq" },
{ "ISL", "Iceland" },
{ "ISR", "Israel" },
{ "ITA", "Italy" },
{ "JAM", "Jamaica" },
{ "JOR", "Jordan" },
{ "JPN", "Japan" },
{ "KAZ", "Kazakhstan" },
{ "KEN", "Kenya" },
{ "KGZ", "Kyrgyz Republic" },
{ "KOR", "Korea Republic" },
{ "KSA", "Saudi Arabia" },
{ "KUW", "Kuwait" },
{ "KOS", "Kosovo" },
{ "LAO", "Laos" },
{ "LBR", "Liberia" },
{ "LBY", "Libya" },
{ "LCA", "St Lucia" },
{ "LES", "Lesotho" },
{ "LBN", "Lebanon" },
{ "LIE", "Liechtenstein" },
{ "LTU", "Lithuania" },
{ "LUX", "Luxembourg" },
{ "LVA", "Latvia" },
{ "MAC", "Macau" },
{ "MAD", "Madagascar" },
{ "MAR", "Morocco" },
{ "MAS", "Malaysia" },
{ "MDA", "Moldova" },
{ "MDV", "Maldives" },
{ "MEX", "Mexico" },
{ "MKD", "North Macedonia" },
{ "MLI", "Mali" },
{ "MLT", "Malta" },
{ "MNE", "Montenegro" },
{ "MNG", "Mongolia" },
{ "MOZ", "Mozambique" },
{ "MRI", "Mauritius" },
{ "MSR", "Montserrat" },
{ "MTN", "Mauritania" },
{ "MWI", "Malawi" },
{ "MYA", "Myanmar" },
{ "NAM", "Namibia" },
{ "NCA", "Nicaragua" },
{ "NCL", "New Caledonia" },
{ "NED", "Netherlands" },
{ "NEP", "Nepal" },
{ "NGA", "Nigeria" },
{ "NIG", "Niger" },
{ "NIR", "Northern Ireland" },
{ "NOR", "Norway" },
{ "NZL", "New Zealand" },
{ "OMA", "Oman" },
{ "PAK", "Pakistan" },
{ "PAN", "Panama" },
{ "PAR", "Paraguay" },
{ "PER", "Peru" },
{ "PHI", "Philippines" },
{ "PLE", "Palestine" },
{ "PNG", "Papua New Guinea" },
{ "POL", "Poland" },
{ "POR", "Portugal" },
{ "PRK", "Korea DPR" },
{ "PUR", "Puerto Rico" },
{ "QAT", "Qatar" },
{ "ROU", "Romania" },
{ "RSA", "South Africa" },
{ "RUS", "Russia" },
{ "RWA", "Rwanda" },
{ "SAM", "Samoa" },
{ "SCO", "Scotland" },
{ "SDN", "Sudan" },
{ "SEN", "Senegal" },
{ "SEY", "Seychelles" },
{ "SGP", "Singapore" },
{ "SKN", "St Kitts and Nevis" },
{ "SLE", "Sierra Leone" },
{ "SLV", "El Salvador" },
{ "SMR", "San Marino" },
{ "SOL", "Solomon Islands" },
{ "SOM", "Somalia" },
{ "SRB", "Serbia" },
{ "SRI", "Sri Lanka" },
{ "SSD", "South Sudan" },
{ "STP", "São Tomé and Príncipe" },
{ "SUI", "Switzerland" },
{ "SUR", "Suriname" },
{ "SVK", "Slovakia" },
{ "SVN", "Slovenia" },
{ "SWE", "Sweden" },
{ "SWZ", "Eswatini" },
{ "SYR", "Syria" },
{ "TAH", "Tahiti" },
{ "TAN", "Tanzania" },
{ "TCA", "Turks and Caicos Islands" },
{ "TGA", "Tonga" },
{ "THA", "Thailand" },
{ "TJK", "Tajikistan" },
{ "TKM", "Turkmenistan" },
{ "TLS", "Timor-Leste" },
{ "TOG", "Togo" },
{ "TPE", "Chinese Taipei" },
{ "TRI", "Trinidad and Tobago" },
{ "TUN", "Tunisia" },
{ "TUR", "Türkiye" },
{ "UAE", "United Arab Emirates" },
{ "UGA", "Uganda" },
{ "UKR", "Ukraine" },
{ "URU", "Uruguay" },
{ "USA", "USA" },
{ "UZB", "Uzbekistan" },
{ "VAN", "Vanuatu" },
{ "VEN", "Venezuela" },
{ "VGB", "British Virgin Islands" },
{ "VIE", "Vietnam" },
{ "VIN", "St Vincent and the Grenadines" },
{ "VIR", "US Virgin Islands" },
{ "WAL", "Wales" },
{ "YEM", "Yemen" },
{ "ZAM", "Zambia" },
{ "ZIM", "Zimbabwe" },
-- Alternate names
{ "TUR", "Turkey" },
{ "CZE", "Czech Republic" },
{ "CUW", "Curacao" },
{ "BRU", "Brunei" },
{ "CPV", "Cape Verde" },
{ "CPV", "Cape Verde Islands" },
{ "CHN", "China" },
{ "COD", "DR Congo" },
{ "GAM", "Gambia" },
{ "IRN", "Iran" },
{ "CIV", "Ivory Coast" },
{ "PRK", "North Korea" },
{ "KOR", "South Korea" },
{ "KGZ", "Kyrgyzstan" },
{ "SKN", "Saint Kitts and Nevis" },
{ "SKN", "St. Kitts and Nevis" },
{ "LCA", "Saint Lucia" },
{ "LCA", "St. Lucia" },
{ "VIN", "Saint Vincent and the Grenadines" },
{ "VIN", "St. Vincent and the Grenadines" },
{ "STP", "São Tomé e Príncipe" },
{ "STP", "Sao Tome e Principe" },
{ "USA", "United States" },
{ "VIR", "U.S. Virgin Islands" },
{ "VIR", "United States Virgin Islands" },
}
-- List of FIVB confederations
data.confederation = {
CAVB = { "ALG", "BDI", "CHA", "CMR", "COD", "EGY", "GAM", "GHA", "KEN", "LBY",
"MAR", "MLI", "RWA", "SEN", "TAN", "TUN", "UGA" },
AVC = { "AFG", "AUS", "BAN", "BHR", "CHN", "TPE", "HKG", "IND", "INA", "IRN",
"IRQ", "JPN", "KAZ", "KOR", "KSA", "MAC", "MNG", "PAK", "PHI", "QAT",
"SRI", "THA", "UZB", "VIE" },
CEV = { "ALB", "AUT", "AZE", "BLR", "BEL", "BIH", "BUL", "CRO", "CYP", "CZE",
"DEN", "EST", "FRO", "FIN", "FRA", "GEO", "GER", "GRE", "HUN", "ISL",
"ISR", "ITA", "LVA", "LUX", "MNE", "NED", "MKD", "NOR", "POL", "POR",
"ROU", "RUS", "SRB", "SVN", "SVK", "ESP", "SWE", "SUI", "TUR", "UKR" },
NORCECA = { "CAN", "CUB", "DOM", "GUA", "MEX", "PUR", "SUR", "TRI", "USA"
},
CSV = { "ARG", "BRA", "CHI", "COL", "PER", "VEN"
},
}
return data