Module:SportsRankings/data/FIFA Women's World Rankings

From blackwiki
Jump to navigation Jump to search

Usage

This template ({{FIFA Women's World Rankings}}) is meant to help quickly 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 code
  • mdy: 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:

21 Increase 1 (26 June 2020)[1]

  1. "The FIFA/Coca-Cola Women's World Ranking". FIFA. 26 June 2020. Retrieved 26 June 2020.

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:

  1. On line 14, add the day and month (along with the year if necessary) of the current rankings
  2. On line 15, add the day and month (along with the year if necessary) of the previous rankings
  3. Between line 20 and ~177, 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&""", "&A1&", "&E1&", "&C1&" },", "-,", "-"&A1&",", 1)

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, 158 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 = 26, 	month = 'June',    year =2020 }
data.previous = { 	day = 27, 	month = 'March',	year =2020 }

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

data.rankings = {
          {  "USA", 1, 0, 2181 },
          {  "Germany", 2, 0, 2090 },
          {  "France", 3, 1, 2036 },
          {  "Netherlands", 4, -1, 2032 },
          {  "Sweden", 5, 0, 2007 },
          {  "England", 6, 0, 1999 },
          {  "Australia", 7, 0, 1963 },
          {  "Brazil", 8, 1, 1958 },
          {  "Canada", 8, 0, 1958 },
          {  "Korea DPR", 10, 1, 1940 },
          {  "Japan", 11, -1, 1937 },
          {  "Norway", 12, 0, 1930 },
          {  "Spain", 13, 0, 1915 },
          {  "Italy", 14, 0, 1889 },
          {  "China PR", 15, 0, 1867 },
          {  "Denmark", 16, 0, 1851 },
          {  "Belgium", 17, 0, 1819 },
          {  "Korea Republic", 18, 2, 1818 },
          {  "Iceland", 19, -1, 1817 },
          {  "Switzerland", 20, -1, 1815 },
          {  "Scotland", 21, 1, 1804 },
          {  "Austria", 22, -1, 1792 },
          {  "New Zealand", 23, 0, 1757 },
          {  "Russia", 24, 0, 1708 },
          {  "Colombia", 25, 0, 1700 },
          {  "Ukraine", 26, 1, 1692 },
          {  "Mexico", 27, -1, 1686 },
          {  "Poland", 28, 2, 1683 },
          {  "Czech Republic", 29, -1, 1678 },
          {  "Finland", 30, -2, 1671 },
          {  "Republic of Ireland", 31, 1, 1666 },
          {  "Portugal", 32, -1, 1659 },
          {  "Argentina", 32, 2, 1659 },
          {  "Wales", 34, 0, 1658 },
          {  "Vietnam", 35, -3, 1657 },
          {  "Costa Rica", 36, 1, 1644 },
          {  "Chile", 37, -1, 1640 },
          {  "Nigeria", 38, 1, 1614 },
          {  "Thailand", 39, -1, 1596 },
          {  "Chinese Taipei", 40, 0, 1589 },
          {  "Serbia", 41, 0, 1558 },
          {  "Uzbekistan", 42, 0, 1543 },
          {  "Hungary", 43, 2, 1537 },
          {  "Romania", 44, -1, 1535 },
          {  "Myanmar", 45, -1, 1511 },
          {  "Papua New Guinea", 46, 0, 1504 },
          {  "Slovakia", 47, 0, 1501 },
          {  "Paraguay", 48, 0, 1490 },
          {  "Slovenia", 49, 1, 1471 },
          {  "Jamaica", 50, 1, 1460 },
          {  "Cameroon", 51, -2, 1455 },
          {  "Croatia", 52, 0, 1453 },
          {  "South Africa", 53, 2, 1434 },
          {  "Belarus", 53, 0, 1434 },
          {  "Northern Ireland", 55, 1, 1432 },
          {  "India", 55, 2, 1432 },
          {  "Venezuela", 57, 1, 1425 },
          {  "Jordan", 58, 1, 1419 },
          {  "Bosnia and Herzegovina", 59, 2, 1411 },
          {  "Panama", 60, -7, 1401 },
          {  "Ghana", 60, 0, 1401 },
          {  "Greece", 62, 0, 1396 },
          {  "Côte d'Ivoire", 63, 0, 1392 },
          {  "Haiti", 64, 4, 1391 },
          {  "Peru", 65, -1, 1376 },
          {  "Fiji", 66, -1, 1373 },
          {  "Philippines", 67, 0, 1369 },
          {  "Israel", 67, -1, 1369 },
          {  "Turkey", 69, 0, 1365 },
          {  "IR Iran", 70, 0, 1358 },
          {  "Equatorial Guinea", 71, 0, 1356 },
          {  "Trinidad and Tobago", 72, 0, 1354 },
          {  "Uruguay", 73, 0, 1346 },
          {  "Hong Kong", 74, 0, 1329 },
          {  "Albania", 75, 2, 1325 },
          {  "Azerbaijan", 76, -1, 1321 },
          {  "Kazakhstan", 77, -1, 1318 },
          {  "Tunisia", 78, -78, 1304 },
          {  "Bulgaria", 79, -1, 1303 },
          {  "Guatemala", 80, -1, 1290 },
          {  "Morocco", 81, 0, 1289 },
          {  "Guam", 82, -2, 1282 },
          {  "Mali", 83, -1, 1276 },
          {  "Bahrain", 84, -1, 1274 },
          {  "Algeria", 85, -1, 1271 },
          {  "Faroe Islands", 86, -1, 1259 },
          {  "Senegal", 87, -87, 1247 },
          {  "Tonga", 88, -2, 1240 },
          {  "Cuba", 88, -2, 1240 },
          {  "Malaysia", 90, -2, 1238 },
          {  "Bolivia", 91, -2, 1236 },
          {  "Moldova", 92, -2, 1228 },
          {  "Latvia", 93, -2, 1223 },
          {  "Indonesia", 94, -2, 1222 },
          {  "Estonia", 95, -1, 1210 },
          {  "New Caledonia", 96, -3, 1208 },
          {  "United Arab Emirates", 97, -1, 1201 },
          {  "Montenegro", 97, -3, 1201 },
          {  "Nepal", 99, -2, 1200 },
          {  "Zambia", 100, 6, 1198 },
          {  "Malta", 101, -2, 1197 },
          {  "Tahiti", 102, -4, 1196 },
          {  "Cook Islands", 103, -3, 1194 },
          {  "Congo", 104, -3, 1178 },
          {  "Dominican Republic", 105, -3, 1173 },
          {  "Puerto Rico", 106, -3, 1172 },
          {  "Lithuania", 107, -2, 1169 },
          {  "Samoa", 107, -3, 1169 },
          {  "El Salvador", 109, -2, 1164 },
          {  "Congo DR", 110, -2, 1159 },
          {  "Zimbabwe", 111, -2, 1151 },
          {  "Ethiopia", 111, -2, 1151 },
          {  "Gambia", 113, -113, 1143 },
          {  "Solomon Islands", 114, -2, 1140 },
          {  "Georgia", 115, -4, 1138 },
          {  "Honduras", 116, -3, 1136 },
          {  "Vanuatu", 117, -3, 1131 },
          {  "Palestine", 117, -3, 1131 },
          {  "Luxembourg", 119, -3, 1124 },
          {  "Kyrgyz Republic", 120, -2, 1118 },
          {  "Angola", 121, -2, 1117 },
          {  "Nicaragua", 122, -2, 1116 },
          {  "Cyprus", 123, -6, 1114 },
          {  "Mongolia", 123, -2, 1114 },
          {  "Kosovo", 125, -3, 1104 },
          {  "Armenia", 126, -126, 1103 },
          {  "Suriname", 127, -4, 1093 },
          {  "Singapore", 128, -4, 1089 },
          {  "North Macedonia", 129, -4, 1072 },
          {  "Gabon", 130, -4, 1066 },
          {  "St. Kitts and Nevis", 131, -4, 1050 },
          {  "Tajikistan", 132, -4, 1035 },
          {  "American Samoa", 133, -4, 1030 },
          {  "Bangladesh", 134, -4, 1008 },
          {  "Barbados", 135, -4, 1002 },
          {  "Bermuda", 136, -4, 987 },
          {  "Kenya", 137, -4, 986 },
          {  "St. Lucia", 138, -4, 982 },
          {  "Tanzania", 139, -4, 978 },
          {  "Sri Lanka", 140, -4, 968 },
          {  "Lebanon", 141, -4, 967 },
          {  "Maldives", 142, -4, 966 },
          {  "Namibia", 143, -4, 956 },
          {  "Rwanda", 144, -4, 899 },
          {  "Malawi", 145, -4, 887 },
          {  "Uganda", 146, -4, 868 },
          {  "Lesotho", 147, -4, 850 },
          {  "Botswana", 148, -4, 848 },
          {  "US Virgin Islands", 149, -4, 843 },
          {  "Belize", 150, -4, 824 },
          {  "Eswatini", 151, -4, 822 },
          {  "Mozambique", 152, -4, 814 },
          {  "Antigua and Barbuda", 153, -4, 787 },
          {  "Bhutan", 154, -4, 769 },
          {  "Andorra", 155, -4, 749 },
          {  "Comoros", 156, -4, 731 },
          {  "Aruba", 157, -4, 724 },
          {  "Madagascar", 158, -4, 691 },
          {  "Mauritius", 159, -4, 357 },
}

-- 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",  "Curacao" },
        { "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" },
        { "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" },
        { "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