Difference between revisions of "Template:Infobox NHL team"

From blackwiki
Jump to navigation Jump to search
imported>Fuzzybear47
(Undid revision 344500586 by Fuzzybear47 (talk))
imported>Thumperward
(start cleaning this up to bring it in line with other infobox templates)
Line 1: Line 1:
{| class="infobox bordered vcard" cellpadding="4" style="font-size: 90%; width: 25em;"
+
{| class="infobox bordered vcard" style="font-size: 88%; width: 22em; text-align: left; line-height: 1.5em"
|- align="center" style="font-size: medium; color:{{{text_color}}}; background-color:{{{bg_color}}}; padding:5px;" |
+
! colspan=2 class="fn" style="font-size: 125%; color:{{{text_color}}}; background-color:{{{bg_color}}}; text-align: center" | {{{team_name}}}
| colspan="2" | '''<span class="fn">{{{team_name}}}</span>'''
 
 
|-  
 
|-  
| colspan="2" align="center" | [[File:Hockey_current_event.svg{{!}}33px{{!}}alt={{!}}link=]] ''[[{{{current}}}]]''
+
| colspan=2 align="center" | [[file:Hockey current event.svg|33px|alt=|link=]] ''[[{{{current}}}]]''
 
|-
 
|-
| align="center" colspan="2" style="background-color: white;" |
+
{{#if: {{{logo_image|}}}|
{{#if: {{{logo_image|}}} | [[File:{{{logo_image}}}|center|200px|{{{team_name}}}|alt={{{logo_alt|}}}]]}}
+
{{!}} colspan=2 style="background-color: white; text-align: center" {{!}} [[file:{{{logo_image}}}{{!}}200px{{!}}{{{team_name}}}{{!}}alt={{{logo_alt|}}}]]
 +
{{!}}-
 +
}}
 
|- bgcolor="#eeeeee"
 
|- bgcolor="#eeeeee"
 
{{#if:{{{conference|}}}|
 
{{#if:{{{conference|}}}|
! style="text-align: left;" {{!}} Conference
+
! Conference
 
{{!}} {{{conference|}}}
 
{{!}} {{{conference|}}}
 
}}
 
}}
 
|-  
 
|-  
 
{{#if:{{{division|}}}|
 
{{#if:{{{division|}}}|
! style="text-align: left;" {{!}} Division
+
! Division
 
{{!}} {{{division}}}
 
{{!}} {{{division}}}
 
}}
 
}}
 
|- bgcolor="#eeeeee"
 
|- bgcolor="#eeeeee"
|| '''Founded''' || {{{founded}}}
+
! Founded
 +
| {{{founded}}}
 
|-  
 
|-  
 
{{#if:{{{history|}}}|
 
{{#if:{{{history|}}}|
! style="text-align: left;" {{!}} History
+
! History
 
{{!}} {{{history}}}
 
{{!}} {{{history}}}
 
}}
 
}}
 
|- bgcolor="#eeeeee"
 
|- bgcolor="#eeeeee"
 
{{#if:{{{arena|}}}|
 
{{#if:{{{arena|}}}|
! style="text-align: left;" {{!}} Home arena
+
! Home arena
 
{{!}} {{{arena}}}
 
{{!}} {{{arena}}}
 
}}
 
}}
 
|-  
 
|-  
|| '''City''' || {{{city}}}
+
! City
 +
| {{{city}}}
 
|-
 
|-
 
{{#if:{{{uniform_image|}}}|
 
{{#if:{{{uniform_image|}}}|
! align="center" colspan="2" style="background-color: white;" {{!}} [[File:{{{uniform_image}}}|center|275px]]
+
! colspan=2 style="background-color: white; text-align: center" {{!}} [[file:{{{uniform_image}}}|275px]]
 
}}
 
}}
 
|- bgcolor="#eeeeee"
 
|- bgcolor="#eeeeee"
 
{{#if:{{{team_colors|}}}|
 
{{#if:{{{team_colors|}}}|
! style="text-align: left;" {{!}} Colo{{#if:{{{CAN_eng|}}}|u|}}rs'''
+
! Colo{{#if:{{{CAN_eng|}}}|u|}}rs'''
 
{{!}} {{{team_colors}}}
 
{{!}} {{{team_colors}}}
 
}}
 
}}
 
|-
 
|-
 
{{#if:{{{media_affiliates|}}}|
 
{{#if:{{{media_affiliates|}}}|
! style="text-align: left;" {{!}} Media
+
! Media
 
{{!}} {{{media_affiliates|}}}
 
{{!}} {{{media_affiliates|}}}
 
}}
 
}}
 
|- bgcolor="#eeeeee"
 
|- bgcolor="#eeeeee"
 
{{#if:{{{owner|}}}|
 
{{#if:{{{owner|}}}|
! style="text-align: left;" {{!}} Owner(s)
+
! Owner(s)
{{!}} <span class="agent">{{{owner}}}</span>
+
{{!}} class="agent" {{!}} {{{owner}}}
 
}}
 
}}
 
|-  
 
|-  
 
{{#if:{{{general_manager|}}}|
 
{{#if:{{{general_manager|}}}|
! style="text-align: left;" {{!}} General manager
+
! General manager
{{!}} <span class="agent">{{{general_manager}}}</span>
+
{{!}} class="agent" {{!}} {{{general_manager}}}
 
}}
 
}}
 
|- bgcolor="#eeeeee"
 
|- bgcolor="#eeeeee"
 
{{#if:{{{head_coach|}}}|
 
{{#if:{{{head_coach|}}}|
! style="text-align: left;" {{!}} [[Coach (ice hockey)|Head coach]]
+
! [[Coach (ice hockey)|Head coach]]
{{!}} <span class="agent">{{{head_coach}}}</span>
+
{{!}} class="agent" {{!}} {{{head_coach}}}
 
}}
 
}}
 
|-  
 
|-  
 
{{#if:{{{captain|}}}|
 
{{#if:{{{captain|}}}|
! style="text-align: left;" {{!}} [[Captain (ice hockey)|Captain]]
+
! [[Captain (ice hockey)|Captain]]
{{!}} <span class="agent">{{{captain}}}</span>
+
{{!}} class="agent" {{!}} {{{captain}}}
 
}}
 
}}
 
|- bgcolor="#eeeeee"
 
|- bgcolor="#eeeeee"
 
{{#if:{{{minor_league_affiliates|}}}|
 
{{#if:{{{minor_league_affiliates|}}}|
! style="text-align: left;" {{!}} Minor league affiliates
+
! Minor league affiliates
 
{{!}} {{{minor_league_affiliates|}}}
 
{{!}} {{{minor_league_affiliates|}}}
 
}}
 
}}
 
|-  
 
|-  
{{#if:{{{stanley_cups|}}} |
+
{{#if:{{{stanley_cups|}}}|
! style="text-align: left;" {{!}} [[Stanley Cup]]s
+
! [[Stanley Cup]]s
 
{{!}} {{{stanley_cups|}}}
 
{{!}} {{{stanley_cups|}}}
 
}}
 
}}
 
|-  
 
|-  
{{#if:{{{avco|}}} |
+
{{#if:{{{avco|}}}|
! style="text-align: left;" {{!}} Avco World Trophy
+
! Avco World Trophy
 
{{!}} {{{avco|}}}
 
{{!}} {{{avco|}}}
 
}}
 
}}
 
|- bgcolor="#eeeeee"
 
|- bgcolor="#eeeeee"
{{#if:{{{conf_titles|}}} |
+
{{#if:{{{conf_titles|}}}|
! style="text-align: left;" {{!}} Conference championships
+
! Conference championships
 
{{!}} {{{conf_titles|}}}
 
{{!}} {{{conf_titles|}}}
 
}}
 
}}
 
|-
 
|-
{{#if:{{{division_titles|}}} |
+
{{#if:{{{division_titles|}}}|
! style="text-align: left;" {{!}} Division championships
+
! Division championships
 
{{!}} {{{division_titles|}}}
 
{{!}} {{{division_titles|}}}
 
}}
 
}}
 
|}<noinclude>{{documentation}}</noinclude>
 
|}<noinclude>{{documentation}}</noinclude>

Revision as of 12:09, 10 March 2010

{{{team_name}}}
[[{{{current}}}]]
Founded {{{founded}}}
City {{{city}}}
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