Jump to content

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  Argentina:

{{World Rugby Rankings|Argentina}}

This code produces the following:

Top 30 as of 12 August 2024[1]
Rank Change* Team Points
1 Steady  South Africa 093.11
2 Steady  Ireland 092.12
3 Steady  New Zealand 088.37
4 Steady  France 086.96
5 Steady  England 085.40
6 Increase1  Argentina 083.64
7 Decrease1  Scotland 082.82
8 Steady  Italy 079.98
9 Steady  Australia 078.96
10 Steady  Fiji 077.44
11 Steady  Wales 076.04
12 Steady  Georgia 074.10
13 Steady  Samoa 073.65
14 Steady  Japan 071.63
15 Steady  Portugal 070.61
16 Steady  Tonga 068.66
17 Steady  Uruguay 067.39
18 Steady  Spain 066.29
19 Steady  United States 066.01
20 Steady  Romania 062.62
21 Steady  Canada 061.87
22 Steady  Chile 061.39
23 Steady  Hong Kong 060.40
24 Steady  Russia 058.06
25 Steady  Namibia 057.87
26 Steady   Switzerland 057.44
27 Steady  Netherlands 057.29
28 Steady  Zimbabwe 056.03
29 Steady  Brazil 055.83
30 Steady  Belgium 055.11
* Change from the previous week
  1. ^ "Men's World Rankings". World Rugby. Retrieved 12 August 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.