Difference between revisions of "Template:Infobox international hockey competition"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:Infobox international hockey competition": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconf...)
imported>Zyxw
m (update to keep label and medal image on same line -   not doing it in Chrome)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
| title      = {{#if:{{{tourney_name|}}}|{{{year|}}} {{{tourney_name|}}} {{{yearr|}}} <includeonly>|{{PAGENAMEBASE}}</includeonly>}}
 
| title      = {{#if:{{{tourney_name|}}}|{{{year|}}} {{{tourney_name|}}} {{{yearr|}}} <includeonly>|{{PAGENAMEBASE}}</includeonly>}}
 
| above      = {{{other_titles|}}}
 
| above      = {{{other_titles|}}}
| abovestyle = font-size: smaller
 
 
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{size|}}}|sizedefault=200px}}
 
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{size|}}}|sizedefault=200px}}
 
| caption    = {{{caption|}}}
 
| caption    = {{{caption|}}}
Line 31: Line 30:
  
 
| label6    = {{#if:{{{venues|}}}|Venue(s)|Arena(s)}}
 
| label6    = {{#if:{{{venues|}}}|Venue(s)|Arena(s)}}
| data6      = {{#if:{{{venues|}}}|{{{venues}}}|{{{arenas|}}}}}{{#if:{{{cities|}}}|&nbsp;{{small|(in {{{cities}}} {{#ifeq:{{{host_cities}}}|no||host}} cit{{#ifeq: {{{cities}}}|1|y|ies}})}} }}
+
| data6      = {{#if:{{{venues|}}}|{{{venues}}}|{{{arenas|}}}}}{{#if:{{{cities|}}}|&nbsp;(in {{{cities}}} {{#ifeq:{{{host_cities}}}|no||host}} cit{{#ifeq: {{{cities}}}|1|y|ies}})}}
  
 
| header10  = {{#if:{{{winners|}}}{{{winners_women|}}}{{{winners_other|}}}|Final positions}}
 
| header10  = {{#if:{{{winners|}}}{{{winners_women|}}}{{{winners_other|}}}|Final positions}}
| label11    = Champions&nbsp;[[File:Gold medal blank.svg|10px]]
+
| label11    = <span class="nowrap">Champions&nbsp;[[File:Gold medal blank.svg|10px]]</span>
| data11    = {{#if:{{{winners|}}}|{{ih|{{{winners|}}}|{{{winners-flagvar|}}}}} {{#if: {{{count|}}}|{{nowrap|{{small|({{ordinal|{{{count}}}}} title)}} }} }} }}
+
| data11    = {{#if:{{{winners|}}}|{{ih|{{{winners|}}}|{{{winners-flagvar|}}}}} {{#if: {{{count|}}}|{{nowrap|({{ordinal|{{{count}}}}} title)}} }} }}
| label12    = Champions&nbsp;[[File:Gold medal blank.svg|10px]]
+
| label12    = <span class="nowrap">Champions&nbsp;[[File:Gold medal blank.svg|10px]]</span>
| data12    = {{#if:{{{winners_women|}}}|{{ihw|{{{winners_women|}}}|{{{winners_women-flagvar|}}}}} {{#if: {{{count|}}}|{{nowrap|{{small|({{ordinal|{{{count}}}}} title)}} }} }} }}
+
| data12    = {{#if:{{{winners_women|}}}|{{ihw|{{{winners_women|}}}|{{{winners_women-flagvar|}}}}} {{#if: {{{count|}}}|{{nowrap|({{ordinal|{{{count}}}}} title)}} }} }}
| label13    = Champions&nbsp;[[File:Gold medal blank.svg|10px]]
+
| label13    = <span class="nowrap">Champions&nbsp;[[File:Gold medal blank.svg|10px]]</span>
| data13    = {{#if:{{{winners_other|}}}|{{{winners_other|}}} {{#if: {{{count|}}}|{{nowrap|{{small|({{ordinal|{{{count}}}}} title)}} }} }} }}
+
| data13    = {{#if:{{{winners_other|}}}|{{{winners_other|}}} {{#if: {{{count|}}}|{{nowrap|({{ordinal|{{{count}}}}} title)}} }} }}
  
| label14    = Runner-up&nbsp;[[File:Silver medal blank.svg|10px]]
+
| label14    = <span class="nowrap">Runner-up&nbsp;[[File:Silver medal blank.svg|10px]]</span>
 
| data14    = {{#if:{{{second|}}}|{{ih|{{{second|}}}|{{{second-flagvar|}}}}} }}
 
| data14    = {{#if:{{{second|}}}|{{ih|{{{second|}}}|{{{second-flagvar|}}}}} }}
  
| label15    = Runner-up&nbsp;[[File:Silver medal blank.svg|10px]]
+
| label15    = <span class="nowrap">Runner-up&nbsp;[[File:Silver medal blank.svg|10px]]</span>
 
| data15    = {{#if:{{{second_other|}}}|{{{second_other|}}} }}
 
| data15    = {{#if:{{{second_other|}}}|{{{second_other|}}} }}
  
| label16    = Third place&nbsp;[[File:Bronze medal blank.svg|10px]]
+
| label16    = <span class="nowrap">Third place&nbsp;[[File:Bronze medal blank.svg|10px]]</span>
 
| data16    = {{#if:{{{third|}}}|{{ih|{{{third|}}}|{{{third-flagvar|}}}}} }}
 
| data16    = {{#if:{{{third|}}}|{{ih|{{{third|}}}|{{{third-flagvar|}}}}} }}
  
| label17    = Third place&nbsp;[[File:Bronze medal blank.svg|10px]]
+
| label17    = <span class="nowrap">Third place&nbsp;[[File:Bronze medal blank.svg|10px]]</span>
 
| data17    = {{#if:{{{third_other|}}}|{{{third_other|}}} }}
 
| data17    = {{#if:{{{third_other|}}}|{{{third_other|}}} }}
  
Line 65: Line 64:
  
 
| label22    = Goals&nbsp;scored
 
| label22    = Goals&nbsp;scored
| data22    = {{#if:{{{goals|}}}|{{{goals}}}{{#if:{{{games|}}}|&nbsp;{{small|({{#expr: {{{goals|0}}} / {{{games|1}}} round 2}} per match)}} }} }}
+
| data22    = {{#if:{{{goals|}}}|{{{goals}}}{{#if:{{{games|}}}|&nbsp;({{#expr: {{{goals|0}}} / {{{games|1}}} round 2}} per match)}} }}
  
 
| label23    = Attendance
 
| label23    = Attendance
| data23    = {{#if:{{{attendance|}}}|{{formatnum: {{{attendance|0}}}}}{{#if:{{{games|}}}|&nbsp;{{small|({{formatnum: {{#expr: {{{attendance|0}}} / {{{games|1}}} round 0}}}} per match)}} }} }}
+
| data23    = {{#if:{{{attendance|}}}|{{formatnum: {{{attendance|0}}}}}{{#if:{{{games|}}}|&nbsp;({{formatnum: {{#expr: {{{attendance|0}}} / {{{games|1}}} round 0}}}} per match)}} }}
  
 
| label24    = Scoring&nbsp;leader(s)
 
| label24    = Scoring&nbsp;leader(s)
| data24    = {{{scoring_leader|}}}{{#if:{{{points|}}}|<br/>{{small|({{{points|}}} points)}} }}
+
| data24    = {{{scoring_leader|}}}{{#if:{{{points|}}}|<br/>({{{points|}}} points)}}
  
 
| label25    = [[Most valuable player|MVP]]
 
| label25    = [[Most valuable player|MVP]]

Latest revision as of 02:12, 14 January 2020

[[Category:Infobox templates|Template:Remove first word]]

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

Usage

{{Infobox international hockey competition
| tourney_name      = <!-- blank, if tournament name is like PAGE NAME-->
| year              = 
| yearr             = <!-- use if year is on right side-->
| other_titles      = 
| image             = <!-- use the format of "imagename.jpg" -->
| size              = 
| caption           = 
| country           = 
| country-flagvar   = <!-- if the flag is other as the current  -->
| country2          = 
| country2-flagvar  = 
| country3          = 
| country3-flagvar  = 
| country4          = 
| country4-flagvar  = 
| country5          = 
| country5-flagvar  = 
| country6          = 
| country6-flagvar  = 
| country7          = 
| country7-flagvar  = 
| country8          = 
| country8-flagvar  = 
| dates             = 
| tournament_format = 
| num_teams         = 
| arenas            = <!-- or | venues = -->
| cities            = 
| host_cities       = <!-- optional, write "no" if the cities aren't host cities -->
| winners           = 
| winners_women     = <!-- use for women's tournaments -->
| winners_other     = <!-- use instead if the team is not in {{ih}} (enter your own code) -->
| count             = 
| second            = <!-- automatically wraps into {{ih}} template -->
| second_other      = <!-- use instead if the team is not in {{ih}} (enter your own code) -->
| third             = <!-- automatically wraps into {{ih}} template -->
| third_other       = <!-- use instead if the team is not in {{ih}} (enter your own code) -->
| fourth            = <!-- automatically wraps into {{ih}} template -->
| fourth_other      = <!-- use instead if the team is not in {{ih}} (enter your own code) -->
| games             = 
| goals             = 
| attendance        = 
| scoring_leader    = 
| points            = 
| mvp               = 
| prevseason        = 
| nextseason        = 
| note              = 
}}

Example

2006 IIHF World Championship
2006. gada Pasaules čempionāts hokejā
Tournament details
Host country Latvia
DatesMay 5 - May 21
Teams16
Venue(s)2 (in 2 host cities)
Final positions
Champions Gold medal blank.svg Sweden (Template:Ordinal title)
Tournament statistics
Matches played56
Goals scored329 (5.88 per match)
Attendance324,794 (5,800 per match)
Scoring leader(s)Canada Sidney Crosby
(16 points)
MVPSweden Niklas Kronwall
2005
2007
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox international hockey competition
 | tourney_name   = IIHF World Championship
 | year           = 2006
 | other_titles   = {{lang|Lat| 2006. gada Pasaules čempionāts hokejā}}
 | image          =  
 | size           = 110px
 | caption        = 
 | country        = Latvia
 | dates          = May 5 - May 21
 | num_teams      = 16
 | venues         = 2
 | cities         = 2
 | winners        = Sweden
 | count          = 8
 | games          = 56 
 | goals          = 329
 | attendance     = 324794
 | scoring_leader = {{Flagicon|CAN}} [[Sidney Crosby]]
 | points         = 16
 | mvp            = {{Flagicon|SWE}} [[Niklas Kronwall]]
 | prevseason = [[2005 IIHF World Championship|2005]]
 | nextseason = [[2007 IIHF World Championship|2007]]
}}