Template:World Rugby Rankings: Difference between revisions
No edit summary |
m Corrected ranking table |
||
Line 8: | Line 8: | ||
|-{{#ifeq: {{{1}}} |New Zealand|style=background:#F5DEB3| }} |
|-{{#ifeq: {{{1}}} |New Zealand|style=background:#F5DEB3| }} |
||
! 1 |
! 1 |
||
| align=center| {{steady}} || {{ru| |
| align=center| {{steady}} || {{ru|New Zealand}} || {{0}}91.54 |
||
|-{{#ifeq: {{{1}}} |Wales |style=background:#F5DEB3| }} |
|-{{#ifeq: {{{1}}} |Wales |style=background:#F5DEB3| }} |
||
! 2 |
! 2 |
||
| align=center| {{steady}} || {{ru| |
| align=center| {{steady}} || {{ru|Wales}} || {{0}}89.96 |
||
|-{{#ifeq: {{{1}}} |Ireland|style=background:#F5DEB3| }} |
|-{{#ifeq: {{{1}}} |Ireland|style=background:#F5DEB3| }} |
||
! 3 |
! 3 |
Revision as of 13:19, 10 August 2019
Top 30 rankings as of 6 August 2019[1] | |||
Rank | Change* | Team | Points |
1 | New Zealand | 91.54 | |
2 | Wales | 89.96 | |
3 | Ireland | 88.69 | |
4 | South Africa | 86.30 | |
5 | England | 86.27 | |
6 | Australia | 81.91 | |
7 | Scotland | 80.17 | |
8 | France | 79.42 | |
9 | Fiji | 76.98 | |
10 | Argentina | 76.81 | |
11 | Japan | 76.22 | |
12 | Georgia | 74.42 | |
13 | 2 | United States | 72.53 |
14 | 1 | Italy | 72.04 |
15 | 1 | Tonga | 71.49 |
16 | Samoa | 69.08 | |
17 | Spain | 68.15 | |
18 | Romania | 66.69 | |
19 | Uruguay | 65.18 | |
20 | Russia | 64.81 | |
21 | Canada | 61.36 | |
22 | Portugal | 61.33 | |
23 | Namibia | 61.01 | |
24 | Hong Kong | 59.64 | |
25 | Netherlands | 58.46 | |
26 | Brazil | 57.84 | |
27 | Belgium | 57.35 | |
28 | Germany | 54.96 | |
29 | Chile | 54.56 | |
30 | Switzerland | 53.19 | |
*Change from the previous week | |||
{{{1}}}'s historical rankings | |||
[[File:{{{1}}} IRB World Rankings.png|300px]] | |||
Source: World Rugby - Graph updated to 7 January 2019[1] |
This template uses Lua: |
Usage
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
1
(unnamed): WBSC country codemdy
: Switches dates to month-day-year format
Example
An example of the code used to display the ranking of Argentina:
{{World Rugby Rankings|Argentina}}
This code produces the following:
Top 30 rankings as of 6 August 2019[1] | |||
Rank | Change* | Team | Points |
1 | New Zealand | 91.54 | |
2 | Wales | 89.96 | |
3 | Ireland | 88.69 | |
4 | South Africa | 86.30 | |
5 | England | 86.27 | |
6 | Australia | 81.91 | |
7 | Scotland | 80.17 | |
8 | France | 79.42 | |
9 | Fiji | 76.98 | |
10 | Argentina | 76.81 | |
11 | Japan | 76.22 | |
12 | Georgia | 74.42 | |
13 | 2 | United States | 72.53 |
14 | 1 | Italy | 72.04 |
15 | 1 | Tonga | 71.49 |
16 | Samoa | 69.08 | |
17 | Spain | 68.15 | |
18 | Romania | 66.69 | |
19 | Uruguay | 65.18 | |
20 | Russia | 64.81 | |
21 | Canada | 61.36 | |
22 | Portugal | 61.33 | |
23 | Namibia | 61.01 | |
24 | Hong Kong | 59.64 | |
25 | Netherlands | 58.46 | |
26 | Brazil | 57.84 | |
27 | Belgium | 57.35 | |
28 | Germany | 54.96 | |
29 | Chile | 54.56 | |
30 | Switzerland | 53.19 | |
*Change from the previous week |
- ^ a b c "Men's World Rankings". World Rugby. Retrieved 6 August 2019.
Updating
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.
References