Template:Women's World Rugby Rankings/doc

From Wikipedia, the free encyclopedia

Usage[edit]

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

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

Parameters[edit]

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

Example[edit]

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

{{Women's World Rugby Rankings|COL}}

This code produces the following:

Top 20 rankings as of 3 June 2024[1]
Rank Change* Team Points
1 Steady  England 096.90
2 Steady  Canada 089.13
3 Steady  New Zealand 088.96
4 Steady  France 087.27
5 Steady  Australia 078.36
6 Steady  Scotland 075.99
7 Steady  United States 074.57
8 Steady  Wales 074.28
9 Steady  Italy 074.26
10 Steady  Ireland 073.53
11 Steady  Japan 069.67
12 Steady  South Africa 065.17
13 Steady  Spain 065.15
14 Steady  Russia 061.10
15 Increase2  Fiji 059.74
16 Steady  Netherlands 058.98
17 Increase1  Hong Kong 058.76
18 Decrease3  Samoa 058.48
19 Steady  Kazakhstan 055.23
20 Steady  Sweden 052.72
*Change from the previous week
  1. ^ "Women's World Rankings". World Rugby. Retrieved 3 June 2024.

Updating[edit]

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