Template:FIVB Women's World Rankings/doc

From Wikipedia, the free encyclopedia

Usage[edit]

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

If desired, the FIVB ranking reference can be used elsewhere in the article using the name "FIVB Women's World Rankings" (i.e. <ref name="FIVB Women's World Rankings"/>).

Note: Template:FIVB ranking women needs to be updated for women's national volleyball team pages.

Parameters[edit]

  • 1 (unnamed): FIVB country code
  • mdy: Switches dates to month-day-year format

Example[edit]

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

{{FIVB Women's World Rankings|POL}}

This code produces the following:

3 Steady (20 May 2024)[1]

  1. ^ "The FIVB Women's World Ranking". FIVB. 20 May 2024. Retrieved 20 May 2024.

Updating[edit]

The main template page is not meant to be updated. The rankings should be updated at Module:SportsRankings/data/FIVB Women's World Rankings. To update the template, first update the day and month (along with the year if necessary) to the date of the current FIVB Women's 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, -5 for decrease of two positions).

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

="| {{subst:str sub old|"&B1&"|0|3}} = "&A1&" | {{subst:str sub old|"&B1&"|0|3}}_move = "&E1

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.

See also[edit]