Шаблон:FIFA World Rankings/документація


Цей шаблон ({{FIFA World Rankings}}) створиний для швидкого оновлення Рейтингу ФІФА всіх футбольних збірних світу.


  • 1: FIFA country code


An example of the code used to display the ranking of Gibraltar:

{{FIFA World Rankings|GIB}}

This code produces the following:

195 (7 квітня 2021)[1]

  1. The FIFA/Coca-Cola World Ranking. FIFA. 7 квітня 2021. Процитовано 7 квітня 2021. 

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


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 , , ,.