မော်ဂျူး:SportsRankings/data/FIFA World Rankings

ဝီကီပီးဒီးယား မှ
Documentation icon မော်ဂျူးမှတ်တမ်းလက်စွဲ[ကြည့်ရှု] [တည်းဖြတ်] [ရာဇဝင်] [ရှင်းသန့်]

Usage[ပြင်ဆင်ရန်]

This template ({{FIFA World Rankings}}) is meant to help quickly update the FIFA World Rankings for all 211 men's national teams of FIFA, displayed in the infobox on each national team article. When given a country code, the template outputs the FIFA 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 World Rankings" (i.e. <ref name="FIFA 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 Gibraltar:

{{FIFA World Rankings|GIB}}

This code produces the following:

196 Steady (11 June 2020)[၁]

  1. The FIFA/Coca-Cola World Ranking (11 June 2020)။ 11 June 2020 တွင် ပြန်စစ်ပြီး။

The template can be tested at the sandbox page, Template:FIFA World Rankings/sandbox.

Updating[ပြင်ဆင်ရန်]

The main template page is not meant to be updated. The rankings should be updated at Module:SportsRankings/data/FIFA 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 230, 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 ranking list (211 rows from all five pages, 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):

="          {  """&B2&""", "&A1&", "&E1&", "&C1&" },"

If unnecessary lines are included, then paste the text into a site to remove lines with the string , , ,.

See also[ပြင်ဆင်ရန်]

local data = {}

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

-- general information about ranking and website being cited
data.source = {
    url = "https://www.fifa.com/fifa-world-ranking/ranking-table/men/", 
	title = "The FIFA/Coca-Cola World Ranking",
	website = "FIFA"
}

-- date of latest update and previous one for movement
data.updated  = { 	day = 11, 	month = 'June',		year =2020 }
data.previous = { 	day = 9, 	month = 'April',	year =2020 }

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

data.rankings = {
          {  "Belgium", 1, 0, 1765 },
          {  "France", 2, 0, 1733 },
          {  "Brazil", 3, 0, 1712 },
          {  "England", 4, 0, 1661 },
          {  "Uruguay", 5, 0, 1645 },
          {  "Croatia", 6, 0, 1642 },
          {  "Portugal", 7, 0, 1639 },
          {  "Spain", 8, 0, 1636 },
          {  "Argentina", 9, 0, 1623 },
          {  "Colombia", 10, 0, 1622 },
          {  "Mexico", 11, 0, 1621 },
          {  "Switzerland", 12, 0, 1608 },
          {  "Italy", 13, 0, 1607 },
          {  "Netherlands", 14, 0, 1604 },
          {  "Germany", 15, 0, 1602 },
          {  "Denmark", 16, 0, 1598 },
          {  "Chile", 17, 0, 1579 },
          {  "Sweden", 17, 0, 1579 },
          {  "Poland", 19, 0, 1559 },
          {  "Senegal", 20, 0, 1555 },
          {  "Peru", 21, 0, 1544 },
          {  "USA", 22, 0, 1542 },
          {  "Wales", 23, 0, 1540 },
          {  "Ukraine", 24, 0, 1537 },
          {  "Venezuela", 25, 0, 1517 },
          {  "Austria", 26, 0, 1507 },
          {  "Tunisia", 27, 0, 1506 },
          {  "Japan", 28, 0, 1500 },
          {  "Turkey", 29, 0, 1494 },
          {  "Serbia", 29, 0, 1494 },
          {  "Nigeria", 31, 0, 1493 },
          {  "Slovakia", 32, 0, 1490 },
          {  "IR Iran", 33, 0, 1489 },
          {  "Republic of Ireland", 34, 0, 1486 },
          {  "Algeria", 35, 0, 1482 },
          {  "Northern Ireland", 36, 0, 1476 },
          {  "Romania", 37, 0, 1475 },
          {  "Russia", 38, 0, 1470 },
          {  "Iceland", 39, 0, 1465 },
          {  "Korea Republic", 40, 0, 1464 },
          {  "Paraguay", 41, 0, 1461 },
          {  "Australia", 42, 0, 1457 },
          {  "Morocco", 43, 0, 1456 },
          {  "Norway", 44, 0, 1451 },
          {  "Czech Republic", 45, 0, 1446 },
          {  "Costa Rica", 46, 0, 1439 },
          {  "Ghana", 46, 0, 1439 },
          {  "Jamaica", 48, 0, 1438 },
          {  "Bosnia and Herzegovina", 49, 0, 1430 },
          {  "Scotland", 50, 0, 1422 },
          {  "Egypt", 51, 0, 1420 },
          {  "Hungary", 52, 0, 1416 },
          {  "Cameroon", 53, 0, 1413 },
          {  "Greece", 54, 0, 1409 },
          {  "Qatar", 55, 0, 1396 },
          {  "Mali", 56, 0, 1389 },
          {  "Congo DR", 56, 0, 1389 },
          {  "Finland", 58, 0, 1386 },
          {  "Bulgaria", 59, 0, 1381 },
          {  "Burkina Faso", 59, 0, 1381 },
          {  "Côte d'Ivoire", 61, 0, 1378 },
          {  "Honduras", 62, 0, 1377 },
          {  "Ecuador", 63, 0, 1368 },
          {  "Montenegro", 64, 0, 1365 },
          {  "Slovenia", 64, 0, 1365 },
          {  "Albania", 66, 0, 1356 },
          {  "Saudi Arabia", 67, 0, 1351 },
          {  "North Macedonia", 68, 0, 1347 },
          {  "El Salvador", 69, 0, 1346 },
          {  "Iraq", 70, 0, 1344 },
          {  "United Arab Emirates", 71, 0, 1334 },
          {  "South Africa", 71, 0, 1334 },
          {  "Canada", 73, 0, 1332 },
          {  "Guinea", 74, 0, 1328 },
          {  "Bolivia", 75, 0, 1324 },
          {  "China PR", 76, 0, 1323 },
          {  "Uganda", 77, 0, 1321 },
          {  "Cabo Verde", 78, 0, 1318 },
          {  "Syria", 79, 0, 1314 },
          {  "Curaçao", 80, 0, 1313 },
          {  "Panama", 81, 0, 1305 },
          {  "Oman", 82, 0, 1303 },
          {  "Gabon", 83, 0, 1297 },
          {  "Benin", 84, 0, 1295 },
          {  "Uzbekistan", 85, 0, 1286 },
          {  "Haiti", 86, 0, 1285 },
          {  "Belarus", 87, 0, 1283 },
          {  "Zambia", 88, 0, 1279 },
          {  "Congo", 89, 0, 1269 },
          {  "Lebanon", 89, 0, 1269 },
          {  "Madagascar", 91, 0, 1267 },
          {  "Georgia", 91, 0, 1267 },
          {  "Israel", 93, 0, 1260 },
          {  "Vietnam", 94, 0, 1258 },
          {  "Cyprus", 95, 0, 1251 },
          {  "Kyrgyz Republic", 96, 0, 1240 },
          {  "Jordan", 97, 0, 1238 },
          {  "Luxembourg", 98, 0, 1236 },
          {  "Bahrain", 99, 0, 1225 },
          {  "Mauritania", 100, 0, 1223 },
          {  "Libya", 101, 0, 1215 },
          {  "Armenia", 102, 0, 1213 },
          {  "Palestine", 103, 0, 1204 },
          {  "Estonia", 104, 0, 1202 },
          {  "Trinidad and Tobago", 105, 0, 1201 },
          {  "Mozambique", 106, 0, 1200 },
          {  "Kenya", 107, 0, 1199 },
          {  "India", 108, 0, 1187 },
          {  "Central African Republic", 109, 0, 1184 },
          {  "Faroe Islands", 110, 0, 1181 },
          {  "Zimbabwe", 111, 0, 1180 },
          {  "Niger", 112, 0, 1179 },
          {  "Thailand", 113, 0, 1178 },
          {  "Azerbaijan", 114, 0, 1177 },
          {  "Kosovo", 115, 0, 1174 },
          {  "Korea DPR", 116, 0, 1170 },
          {  "Namibia", 117, 0, 1160 },
          {  "Kazakhstan", 118, 0, 1155 },
          {  "Sierra Leone", 118, 0, 1155 },
          {  "Guinea-Bissau", 118, 0, 1155 },
          {  "Tajikistan", 121, 0, 1152 },
          {  "New Zealand", 122, 0, 1149 },
          {  "Malawi", 123, 0, 1141 },
          {  "Philippines", 124, 0, 1136 },
          {  "Angola", 124, 0, 1136 },
          {  "Antigua and Barbuda", 126, 0, 1127 },
          {  "Togo", 126, 0, 1127 },
          {  "Sudan", 128, 0, 1112 },
          {  "Turkmenistan", 129, 0, 1107 },
          {  "Guatemala", 130, 0, 1104 },
          {  "Rwanda", 131, 0, 1089 },
          {  "Lithuania", 131, 0, 1089 },
          {  "Comoros", 133, 0, 1088 },
          {  "Tanzania", 134, 0, 1086 },
          {  "Andorra", 135, 0, 1082 },
          {  "Myanmar", 136, 0, 1081 },
          {  "Latvia", 137, 0, 1079 },
          {  "Chinese Taipei", 138, 0, 1078 },
          {  "Lesotho", 139, 0, 1074 },
          {  "St. Kitts and Nevis", 139, 0, 1074 },
          {  "Solomon Islands", 141, 0, 1073 },
          {  "Suriname", 141, 0, 1073 },
          {  "Hong Kong", 143, 0, 1072 },
          {  "Yemen", 144, 0, 1071 },
          {  "Equatorial Guinea", 145, 0, 1066 },
          {  "Ethiopia", 146, 0, 1061 },
          {  "Kuwait", 147, 0, 1060 },
          {  "Botswana", 148, 0, 1055 },
          {  "Afghanistan", 149, 0, 1052 },
          {  "Burundi", 149, 0, 1052 },
          {  "Nicaragua", 151, 0, 1051 },
          {  "Liberia", 152, 0, 1047 },
          {  "Eswatini", 153, 0, 1042 },
          {  "Malaysia", 154, 0, 1040 },
          {  "Maldives", 155, 0, 1038 },
          {  "New Caledonia", 156, 0, 1035 },
          {  "Singapore", 157, 0, 1020 },
          {  "Dominican Republic", 158, 0, 1019 },
          {  "Gambia", 159, 0, 1015 },
          {  "Grenada", 159, 0, 1015 },
          {  "Tahiti", 161, 0, 1014 },
          {  "Barbados", 162, 0, 1009 },
          {  "Fiji", 163, 0, 996 },
          {  "Vanuatu", 163, 0, 996 },
          {  "Papua New Guinea", 165, 0, 991 },
          {  "Guyana", 166, 0, 988 },
          {  "St. Vincent and the Grenadines", 167, 0, 986 },
          {  "Bermuda", 168, 0, 983 },
          {  "South Sudan", 168, 1, 983 },
          {  "Nepal", 170, 0, 974 },
          {  "Belize", 170, 0, 974 },
          {  "Mauritius", 172, 0, 965 },
          {  "Indonesia", 173, 0, 964 },
          {  "Cambodia", 173, 0, 964 },
          {  "Moldova", 175, 0, 959 },
          {  "St. Lucia", 176, 0, 953 },
          {  "Chad", 177, 0, 943 },
          {  "Puerto Rico", 178, 0, 941 },
          {  "Cuba", 179, 0, 936 },
          {  "Liechtenstein", 180, 0, 926 },
          {  "São Tomé and Príncipe", 181, 0, 923 },
          {  "Macau", 182, 0, 922 },
          {  "Montserrat", 183, 0, 921 },
          {  "Malta", 184, 0, 919 },
          {  "Djibouti", 184, 0, 919 },
          {  "Dominica", 184, 0, 919 },
          {  "Bangladesh", 187, 0, 914 },
          {  "Laos", 188, 0, 912 },
          {  "Bhutan", 189, 0, 911 },
          {  "Mongolia", 190, 0, 906 },
          {  "Brunei Darussalam", 191, 0, 904 },
          {  "American Samoa", 192, 0, 900 },
          {  "Cayman Islands", 193, 0, 897 },
          {  "Samoa", 194, 0, 894 },
          {  "Bahamas", 195, 0, 880 },
          {  "Gibraltar", 196, 0, 879 },
          {  "Somalia", 196, 0, 879 },
          {  "Timor-Leste", 196, 0, 879 },
          {  "Guam", 199, 0, 873 },
          {  "Pakistan", 200, 0, 867 },
          {  "Aruba", 200, 0, 867 },
          {  "Seychelles", 202, 0, 866 },
          {  "Tonga", 203, 0, 862 },
          {  "Turks and Caicos Islands", 203, 0, 862 },
          {  "Eritrea", 205, 0, 856 },
          {  "Sri Lanka", 206, 0, 853 },
          {  "US Virgin Islands", 207, 0, 844 },
          {  "British Virgin Islands", 208, 0, 842 },
          {  "San Marino", 209, 0, 824 },
          {  "Anguilla", 210, 0, 821 },
}

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

data.confederation = { AFC =    { "AFG","AUS","BAN","BHR","BHU","BRU","CAM","CHN","GUM","HKG",
	                              "IDN","IND","IRN","IRQ","JOR","JPN","KGZ","KOR","KSA","KUW",
	                              "LAO","LIB","MAC","MAS","MDV","MNG","MYA","NEP","OMA","PAK",
    	                          "PHI","PLE","PRK","QAT","SIN","SRI","SYR","THA","TJK","TKM",
    	                          "TLS","TPE","UAE","UZB","VIE","YEM" 
                                } ,
                          EAFF =    { "CHN","GUM","HKG","JPN","KOR","MAC","MNG","PRK","TPE"
                                } ,
                        test = { "ENG", "SCO", "WAL", "IRE", "NIR", "FRA", "England", "France", "Germany" },
                      }
    	                          
return data