Difference between revisions of "Template:IIHF World Ranking/data"

From blackwiki
Jump to navigation Jump to search
imported>AaronWikia
(Update)
imported>TrailBlzr
(Undid revision 892665318 by AaronWikia (talk) IIHF hasn't made this update yet, this is original research. See: [https://www.iihf.com/en/worldranking IIHF World Rankings])
Line 1: Line 1:
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
 
<!--Updated-->
 
<!--Updated-->
| day  = 15
+
| day  = 21
| month = April
+
| month = May
| year  = 2019
+
| year  = 2018
  
 
<!--Rankings-->
 
<!--Rankings-->
| SWE = 1 | SWE_move = 1 <!-- Sweden -->
+
| CAN = 1 | CAN_move = 0 <!-- Canada -->
| CAN = 2 | CAN_move = -1 <!-- Canada -->
+
| SWE = 2 | SWE_move = 1 <!-- Sweden -->
| RUS = 3 | RUS_move = 0 <!-- Russia -->
+
| RUS = 3 | RUS_move = -1 <!-- Russia -->
| FIN = 4 | FIN_move = 1 <!-- Finland -->
+
| USA = 4 | USA_move = 2 <!-- United States -->
| USA = 5 | USA_move = -1 <!-- United States -->
+
| FIN = 5 | FIN_move = -1 <!-- Finland -->
| CZE = 6 | CZE_move = 0 <!-- Czech Republic / Czechia -->
+
| CZE = 6 | CZE_move = -1 <!-- Czech Republic / Czechia -->
| SUI = 7 | SUI_move = 0 <!-- Switzerland -->
+
| SUI = 7 | SUI_move = 1 <!-- Switzerland -->
| GER = 8 | GER_move = 0 <!-- Germany -->
+
| GER = 8 | GER_move = -1 <!-- Germany -->
 
| NOR = 9 | NOR_move = 0 <!-- Norway -->
 
| NOR = 9 | NOR_move = 0 <!-- Norway -->
| LAT = 10 | LAT_move = 1 <!-- Latvia -->
+
| SVK = 10 | SVK_move = 0 <!-- Slovakia -->
| SVK = 11 | SVK_move = -1 <!-- Slovakia -->
+
| LAT = 11 | LAT_move = 1 <!-- Latvia -->
| DEN = 12 | DEN_move = 0 <!-- Denmark -->
+
| DEN = 12 | DEN_move = 1 <!-- Denmark -->
| FRA = 13 | FRA_move = 0 <!-- France -->
+
| FRA = 13 | FRA_move = -1 <!-- France -->
| BLR = 14 | BLR_move = 0 <!-- Belarus -->
+
| BLR = 14 | BLR_move = -3 <!-- Belarus -->
| AUT = 15 | AUT_move = 2 <!-- Austria -->
+
| SLO = 15 | SLO_move = 0 <!-- Slovenia -->
| ITA = 16 | ITA_move = 3 <!-- Italy -->
+
| KOR = 16 | KOR_move = 2 <!-- South Korea / Korea -->
| SLO = 17 | SLO_move = -2 <!-- Slovenia -->
+
| AUT = 17 | AUT_move = 0 <!-- Austria -->
| KOR = 18 | KOR_move = -2 <!-- South Korea / Korea -->
+
| KAZ = 18 | KAZ_move = -2 <!-- Kazakhstan -->
| KAZ = 19 | KAZ_move = -1 <!-- Kazakhstan -->
+
| ITA = 19 | ITA_move = 0 <!-- Italy -->
| GBR = 20 | GBR_move = 2 <!-- Great Britain -->
+
| HUN = 20 | HUN_move = 0 <!-- Hungary -->
| HUN = 21 | HUN_move = -1 <!-- Hungary -->
+
| POL = 21 | POL_move = 0 <!-- Poland -->
| POL = 22 | POL_move = -1 <!-- Poland -->
+
| GBR = 22 | GBR_move = 2 <!-- Great Britain -->
| LTU = 23 | LTU_move = 2 <!-- Lithuania -->
+
| JPN = 23 | JPN_move = -1 <!-- Japan -->
| JPN = 24 | JPN_move = -1 <!-- Japan -->
+
| UKR = 24 | UKR_move = -1 <!-- Ukraine -->
| UKR = 25 | UKR_move = -1 <!-- Ukraine -->
+
| LTU = 25 | LTU_move = 1 <!-- Lithuania -->
| EST = 26 | EST_move = 0 <!-- Estonia -->
+
| EST = 26 | EST_move = 1 <!-- Estonia -->
| NED = 27 | NED_move = 1 <!-- Netherlands -->
+
| CRO = 27 | CRO_move = -2 <!-- Croatia -->
| CRO = 28 | CRO_move = -1 <!-- Croatia -->
+
| NED = 28 | NED_move = 0 <!-- Netherlands -->
 
| ROM = 29 | ROM_move = 0 <!-- Romania -->
 
| ROM = 29 | ROM_move = 0 <!-- Romania -->
 
| 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 = 1 <!-- China -->
+
| ISL = 32 | ISL_move = 0 <!-- Iceland -->
| ISL = 33 | ISL_move = -1 <!-- Iceland -->
+
| CHN = 33 | CHN_move = 0 <!-- China -->
| AUS = 34 | AUS_move = 2 <!-- Australia -->
+
| ISR = 34 | ISR_move = 1 <!-- Israel -->
| ISR = 35 | ISR_move = -1 <!-- Israel -->
+
| MEX = 35 | MEX_move = -1 <!-- Mexico -->
| MEX = 36 | MEX_move = -1 <!-- Mexico -->
+
| AUS = 36 | AUS_move = 2 <!-- Australia -->
 
| BEL = 37 | BEL_move = -1 <!-- Belgium -->
 
| BEL = 37 | BEL_move = -1 <!-- Belgium -->
| GEO = 38 | GEO_move = 2 <!-- Georgia -->
+
| BUL = 38 | BUL_move = -1 <!-- Bulgaria -->
| BUL = 39 | BUL_move = -1 <!-- Bulgaria -->
+
| NZL = 39 | NZL_move = 0 <!-- New Zealand -->
| NZL = 40 | NZL_move = -1 <!-- New Zealand -->
+
| GEO = 40 | GEO_move = 1 <!-- Georgia -->
| PRK = 41 | PRK_move = 0 <!-- North Korea / DPR Korea -->
+
| PRK = 41 | PRK_move = -1 <!-- North Korea / DPR Korea -->
| LUX = 42 | LUX_move = 0 <!-- Luxembourg -->
+
| LUX = 42 | LUX_move = 1 <!-- Luxembourg -->
| TUR = 43 | TUR_move = 0 <!-- Turkey -->
+
| TUR = 43 | TUR_move = -1 <!-- Turkey -->
 
| RSA = 44 | RSA_move = 0 <!-- South Africa -->
 
| RSA = 44 | RSA_move = 0 <!-- South Africa -->
 
| HKG = 45 | HKG_move = 0 <!-- Hong Kong -->
 
| HKG = 45 | HKG_move = 0 <!-- Hong Kong -->
| TPE = 46 | TPE_move = 0 <!-- Chinese Taipei / Taiwan -->
+
| TPE = 46 | TPE_move = 2 <!-- Chinese Taipei / Taiwan -->
| UAE = 47 | UAE_move = 0 <!-- United Arab Emirates -->
+
| UAE = 47 | UAE_move = -1 <!-- United Arab Emirates -->
| TKM = 48 | TKM_move = 1 <!-- Turkmenistan -->
+
| BIH = 48 | BIH_move = -1 <!-- Bosnia and Herzegovina -->
| BIH = 49 | BIH_move = -1 <!-- Bosnia and Herzegovina -->
+
| TKM = 49 | TKM_move = 0 <!-- Turkmenistan -->
 
| KUW = 50 | KUW_move = 0 <!-- Kuwait -->
 
| KUW = 50 | KUW_move = 0 <!-- Kuwait -->
| THA = 51 | THA_move = new <!-- Thailand -->
 
| KGZ = 52 | KGZ_move = new <!-- Kyrgyzstan -->
 
  
 
<!--Not ranked-->
 
<!--Not ranked-->
Line 69: Line 67:
 
| IND = NR | IND_move = 0 <!-- India -->
 
| IND = NR | IND_move = 0 <!-- India -->
 
| IRL = NR | IRL_move = 0 <!-- Ireland / Republic of Ireland -->
 
| IRL = NR | IRL_move = 0 <!-- Ireland / Republic of Ireland -->
 +
| KGZ = NR | KGZ_move = 0 <!-- Kyrgyzstan -->
 
| LIE = NR | LIE_move = 0 <!-- Liechtenstein -->
 
| LIE = NR | LIE_move = 0 <!-- Liechtenstein -->
 
| MAC = NR | MAC_move = 0 <!-- Macau -->
 
| MAC = NR | MAC_move = 0 <!-- Macau -->
Line 74: Line 73:
 
| MAS = NR | MAS_move = 0 <!-- Malaysia -->
 
| MAS = NR | MAS_move = 0 <!-- Malaysia -->
 
| MGL = NR | MGL_move = 0 <!-- Mongolia -->
 
| MGL = NR | MGL_move = 0 <!-- Mongolia -->
| MKD = NR | MKD_move = 0 <!-- North Macedonia -->
+
| MKD = NR | MKD_move = 0 <!-- Macedonia / FYR Macedonia -->
 
| OMA = NR | OMA_move = 0 <!-- Oman -->
 
| OMA = NR | OMA_move = 0 <!-- Oman -->
 
| PHI = NR | PHI_move = 0 <!-- Philippines -->
 
| PHI = NR | PHI_move = 0 <!-- Philippines -->
Line 80: Line 79:
 
| QAT = NR | QAT_move = 0 <!-- Qatar -->
 
| QAT = NR | QAT_move = 0 <!-- Qatar -->
 
| SGP = NR | SGP_move = 0 <!-- Singapore -->
 
| SGP = NR | SGP_move = 0 <!-- Singapore -->
 +
| THA = NR | THA_move = 0 <!-- Thailand -->
 
}}<noinclude>{{documentation|Template:IIHF World Ranking/doc}}</noinclude>
 
}}<noinclude>{{documentation|Template:IIHF World Ranking/doc}}</noinclude>

Revision as of 23:28, 16 April 2019

50px Template documentation[view] [edit] [history] [purge]

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 code
  • mdy: 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:

22 Increase 2 (21 May 2018)[1]

  1. "IIHF Men's World Ranking". IIHF. 21 May 2018. Retrieved 21 May 2018.

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.