Template:IIHF Women's World Ranking/doc
![]() | This is a documentation subpage for Template:IIHF Women's World Ranking. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This template is meant to help quickly update the IIHF World Ranking for all 38 women's national teams of the IIHF, displayed in the infobox on each national team article. When given a country code, the template outputs the IIHF 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 the IIHF's website.
If desired, the IIHF ranking reference can be used elsewhere in the article using the name "IIHF World Ranking" (i.e. <ref name="IIHF Women's World Ranking"/>
).
Parameters
[edit]1
(unnamed): IIHF country codemdy
: Switches dates to month-day-year format
Example
[edit]An example of the code used to display the ranking of Great Britain:
{{IIHF Women's World Ranking|GBR}}
This code produces the following:
23 (28 August 2023)[1]
- ^ "IIHF Women's World Ranking". IIHF. 28 August 2023. Retrieved 28 August 2023.
Updating
[edit]The main template page is not meant to be updated. The rankings should be updated at Template:IIHF Women's World Ranking/data. To update the template, first update the day and month (along with the year if necessary) to the date of the current IIHF World Ranking. 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 (50 rows, unedited) from IIHF'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 IIHF 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.