This is a documentation subpage for Template:Women's World Rugby Rankings. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
editThis 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
edit1
(unnamed): World Rugby country codemdy
: Switches dates to month-day-year format
Example
editAn example of the code used to display the ranking of Colombia:
{{Women's World Rugby Rankings|COL}}
This code produces the following:
Rank | Change* | Team | Points |
---|---|---|---|
1 | England | 97.56 | |
2 | Canada | 89.31 | |
3 | New Zealand | 88.64 | |
4 | France | 85.11 | |
5 | Australia | 78.10 | |
6 | Ireland | 78.03 | |
7 | Scotland | 76.82 | |
8 | Italy | 74.75 | |
9 | United States | 74.20 | |
10 | Wales | 72.58 | |
11 | Japan | 66.41 | |
12 | South Africa | 66.18 | |
13 | Spain | 65.42 | |
14 | Russia | 61.10 | |
15 | Samoa | 60.56 | |
16 | Netherlands | 60.20 | |
17 | Fiji | 59.14 | |
18 | Hong Kong | 56.20 | |
19 | Kazakhstan | 55.23 | |
20 | Sweden | 52.72 | |
*Change from the previous week |
- ^ "Women's World Rankings". World Rugby. Retrieved 28 October 2024.
Updating
editThe 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.