Difference between revisions of "Template:Infobox NHL team"

From blackwiki
Jump to navigation Jump to search
imported>Moka Mo
 
(58 intermediate revisions by 19 users not shown)
Line 1: Line 1:
{| class="infobox vcard" style="font-size: 88%; width: 22em; text-align: left; line-height: 1.5em"
+
<includeonly>{{infobox
! colspan=2 class="fn" style="font-size: 125%; color:{{{text_color}}}; background-color:{{{bg_color}}}; text-align: center" | {{{team_name}}}
+
| bodystyle = font-size: 90%; width:{{{width|300px}}}
|-
+
 
| colspan=2 align="center" | [[file:Hockey current event.svg|33px|alt=|link=]] ''[[{{{current}}}]]''
+
| abovestyle = color:{{{text_color}}}; background-color:{{{bg_color}}}; border-color: {{{border_color}}} 3px solid;
|-
+
| above = {{{team_name|}}}
{{#if: {{{logo_image|}}}|
+
 
{{!}} colspan=2 style="background-color: white; text-align: center" {{!}} [[file:{{{logo_image}}}{{!}}200px{{!}}{{{team_name}}}{{!}}alt={{{logo_alt|}}}]]
+
| subheader = {{#if:{{{current|}}}|[[File:Hockey current event.svg|33px|alt=|link=]] ''[[{{{current}}}]]''}}
{{!}}-
+
 
}}
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo_image|}}}|size={{{logo_image_size|220px}}}|alt={{{logo_alt|}}}}}
|- bgcolor="#eeeeee"
+
| caption = {{{logo_caption|}}}
{{#if:{{{conference|}}}|
+
 
! Conference
+
| label3 = Conference  
{{!}} {{{conference|}}}
+
| data3 = {{{conference|}}}
}}
+
| label4 = Division
|-
+
| data4 = {{{division|}}}
{{#if:{{{division|}}}|
+
| label5 = Founded
! Division
+
| data5 = {{{founded|}}}
{{!}} {{{division}}}
+
| label6 = History
}}
+
| data6 = {{{history|}}}
|- bgcolor="#eeeeee"
+
| label7 = Home arena
! Founded
+
| data7 = {{{arena|}}}
| {{{founded}}}
+
| label8 = City
|-
+
| data8 = {{{city|}}}
{{#if:{{{history|}}}|
+
 
! History
+
| data9 =  {{#invoke:InfoboxImage|InfoboxImage|image={{{uniform_image|}}}|size={{{uniform_image_size|220px}}}|center=yes|alt={{{uniform_image_alt|}}}}}{{#if:{{{uniform_caption|}}}|<br>{{{uniform_caption|}}} }}
{{!}} {{{history}}}
+
| label10 = Colo{{#if:{{{CAN_eng|}}}|u|}}rs
}}
+
| data10 = {{{team_colors|}}}
|- bgcolor="#eeeeee"
+
| label11 = Media
{{#if:{{{arena|}}}|
+
| data11 = {{{media_affiliates|}}}
! Home arena
+
| label12 = Owner(s)
{{!}} {{{arena}}}
+
| data12 = {{{owner|}}}
}}
+
| label13 = General manager
|-
+
| data13 = {{{general_manager|}}}
! City
+
| label14 = [[Coach (ice hockey)|Head coach]]
| {{{city}}}
+
| data14 = {{{head_coach|}}}
|-
+
| label15 = [[Captain (ice hockey)|Captain]]
{{#if:{{{uniform_image|}}}|
+
| data15 = {{{captain|}}}
! colspan=2 style="background-color: white; text-align: center" {{!}} [[file:{{{uniform_image}}}|275px]]
+
| label16 = Minor league affiliates
}}
+
| data16 = {{{minor_league_affiliates|}}}
|- bgcolor="#eeeeee"
+
| label17 = [[Stanley Cup]]s
{{#if:{{{team_colors|}}}|
+
| data17 = {{{stanley_cups|}}}
! Colo{{#if:{{{CAN_eng|}}}|u|}}rs'''
+
| label18 = [[Avco World Trophy]]
{{!}} {{{team_colors}}}
+
| data18 = {{{avco|}}}
}}
+
| label19 = Conference championships
|-
+
| data19 = {{{conf_titles|}}}
{{#if:{{{media_affiliates|}}}|
+
| label20 = Presidents' Trophy
! Media
+
| data20 = {{{presidents'_trophies|{{{presidents_trophies|}}}}}}
{{!}} {{{media_affiliates|}}}
+
| label21 = Division championships
}}
+
| data21 = {{{division_titles|}}}
|- bgcolor="#eeeeee"
+
| label22 = Official website
{{#if:{{{owner|}}}|
+
| data22 = {{{website|}}}
! Owner(s)
+
}}</includeonly><noinclude>{{documentation}}</noinclude>
{{!}} class="agent" {{!}} {{{owner}}}
 
}}
 
|-
 
{{#if:{{{general_manager|}}}|
 
! General manager
 
{{!}} class="agent" {{!}} {{{general_manager}}}
 
}}
 
|- bgcolor="#eeeeee"
 
{{#if:{{{head_coach|}}}|
 
! [[Coach (ice hockey)|Head coach]]
 
{{!}} class="agent" {{!}} {{{head_coach}}}
 
}}
 
|-
 
{{#if:{{{captain|}}}|
 
! [[Captain (ice hockey)|Captain]]
 
{{!}} class="agent" {{!}} {{{captain}}}
 
}}
 
|- bgcolor="#eeeeee"
 
{{#if:{{{minor_league_affiliates|}}}|
 
! Minor league affiliates
 
{{!}} {{{minor_league_affiliates|}}}
 
}}
 
|-
 
{{#if:{{{stanley_cups|}}}|
 
! [[Stanley Cup]]s
 
{{!}} {{{stanley_cups|}}}
 
}}
 
|-
 
{{#if:{{{avco|}}}|
 
! Avco World Trophy
 
{{!}} {{{avco|}}}
 
}}
 
|- bgcolor="#eeeeee"
 
{{#if:{{{conf_titles|}}}|
 
! Conference championships
 
{{!}} {{{conf_titles|}}}
 
}}
 
|-
 
{{#if:{{{presidents_trophy|}}}|
 
! [[Presidents' Trophy]]
 
{{!}} {{{presidents_trophy|}}}
 
}}
 
|-
 
{{#if:{{{division_titles|}}}|
 
! Division championships
 
{{!}} {{{division_titles|}}}
 
}}
 
|}<noinclude>{{documentation}}</noinclude>
 

Latest revision as of 04:31, 1 December 2019

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

Usage

Template:Parameter names example

All fields are optional, except for team name, logo, founding date, city and the CAN_eng variable. CAN_eng should be set to "1" or "true" (which switches the box to Canadian spelling) for Canadian-based teams.

  • Avco = Avco World Trophy (former WHA teams only)
{{Infobox NHL team
|team_name = 
|CAN_eng =
|text_color = 
|bg_color = 
|current = 
|logo_image = 
|logo_alt = <!-- alt text passed to image link -->
|conference = 
|division = 
|founded = <!-- first season of play -->
|history = 
|arena = 
|city = <!-- location of arena -->
|uniform_image =
|team_colors = 
|media_affiliates = 
|owner = 
|general_manager = 
|head_coach =
|captain = 
|minor_league_affiliates = 
|stanley_cups =
|avco =
|conf_titles = 
|presidents'_trophies =
|division_titles =
|website =
}}

Microformat

Template:UF-hcard-org

Use {{Birth date}} for "founded", but ONLY if a full YYYY-MM-DD date is available.

Categories