Template:FIBA World Rankings/doc

Usage
This template is meant to help quickly update the FIBA World Rankings for all men's national teams of FIBA, displayed in the infobox on each national team article. When given a country code, the template outputs the FIBA 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 FIBA's website.

If desired, the FIBA ranking reference can be used elsewhere in the article using the name "FIBA World Rankings" (i.e. ).

Parameters

 * (unnamed): FIBA country code
 * : Switches dates to month-day-year format

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

This code produces the following:

Updating
The main template page is not meant to be updated. The rankings should be updated at Template:FIBA World Rankings/data. To update the template, first update the day and month (along with the year if necessary) to the date of the current FIBA World Rankings. Then add a country's new position, along with how many spots they moved (e.g. 2 for increase of two positions, 0 for no movement, -3 for decrease of three positions).

All positions can be quickly updated using a spreadsheet. For example, after copying the entire table from FIBA'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 FIBA rankings begin in cell A1):

The code generated can be saved on the data page, and the rankings will be updated. Once the cache of a national team page is purged, the updated ranking will be displayed.