Template:World Rugby Rankings/doc
This is a documentation subpage for Template:World Rugby Rankings. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
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 codemdy
: 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:
Rank | Change[i] | Team | Points |
---|---|---|---|
1 | South Africa | 92.78 | |
2 | Ireland | 90.78 | |
3 | New Zealand | 90.36 | |
4 | France | 88.51 | |
5 | Argentina | 84.97 | |
6 | Scotland | 83.34 | |
7 | England | 82.31 | |
8 | Australia | 81.52 | |
9 | Fiji | 80.07 | |
10 | Italy | 78.64 | |
11 | Wales | 74.01 | |
12 | Georgia | 73.85 | |
13 | Japan | 72.95 | |
14 | Samoa | 72.68 | |
15 | United States | 70.02 | |
16 | Portugal | 68.82 | |
17 | Uruguay | 67.06 | |
18 | Spain | 65.98 | |
19 | Tonga | 65.46 | |
20 | Romania | 63.01 | |
21 | Chile | 61.72 | |
22 | Hong Kong | 59.49 | |
23 | Canada | 59.18 | |
24 | Netherlands | 58.56 | |
25 | Russia | 58.06 | |
26 | Namibia | 57.87 | |
27 | Zimbabwe | 57.16 | |
28 | Brazil | 56.53 | |
29 | Belgium | 56.51 | |
30 | Switzerland | 56.04 |
- ^ Change from the previous week
- ^ a b "Men's World Rankings". World Rugby. Retrieved 9 December 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.