Difference between revisions of "Template:IIHF World Ranking/data"
imported>AaronWikia (Update) |
imported>Kante4 |
||
| Line 1: | Line 1: | ||
{{#switch: {{{1}}} | {{#switch: {{{1}}} | ||
<!--Updated--> | <!--Updated--> | ||
| − | | day = | + | | day = 24 |
| − | | month = | + | | month = April |
| year = 2019 | | year = 2019 | ||
<!--Rankings--> | <!--Rankings--> | ||
| CAN = 1 | CAN_move = 0 <!-- Canada --> | | CAN = 1 | CAN_move = 0 <!-- Canada --> | ||
| − | | RUS = 2 | RUS_move = | + | | RUS = 2 | RUS_move = 0 <!-- Russia --> |
| − | | FIN = 3 | FIN_move = | + | | FIN = 3 | FIN_move = 0 <!-- Finland --> |
| − | | SWE = 4 | SWE_move = | + | | SWE = 4 | SWE_move = 0 <!-- Sweden --> |
| − | | CZE = 5 | CZE_move = | + | | CZE = 5 | CZE_move = 0 <!-- Czech Republic --> |
| − | | USA = 6 | USA_move = | + | | USA = 6 | USA_move = 0 <!-- United States --> |
| − | | GER = 7 | GER_move = | + | | GER = 7 | GER_move = 0 <!-- Germany --> |
| − | | SUI = 8 | SUI_move = | + | | SUI = 8 | SUI_move = 0 <!-- Switzerland --> |
| − | | SVK = 9 | SVK_move = | + | | SVK = 9 | SVK_move = 0 <!-- Slovakia --> |
| − | | LAT = 10 | LAT_move = | + | | LAT = 10 | LAT_move = 0 <!-- Latvia --> |
| − | | NOR = 11 | NOR_move = | + | | NOR = 11 | NOR_move = 0 <!-- Norway --> |
| DEN = 12 | DEN_move = 0 <!-- Denmark --> | | DEN = 12 | DEN_move = 0 <!-- Denmark --> | ||
| − | | | + | | BLR = 13 | BLR_move = 1 <!-- Belarus --> |
| − | | | + | | FRA = 14 | FRA_move = -1 <!-- France --> |
| − | | | + | | ITA = 15 | ITA_move = 1 <!-- Italy --> |
| − | | | + | | KAZ = 16 | KAZ_move = 3 <!-- Kazakhstan --> |
| − | | | + | | AUT = 17 | AUT_move = -2 <!-- Austria --> |
| − | | | + | | KOR = 18 | KOR_move = -1 <!-- South Korea --> |
| − | | | + | | GBR = 19 | GBR_move = 1 <!-- Great Britain --> |
| − | | | + | | SLO = 20 | SLO_move = -2 <!-- Slovenia --> |
| − | | HUN = 21 | HUN_move = | + | | HUN = 21 | HUN_move = 0 <!-- Hungary --> |
| − | | POL = 22 | POL_move = | + | | POL = 22 | POL_move = 0 <!-- Poland --> |
| − | | | + | | LTU = 23 | LTU_move = 1 <!-- Lithuania --> |
| − | | | + | | JPN = 24 | JPN_move = -1 <!-- Japan --> |
| − | | | + | | ROM = 25 | ROM_move = 2 <!-- Romania --> |
| − | | | + | | UKR = 26 | UKR_move = -1 <!-- Ukraine --> |
| − | | | + | | EST = 27 | EST_move = -1 <!-- Estonia --> |
| NED = 28 | NED_move = 0 <!-- Netherlands --> | | NED = 28 | NED_move = 0 <!-- Netherlands --> | ||
| − | | CRO = 29 | CRO_move = | + | | CRO = 29 | CRO_move = 0 <!-- Croatia --> |
| SRB = 30 | SRB_move = 0 <!-- Serbia --> | | SRB = 30 | SRB_move = 0 <!-- Serbia --> | ||
| ESP = 31 | ESP_move = 0 <!-- Spain --> | | ESP = 31 | ESP_move = 0 <!-- Spain --> | ||
| − | | CHN = 32 | CHN_move = | + | | CHN = 32 | CHN_move = 0 <!-- China --> |
| − | | ISL = 33 | ISL_move = | + | | ISL = 33 | ISL_move = 0 <!-- Iceland --> |
| ISR = 34 | ISR_move = 0 <!-- Israel --> | | ISR = 34 | ISR_move = 0 <!-- Israel --> | ||
| − | | AUS = 35 | AUS_move = | + | | AUS = 35 | AUS_move = 0 <!-- Australia --> |
| − | | | + | | BEL = 36 | BEL_move = 1 <!-- Belgium --> |
| − | | | + | | MEX = 37 | MEX_move = -1 <!-- Mexico --> |
| − | | | + | | GEO = 38 | GEO_move = 1 <!-- Georgia --> |
| − | | | + | | NZL = 39 | NZL_move = 1 <!-- New Zealand --> |
| − | | | + | | BUL = 40 | BUL_move = -2 <!-- Bulgaria --> |
| − | | PRK = 41 | PRK_move = 0 <!-- North | + | | PRK = 41 | PRK_move = 0 <!-- North Korea --> |
| − | | TUR = 42 | TUR_move = | + | | TUR = 42 | TUR_move = 0 <!-- Turkey --> |
| − | | LUX = 43 | LUX_move = | + | | LUX = 43 | LUX_move = 0 <!-- Luxembourg --> |
| − | | | + | | TPE = 44 | TPE_move = 1 <!-- Chinese Taipei --> |
| − | | | + | | TKM = 45 | TKM_move = 2 <!-- Turkmenistan --> |
| − | | | + | | RSA = 46 | RSA_move = -2 <!-- South Africa --> |
| − | | | + | | UAE = 47 | UAE_move = 1 <!-- United Arab Emirates --> |
| − | | | + | | HKG = 48 | HKG_move = -2 <!-- Hong Kong --> |
| − | | BIH = 49 | BIH_move = | + | | BIH = 49 | BIH_move = 0 <!-- Bosnia and Herzegovina --> |
| − | | | + | | THA = 50 | THA_move = 1 <!-- Thailand --> |
| − | | | + | | KUW = 51 | KUW_move = -1 <!-- Kuwait --> |
| KGZ = 52 | KGZ_move = 0 <!-- Kyrgyzstan --> | | KGZ = 52 | KGZ_move = 0 <!-- Kyrgyzstan --> | ||
| + | | MAS = 53 | MAS_move = 0 <!-- Malaysia --> | ||
| + | | PHI = 54 | PHI_move = 0 <!-- Philippines --> | ||
<!--Not ranked--> | <!--Not ranked--> | ||
| Line 77: | Line 79: | ||
| MAC = NR | MAC_move = 0 <!-- Macau --> | | MAC = NR | MAC_move = 0 <!-- Macau --> | ||
| MAR = NR | MAR_move = 0 <!-- Morocco --> | | MAR = NR | MAR_move = 0 <!-- Morocco --> | ||
| − | |||
| MGL = NR | MGL_move = 0 <!-- Mongolia --> | | MGL = NR | MGL_move = 0 <!-- Mongolia --> | ||
| MKD = NR | MKD_move = 0 <!-- Macedonia / FYR Macedonia --> | | MKD = NR | MKD_move = 0 <!-- Macedonia / FYR Macedonia --> | ||
| OMA = NR | OMA_move = 0 <!-- Oman --> | | OMA = NR | OMA_move = 0 <!-- Oman --> | ||
| − | |||
| POR = NR | POR_move = 0 <!-- Portugal --> | | POR = NR | POR_move = 0 <!-- Portugal --> | ||
| QAT = NR | QAT_move = 0 <!-- Qatar --> | | QAT = NR | QAT_move = 0 <!-- Qatar --> | ||
Revision as of 11:46, 24 April 2020
Contents
Usage
This template is meant to help quickly update the IIHF World Ranking for all 50 men'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 Men's World Ranking"/>).
Parameters
1(unnamed): IIHF country codemdy: Switches dates to month-day-year format
Example
An example of the code used to display the ranking of Great Britain:
{{IIHF World Ranking|GBR}}
This code produces the following:
19
1 (24 April 2019)[1]
- ↑ "IIHF Men's World Ranking". IIHF. 24 April 2019. Retrieved 24 April 2019.
Updating
The main template page is not meant to be updated. The rankings should be updated at Template:IIHF 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.
| The above documentation is transcluded from Template:IIHF World Ranking/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |