Template:World Football Elo Ratings/doc

Usage
This module is used on the World Football Elo Ratings article to display a table of the current top 20 teams as ranked by the official website. As with the FIFA World Rankings article, the module is used instead of a conventional wikitable to prevent errors in updating, as the module is much easier and quicker to update, and also to reduce vandalism.

Previously, this template (World Football Elo Ratings) was meant to help quickly update the World Football Elo Ratings for all men's national football teams, displayed in the infobox on each national team article. When given a country name, the template would output the Elo ranking of a country, along with a movement indicator (increase, decrease, or steady), and by how many spots a country moved in the last year, if applicable. The date of the rankings was also listed, along with a reference to the rankings from the World Football Elo Ratings website. After a discussion on WP:Football, it was decided that a national teams' Elo rating would no longer be included in the infobox on its article, as the Elo rating was not deemed notable enough.

Parameters

 * (unnamed): Country name
 * : Switches dates to month-day-year format

Example
An example of the code used to display the ranking of Colombia:

This code produces the following:

The template can be tested at the sandbox page, Template:World Football Elo Ratings/sandbox.

Updating
The main template page is not meant to be updated. The rankings should be updated at Module:SportsRankings/data/World Football Elo Ratings.

To update the rankings:
 * 1) Between lines 17 and 19, update the day and month (along with the year if necessary) to the date of the last match in the website's results section.
 * 2) Between line 25 and 265, 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 the World Football Elo Ratings list, the data can be copied to an external spreadsheet to generate the code necessary to update the data page. Due to the website design, the entire table may paste into one column, requiring the following formula to be used (given the rankings begin in cell A1):

Countries
A total of 241 countries are currently listed in the Elo rankings. The 30 non-FIFA countries are listed below.


 * 211 FIFA member associations
 * 11 countries associated to FIFA confederations
 * 🇬🇫 french guiana
 * 🇬🇵 guadeloupe
 * 🇰🇮 kiribati
 * 🇲🇶 martinique
 * 🇲🇵 northern mariana islands
 * 🇷🇪 réunion
 * 🇹🇻 tuvalu
 * 🇹🇻 tuvalu
 * 🇹🇻 tuvalu
 * 🇹🇻 tuvalu


 * 19 unaffiliated countries
 * 🇬🇱 greenland
 * 🇾🇹 mayotte
 * 🇲🇨 monaco
 * 🇳🇺 niue
 * 🇵🇼 palau
 * 🇧🇱 saint barthélemy
 * 🇵🇲 saint pierre and miquelon
 * 🇻🇦 vatican city
 * 🇼🇫 wallis and futuna
 * 🇪🇭 western sahara
 * 🇧🇱 saint barthélemy
 * 🇵🇲 saint pierre and miquelon
 * 🇻🇦 vatican city
 * 🇼🇫 wallis and futuna
 * 🇪🇭 western sahara
 * 🇻🇦 vatican city
 * 🇼🇫 wallis and futuna
 * 🇪🇭 western sahara
 * 🇪🇭 western sahara

Name differences between the Elo ranking website and Wikipedia are noted.
 * Name differences