Difference between revisions of "Template:Infobox NHL team"

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