Template: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 men'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): WBSC country code
  • mdy: Switches dates to month-day-year format

Example[edit]

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

{{World Rugby Rankings|COL}}

This code produces the following:

Top 30 as of 18 March 2024[1]
Rank Change* Team Points
1 Steady  South Africa 094.54
2 Steady  Ireland 090.69
3 Steady  New Zealand 089.80
4 Steady  France 087.92
5 Steady  England 085.75
6 Steady  Scotland 082.82
7 Steady  Argentina 080.68
8 Increase1  Italy 079.41
9 Increase1  Australia 077.48
10 Decrease2  Wales 077.26
11 Steady  Fiji 076.38
12 Steady  Japan 074.27
13 Steady  Georgia 074.02
14 Steady  Samoa 072.23
15 Increase1  Tonga 071.57
16 Decrease1  Portugal 070.28
17 Steady  United States 067.94
18 Steady  Uruguay 067.39
19 Steady  Spain 064.37
20 Steady  Romania 061.66
21 Steady  Canada 060.90
22 Steady  Namibia 060.56
23 Steady  Chile 060.49
24 Steady  Hong Kong 059.80
25 Steady  Russia 058.06
26 Steady   Switzerland 057.44
27 Steady  Netherlands 057.29
28 Increase1  Belgium 055.89
29 Decrease1  Brazil 055.37
30 Increase1  Korea 053.46
* Change from the previous week
  1. ^ "Men's World Rankings". World Rugby. Retrieved 18 March 2024.

Updating[edit]

The main template page is not meant to be updated. The rankings should be updated at Module:SportsRankings/data/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 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.