Difference between revisions of "Template:Infobox international hockey competition"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>Primefac m (→top: adding tracking category for template failing accessibility parameters (small/smaller) using AWB) |
imported>Muboshgu (MOS:ACCESS#Text / MOS:FONTSIZE: "Avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections.") |
||
| 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|}}} | ||
| − | |||
| 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|}}}| | + | | data6 = {{#if:{{{venues|}}}|{{{venues}}}|{{{arenas|}}}}}{{#if:{{{cities|}}}| (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 [[File:Gold medal blank.svg|10px]] | | label11 = Champions [[File:Gold medal blank.svg|10px]] | ||
| − | | data11 = {{#if:{{{winners|}}}|{{ih|{{{winners|}}}|{{{winners-flagvar|}}}}} {{#if: {{{count|}}}|{{nowrap | + | | data11 = {{#if:{{{winners|}}}|{{ih|{{{winners|}}}|{{{winners-flagvar|}}}}} {{#if: {{{count|}}}|{{nowrap|({{ordinal|{{{count}}}}} title)}} }} }} |
| label12 = Champions [[File:Gold medal blank.svg|10px]] | | label12 = Champions [[File:Gold medal blank.svg|10px]] | ||
| − | | data12 = {{#if:{{{winners_women|}}}|{{ihw|{{{winners_women|}}}|{{{winners_women-flagvar|}}}}} {{#if: {{{count|}}}|{{nowrap | + | | data12 = {{#if:{{{winners_women|}}}|{{ihw|{{{winners_women|}}}|{{{winners_women-flagvar|}}}}} {{#if: {{{count|}}}|{{nowrap|({{ordinal|{{{count}}}}} title)}} }} }} |
| label13 = Champions [[File:Gold medal blank.svg|10px]] | | label13 = Champions [[File:Gold medal blank.svg|10px]] | ||
| − | | data13 = {{#if:{{{winners_other|}}}|{{{winners_other|}}} {{#if: {{{count|}}}|{{nowrap | + | | data13 = {{#if:{{{winners_other|}}}|{{{winners_other|}}} {{#if: {{{count|}}}|{{nowrap|({{ordinal|{{{count}}}}} title)}} }} }} |
| label14 = Runner-up [[File:Silver medal blank.svg|10px]] | | label14 = Runner-up [[File:Silver medal blank.svg|10px]] | ||
| Line 65: | Line 64: | ||
| label22 = Goals scored | | label22 = Goals scored | ||
| − | | data22 = {{#if:{{{goals|}}}|{{{goals}}}{{#if:{{{games|}}}| | + | | data22 = {{#if:{{{goals|}}}|{{{goals}}}{{#if:{{{games|}}}| ({{#expr: {{{goals|0}}} / {{{games|1}}} round 2}} per match)}} }} |
| label23 = Attendance | | label23 = Attendance | ||
| − | | data23 = {{#if:{{{attendance|}}}|{{formatnum: {{{attendance|0}}}}}{{#if:{{{games|}}}| | + | | data23 = {{#if:{{{attendance|}}}|{{formatnum: {{{attendance|0}}}}}{{#if:{{{games|}}}| ({{formatnum: {{#expr: {{{attendance|0}}} / {{{games|1}}} round 0}}}} per match)}} }} |
| label24 = Scoring leader(s) | | label24 = Scoring leader(s) | ||
| − | | data24 = {{{scoring_leader|}}}{{#if:{{{points|}}}|<br/> | + | | data24 = {{{scoring_leader|}}}{{#if:{{{points|}}}|<br/>({{{points|}}} points)}} |
| label25 = [[Most valuable player|MVP]] | | label25 = [[Most valuable player|MVP]] | ||
| Line 83: | Line 82: | ||
| belowstyle = text-align:left; | | belowstyle = text-align:left; | ||
| below = {{{note|}}} | | below = {{{note|}}} | ||
| − | }}<noinclude>{{documentation}} | + | }}<noinclude>{{documentation}}</noinclude> |
| − | |||
Revision as of 20:53, 29 March 2019
[[Category:Infobox templates|Template:Remove first word]]
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. gada Pasaules čempionāts hokejā | |
|---|---|
| Tournament details | |
| Host country | |
| Dates | May 5 - May 21 |
| Teams | 16 |
| Venue(s) | 2 (in 2 host cities) |
| Final positions | |
| Champions | |
| Tournament statistics | |
| Matches played | 56 |
| Goals scored | 329 (5.88 per match) |
| Attendance | 324,794 (5,800 per match) |
| Scoring leader(s) | (16 points) |
| MVP | |
← 2005 2007 → | |
{{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]]
}}
| The above documentation is transcluded from Template:Infobox international hockey competition/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |