وحدة:SportsRankings/data/FIFA Women's World Rankings
![]() | Uses Lua: |
Usage
This template ({{FIFA Women's World Rankings}}) is meant to help quicky update the FIFA Women's World Rankings for all the ranked women's national teams of FIFA, displayed in the infobox on each national team article. When given a country code, the template outputs the FIFA Women's 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 FIFA's website.
If desired, the FIFA ranking reference can be used elsewhere in the article using the name "FIFA Women's World Rankings" (i.e. <ref name="FIFA Women's World Rankings"/>
).
Parameters
1
(unnamed): FIFA country codemdy
: Switches dates to month-day-year format
Example
An example of the code used to display the ranking of Scotland:
{{FIFA Women's World Rankings|SCO}}
This code produces the following:
قالب:FIFA Women's World Rankings
The template can be tested at the sandbox page, Template:FIFA Women's World Rankings/sandbox.
Updating
The main template page is not meant to be updated. The rankings should be updated at Module:SportsRankings/data/FIFA Women's World Rankings.
To update the rankings:
- On line 14, add the day and month (along with the year if necessary) of the current rankings
- On line 15, add the day and month (along with the year if necessary) of the previous rankings
- Between line 25 and ~176, paste in the code for the new rankings (see generating code section)
and save. Once the cache of a national team page is purged, the updated ranking will be displayed.
Generating rankings code
All positions can be quickly updated using a spreadsheet. For example, after copying the entire table (all rows, unedited) from FIFA'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 FIFA rankings begin in cell A1):
=" { """&SUBSTITUTE(B2, "Zanzibar Football Association (ZFA)", "Tanzania", 1)&""", "&A1&", "&E1&", "&C1&" },"
If unnecessary lines are included, then paste the text into a site to remove lines with the string , , ,
.
Countries
Of FIFA's 211 member associations, 152 are currently included on FIFA's list.
Before FIFA's site redesign, the following 20 countries were missing from the list:
|
See also
local data = {}
-- information about other templates used by module
data.templates = { flagged_team_link = "fbw" }
-- general information about ranking and website being cited
data.source = {
url = "https://www.fifa.com/fifa-world-ranking/ranking-table/women/",
title = "The FIFA/Coca-Cola Women's World Ranking",
website = "FIFA"
}
-- date of latest update and previous one for movement
data.updated = { day = 29, month = 'March', year =2019 }
data.previous = { day = 7, month = 'December', year =2018 }
-- see "Generating code" section on doc page for how to update the rankings
data.rankings = {
{ "USA", 1, 0, 2101 },
{ "Germany", 2, 0, 2072 },
{ "England", 3, 1, 2049 },
{ "France", 4, -1, 2043 },
{ "Canada", 5, 0, 2006 },
{ "Australia", 6, 0, 2003 },
{ "Japan", 7, 1, 1991 },
{ "Netherlands", 8, -1, 1967 },
{ "Sweden", 9, 0, 1962 },
{ "Brazil", 10, 0, 1944 },
{ "Korea DPR", 11, 0, 1940 },
{ "Norway", 12, 1, 1915 },
{ "Spain", 13, -1, 1913 },
{ "Korea Republic", 14, 0, 1883 },
{ "Italy", 15, 1, 1868 },
{ "China PR", 16, -1, 1866 },
{ "Denmark", 17, 0, 1840 },
{ "Switzerland", 18, 0, 1828 },
{ "New Zealand", 19, 0, 1815 },
{ "Scotland", 20, 0, 1812 },
{ "Belgium", 20, 1, 1812 },
{ "Iceland", 22, 0, 1806 },
{ "Austria", 23, 0, 1798 },
{ "Ukraine", 24, 0, 1714 },
{ "Russia", 25, 0, 1713 },
{ "Mexico", 26, 1, 1700 },
{ "Colombia", 26, 0, 1700 },
{ "Poland", 28, 6, 1676 },
{ "Czech Republic", 29, 2, 1669 },
{ "Portugal", 30, 2, 1668 },
{ "Republic of Ireland", 31, 2, 1666 },
{ "Finland", 32, -4, 1665 },
{ "Wales", 33, -4, 1663 },
{ "Thailand", 34, -5, 1658 },
{ "Vietnam", 35, 0, 1638 },
{ "Costa Rica", 36, 1, 1630 },
{ "Argentina", 37, -1, 1626 },
{ "Nigeria", 38, 1, 1599 },
{ "Chile", 39, -1, 1589 },
{ "Chinese Taipei", 40, 0, 1574 },
{ "Romania", 41, 0, 1551 },
{ "Uzbekistan", 42, -42, 1545 },
{ "Serbia", 43, -1, 1539 },
{ "Myanmar", 44, 0, 1530 },
{ "Hungary", 45, -2, 1527 },
{ "Slovakia", 46, -1, 1499 },
{ "Cameroon", 46, 0, 1499 },
{ "Paraguay", 48, -1, 1494 },
{ "South Africa", 49, -1, 1485 },
{ "Papua New Guinea", 50, -1, 1479 },
{ "Ghana", 51, -1, 1452 },
{ "Slovenia", 52, 3, 1451 },
{ "Jamaica", 53, 0, 1449 },
{ "Jordan", 54, -2, 1440 },
{ "Belarus", 55, 1, 1436 },
{ "Croatia", 56, -5, 1433 },
{ "Panama", 56, -2, 1433 },
{ "Venezuela", 58, -1, 1421 },
{ "Northern Ireland", 59, 2, 1420 },
{ "Trinidad and Tobago", 60, -2, 1414 },
{ "Turkey", 61, -2, 1410 },
{ "Ecuador", 62, 1, 1393 },
{ "India", 63, -1, 1392 },
{ "Israel", 63, 1, 1392 },
{ "Peru", 65, 0, 1380 },
{ "IR Iran", 66, -6, 1377 },
{ "Greece", 67, -1, 1376 },
{ "Bosnia and Herzegovina", 68, -1, 1374 },
{ "Côte d'Ivoire", 69, -1, 1363 },
{ "Equatorial Guinea", 70, 0, 1356 },
{ "Fiji", 71, 1, 1350 },
{ "Haiti", 72, 1, 1349 },
{ "Kazakhstan", 72, -1, 1349 },
{ "Philippines", 74, 0, 1347 },
{ "Uruguay", 74, 0, 1347 },
{ "Hong Kong", 76, 1, 1335 },
{ "Albania", 77, 1, 1325 },
{ "Bulgaria", 78, -2, 1316 },
{ "Morocco", 79, 0, 1300 },
{ "Guatemala", 80, 0, 1288 },
{ "Guam", 81, 0, 1282 },
{ "Bahrain", 82, -82, 1274 },
{ "Faroe Islands", 83, -1, 1272 },
{ "Algeria", 84, -1, 1271 },
{ "Mali", 85, 0, 1267 },
{ "Indonesia", 86, -2, 1258 },
{ "Tonga", 87, -1, 1249 },
{ "Senegal", 88, -1, 1245 },
{ "Guyana", 89, -1, 1244 },
{ "Malaysia", 90, -1, 1243 },
{ "New Caledonia", 91, -1, 1239 },
{ "Bolivia", 92, -1, 1232 },
{ "Cuba", 93, 0, 1224 },
{ "Latvia", 93, 0, 1224 },
{ "Moldova", 95, 0, 1222 },
{ "Tahiti", 96, 1, 1218 },
{ "Montenegro", 97, -1, 1214 },
{ "United Arab Emirates", 98, -6, 1212 },
{ "Estonia", 99, -1, 1211 },
{ "Congo", 100, -1, 1196 },
{ "Malta", 101, 0, 1193 },
{ "Zimbabwe", 102, -2, 1192 },
{ "Nepal", 103, 5, 1181 },
{ "El Salvador", 104, -2, 1179 },
{ "Puerto Rico", 105, -1, 1175 },
{ "Dominican Republic", 106, -1, 1169 },
{ "Lithuania", 107, -4, 1168 },
{ "Vanuatu", 108, -1, 1161 },
{ "Cook Islands", 109, 0, 1159 },
{ "Solomon Islands", 110, 0, 1153 },
{ "Palestine", 111, -5, 1152 },
{ "Georgia", 112, -1, 1138 },
{ "Luxembourg", 113, -1, 1136 },
{ "Samoa", 114, -1, 1130 },
{ "Cyprus", 115, -115, 1123 },
{ "Zambia", 116, -2, 1119 },
{ "Ethiopia", 117, -1, 1117 },
{ "Mongolia", 118, -3, 1114 },
{ "Suriname", 119, -2, 1113 },
{ "Singapore", 120, -2, 1093 },
{ "Nicaragua", 121, -2, 1092 },
{ "Burkina Faso", 122, -2, 1062 },
{ "Kosovo", 123, 0, 1059 },
{ "FYR Macedonia", 124, -3, 1056 },
{ "American Samoa", 125, -3, 1047 },
{ "Tajikistan", 126, -2, 1031 },
{ "Bangladesh", 127, -2, 1008 },
{ "Namibia", 128, -2, 1006 },
{ "St. Lucia", 129, -2, 992 },
{ "St. Kitts and Nevis", 130, -2, 989 },
{ "Bermuda", 131, -2, 987 },
{ "Barbados", 132, -2, 984 },
{ "Tanzania", 133, -2, 976 },
{ "Sri Lanka", 134, -134, 974 },
{ "Lebanon", 135, -1, 967 },
{ "Maldives", 136, -4, 957 },
{ "St. Vincent and the Grenadines", 137, -4, 956 },
{ "Kenya", 138, -3, 921 },
{ "Dominica", 139, -3, 913 },
{ "Rwanda", 140, -3, 896 },
{ "Grenada", 141, -3, 892 },
{ "Afghanistan", 142, -3, 884 },
{ "US Virgin Islands", 143, -3, 874 },
{ "Uganda", 144, -3, 873 },
{ "Mozambique", 145, -3, 867 },
{ "Lesotho", 146, -3, 850 },
{ "Malawi", 147, -3, 837 },
{ "Eswatini", 148, -3, 804 },
{ "Antigua and Barbuda", 149, -3, 784 },
{ "Bhutan", 150, -150, 769 },
{ "Botswana", 151, -4, 755 },
{ "Curacao", 152, -4, 752 },
{ "Andorra", 153, -4, 747 },
{ "Aruba", 154, -4, 742 },
{ "Madagascar", 155, -4, 693 },
}
-- list of FIFA 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", "Cape Verde Islands" },
{ "CRC", "Costa Rica" },
{ "CRO", "Croatia" },
{ "CTA", "Central African Republic" },
{ "CUB", "Cuba" },
{ "CUW", "Curaçao" },
{ "CYP", "Cyprus" },
{ "CZE", "Czech Republic" },
{ "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", "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" },
{ "IDN", "Indonesia" },
{ "IND", "India" },
{ "IRL", "Republic of Ireland" },
{ "IRN", "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" },
{ "KVX", "Kosovo" },
{ "LAO", "Laos" },
{ "LBR", "Liberia" },
{ "LBY", "Libya" },
{ "LCA", "St Lucia" },
{ "LES", "Lesotho" },
{ "LIB", "Lebanon" },
{ "LIE", "Liechtenstein" },
{ "LTU", "Lithuania" },
{ "LUX", "Luxembourg" },
{ "LVA", "Latvia" },
{ "MAC", "Macau" },
{ "MAD", "Madagascar" },
{ "MAR", "Morocco" },
{ "MAS", "Malaysia" },
{ "MDA", "Moldova" },
{ "MDV", "Maldives" },
{ "MEX", "Mexico" },
{ "MKD", "FYR 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" },
{ "SIN", "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", "Sao Tome e Principe" },
{ "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", "Turkey" },
{ "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" },
}
return data