Misplaced Pages

Template:Infobox ice hockey biography: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 19:35, 1 October 2009 view sourceDjsasso (talk | contribs)Autopatrolled, Administrators142,338 editsNo edit summary← Previous edit Revision as of 19:42, 1 October 2009 view source Andrwsc (talk | contribs)Extended confirmed users74,784 edits fix for women's intl teamsNext edit →
Line 61: Line 61:
{{#if: {{{ntl_team_women|}}}| {{#if: {{{ntl_team_women|}}}|
{{!}} style="padding: 0.4em 1em 0.4em 0.4em; border-top: 1px solid #ccddee;" {{!}} '''Ntl. team''' {{!}} style="padding: 0.4em 1em 0.4em 0.4em; border-top: 1px solid #ccddee;" {{!}} '''Ntl. team'''
{{!}} style="white-space: nowrap; border-top: 1px solid #ccddee; padding: 0.4em 1em 0.4em 0.4em;" {{!}} {{ihw|{{{ntl_team|}}}|}}{{#if: {{{ntl_team_women_2|}}}|&nbsp;&<br />{{ihw|{{{ntl_team_women_2}}}|}}}}}}{{#if: {{{ntl_team_women_3|}}}|&nbsp;&<br />{{ihw|{{{ntl_team_women_3}}}|}}}} {{!}} style="white-space: nowrap; border-top: 1px solid #ccddee; padding: 0.4em 1em 0.4em 0.4em;" {{!}} {{ihw|{{{ntl_team_women|}}}|}}{{#if: {{{ntl_team_women_2|}}}|&nbsp;&<br />{{ihw|{{{ntl_team_women_2}}}|}}}}}}{{#if: {{{ntl_team_women_3|}}}|&nbsp;&<br />{{ihw|{{{ntl_team_women_3}}}|}}}}
|- |-
<!-- ###### NHL Draft --> <!-- ###### NHL Draft -->

Revision as of 19:42, 1 October 2009

This template employs intricate features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here.
Born {{{birth_date}}},
{{{birth_place}}}
Height
Weight
0 ft 0 in (0.00 m)
Position {{{position}}}
Pro career {{{career_start}}} – present
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 20,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template adds an automatically generated short description. If the automatic short description is not optimal, replace it by adding {{Short description}} at the top of the article.
This template uses Lua:

This infobox is to be used for ice hockey players. Suggestions on change should be noted in the talk page.

Usage

Metric: height (cm), weight (kg)

]
Born {{{birth_date}}},
{{{birth_place}}}
Died {{{death_date}}},
{{{death_place}}}
Height
Weight
0 ft 0 in (0.00 m)
Position {{{position}}}
Shoots {{{shoots}}}
Catches {{{catches}}}
{{{league}}} team (P)
Cur. team
F. teams
{{{team}}}
{{{prospect_team}}} ({{{prospect_league}}})
{{{former_teams}}}
Pro clubs {{{played_for}}}
Ntl. team  Soviet Union &
Unified Team &
 Russia
NHL Draft {{{draft}}}, ]
{{{draft_team}}}
WHA Draft {{{wha_draft}}}, ]
{{{wha_draft_team}}}
Pro career {{{career_start}}} – {{{career_end}}}
Hall of Fame, {{{halloffame}}}
Website {{{website}}}
{{Infobox ice hockey biography
| name = 
| halloffame = 
| image = 
| image_size = 
| alt = 
| caption = 
| birth_date = 
| birth_place = 
| death_date = 
| death_place = 
| height_cm = 
| weight_kg = 
| position = 
| shoots = 
| catches = 
| league = 
| team = 
| prospect_league = 
| prospect_team = 
| former_teams = 
| played_for = 
| league_coach = 
| team_coach = 
| coached_for = 
| sex = 
| ntl_team = 
| ntl_team_2 = 
| ntl_team_3 = 
| draft = 
| draft_year = 
| draft_team = 
| wha_draft = 
| wha_draft_year = 
| wha_draft_team = 
| career_start = 
| career_end = 
| career_start_coach = 
| career_end_coach = 
| website = 
| medaltemplates = 
| show-medals = 
}}

Metric: height (m)

Born {{{birth_date}}},
{{{birth_place}}}
Height
Weight
0 ft 0 in (0.00 m)
Position {{{position}}}
Pro career {{{career_start}}} – present
| height_m =

Imperial: height (ft/in), weight (lb)

Born {{{birth_date}}},
{{{birth_place}}}
Height
Weight
5 ft 6 in (1.68 m)
120 lb (54 kg; 8 st 8 lb)
Position {{{position}}}
Pro career {{{career_start}}} – present
| height_ft = 
| height_in = 
| weight_lb =

Parameters

The only required parameters are name and career_start (failure to fill in data for either of these WILL NOT delete that field from the infobox). You must enter parameter names exactly as shown below (i.e.: letter case matters!). Please follow the guidelines provided in parenthesis for best results:

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox ice hockey biography in articles based on its TemplateData.

TemplateData for Infobox ice hockey biography

A template to display an infobox for ice hockey players.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

Player's name, if not given the page name is used.

Default
{{PAGENAME}}
Stringrequired
halloffamehalloffame

Year of induction for ].

Numberoptional
imageimage

Image of player (file name only).

Fileoptional
image_sizeimage_size

Width in px, default is original image size.

Numberoptional
altalt

Image alt text, for visually impaired readers; see ].

Stringoptional
captioncaption

Image caption

Stringoptional
birth_datebirth_date

For living players, use {{birth date and age}}, {{birth-date and age}}, or {{birth year and age}}. For deceased players, use {{birth date}} or {{birth-date}}. Add |df=yes before the }} if you want day-month format instead of month-day.

Stringoptional
birth_placebirth_place

Place of birth. Format appropriate to the country (see ]); use ] as called at time of birth.

Stringoptional
death_datedeath_date

Use {{death date and age}} or {{death-date and age}}. Add |df=yes before the }} if you want day-month format instead of month-day.

Stringoptional
death_placedeath_place

Place of death (if known). Format appropriate to the country (see ])

Stringoptional
height_cmheight_cm

Player's height (centimeters). Do not use both cm and ft/in.

Numberoptional
height_mheight_m

Player's height (meters). Do not use both m and ft/in.

Numberoptional
height_ftheight_ft

Player's height (feet; use with height_in). Do not use both ft/in and m.

Numberoptional
height_inheight_in

Player's height (inches; use with height_ft). Do not use both ft/in and m.

Numberoptional
weight_kgweight_kg

Player's weight (kilograms). Do not use both kg and lb.

Numberoptional
weight_lbweight_lb weight_lbs

Player's weight (pounds). Do not use both lb and kg.

Numberoptional
positionposition

All positions can be wikified. i.e.: use ], ], ], ].

Stringoptional
shootsshoots

Left/Right (if player is a skater; use catches for a goalie). It is HIGHLY RECOMMENDED that one of these two field choices is used in the template. The only reason that this field has been made optional is because there is discretion involved in choosing which of the two to use in the infobox, based on whether the player is a skater or a goalie.

Stringoptional
catchescatches

Left/Right (if player is a goalie; use shoots for a skater). It is HIGHLY RECOMMENDED that one of these two field choices is used in the template. The only reason that this field has been made optional is because there is discretion involved in choosing which of the two to use in the infobox, based on whether the player is a skater or a goalie.

Stringoptional
leagueleague

Current league or possible top league (if a player is signed to an entry-level or two-way contract, or is playing on loan in other leagues). Use abbreviation and link. i.e.: ], ], etc. If league name is relatively short, you can use the full name. i.e.: ]. Infobox WILL flex to accommodate the name.

Stringoptional
teamteam

Current team (in league above). Enter FULL NAME of team with link, i.e. ], ], etc.

Stringoptional
prospect_teamprospect_team

For players who are signed to an entry-level or two-way contract, or are playing on loan in other leagues and have not played for the top team (in top league above), or is assigned to a lower league team from a conditioning stint after injury. Enter FULL NAME of team with link, i.e. ], ], etc.

Stringoptional
prospect_leagueprospect_league

For players who are signed to an entry-level or two-way contract, or are playing on loan in other leagues and have not played for the top team (in top league above), or is assigned to a lower league team from a conditioning stint after injury. Use abbreviation and link. i.e.: ], ], etc. Any entry into this field will also automatically place (P) next to the professional team listed.

Stringoptional
former_teamsformer_teams

Professional teams an active player played for. Enter FULL NAME of teams in chronological order. Former teams will not display if (current) team field is blank.

Stringoptional
played_forplayed_for

Professional teams a retired player played for. Enter FULL NAME of teams.

Stringoptional
league_coachleague_coach

Current league coaching in. Use abbreviation and link. i.e.: ], ], etc. If league name is relatively short, you can use the full name. i.e.: ]. Infobox WILL flex to accommodate the name.

Stringoptional
team_coachteam_coach

Current team (in league above) coaching for. Enter FULL NAME of team with link, i.e. ], ], etc.

Stringoptional
coached_forcoached_for

Professional teams a coached was the coach for. Enter FULL NAME of teams.

Stringoptional
sexsex

Use f for female players.

Stringoptional
ntl_teamntl_team

Any national senior teams a player played for. Enter the country name, such as Czech Republic or its ] country code (CZE), which generates a link to ] (or ] if sex=f).

Stringoptional
ntl_team_2ntl_team_2

If a player played on two national senior teams.

Stringoptional
ntl_team_3ntl_team_3

In the rare case that a player played on 3 national senior teams such as those from Russia, Soviet Union and the Unified Team, or Eastern Bloc defectors who played for Canada prior to the fall of the Iron Curtain.

Stringoptional
draftdraft

Position taken overall in ] (1969 or later only), i.e. ''13th overall''. If not drafted AND career began in 1969 or later, put ''Undrafted''.

Stringoptional
draft_yeardraft_year

Year of NHL Entry Draft, i.e.: 2001 (which creates a link to ]).

Numberoptional
draft_teamdraft_team

Enter FULL NAME of team (NO ABBREVIATION), i.e.: ].

Stringoptional
wha_draftwha_draft

Position taken overall in ], i.e. ''13th overall''.

Stringoptional
wha_draft_yearwha_draft_year

Year of WHA amateur draft, i.e.: 2001 (which creates a link to ]).

Numberoptional
wha_draft_teamwha_draft_team

Enter FULL NAME of team (NO ABBREVIATION), i.e.: ].

Stringoptional
career_startcareer_start

First pro year if professional, first year of top level of amateur competition if amateur.

Default
value of ''draft_year''.
Numberoptional
career_endcareer_end

Final year of career.

Numberoptional
career_start_coachcareer_start_coach

First pro year coaching if professional, first year of top level of amateur competition if amateur.

Default
value of ''draft_year''.
Numberoptional
career_end_coachcareer_end_coach

Final year of coaching career.

Numberoptional
websitewebsite

Player's official website; use {{URL}}

Stringoptional
medaltemplatesmedaltemplates

Player's international medals won. Only use if there is no international play or awards section. When using do not use the MedalCountry template as that is already handled by the ntl_team parameters.

Stringoptional
show-medalsshow-medals

If set to "no", the medal table is collapsed. By default, it is expanded and will only be collapsed if the "hide" link is clicked.

Default
yes
Stringoptional

Use as a child template

The embed parameter is used when embedding this infobox into another.

This infobox may be used to create a genre-specific section within {{Infobox person}} (or similar biographical infobox templates) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see Misplaced Pages:Infobox modules. Also see the Template:Infobox documentation which explains embedding and subboxes.

{{Infobox person
| name = 
| image = 
| caption = 
| birth_date = 
| birth_place = 
| <!-- etc. -->
| module = 
  {{Infobox ice hockey biography | embed=yes
  | parameter-1 = 
  | parameter-2 = 
  | parameter-3 = 
  | parameter-4 = 
  | <!-- etc. -->
  }}
}}

Examples

Example 1: male player, draft

{{{image_size}}}
Born (1983-08-13) August 13, 1983 (age 41),
Pardubice, Czechoslovakia
Height
Weight
6 ft 0 in (1.83 m)
192 lb (87 kg; 13 st 10 lb)
Position Right Wing
Shoots Right
NHL team
F. teams
Edmonton Oilers
CZE
HC Pardubice
Ntl. team  Czech Republic
NHL Draft 13th overall, 2001
Edmonton Oilers
Pro career 2002 – present
{{Infobox ice hockey biography
| name = Aleš Hemský
| image = Hemskydraft.png
| alt = Young man with clean-cut reddish-blonde hair and a blue business shirt and tie, holding up a dark athletic uniform reading "HEMSKY 01" in large white letters
| caption = Hemský at the 2001 NHL entry draft
| birth_date = {{Birth date and age|1983|8|13|mf=y}}
| birth_place = ], Czechoslovakia
| height_ft = 6
| height_in = 0
| weight_lb = 192
| position = ]
| shoots = Right
| league = ]
| team = ]
| former_teams = ''']'''<br />]
| ntl_team = Czech Republic
| draft = 13th overall
| draft_year = 2001
| draft_team = ]
| career_start = 2002
| career_end = 
}}

Example 2: female player, no image

Born (1982-06-16) June 16, 1982 (age 42),
Spruce Grove, Alberta, Canada
Height
Weight
5 ft 4 in (1.63 m)
133 lb (60 kg; 9 st 7 lb)
Position Defence
Shoots Right
WCHA team
CWHL team
Wisconsin Badgers
Calgary Oval X-Treme
Ntl. team  Canada
Pro career 2003 – 2010
{{Infobox ice hockey biography
| name = Carla MacLeod
| birth_date = {{birth date and age|1982|06|16}}
| birth_place = ], Alberta, Canada
| height_ft = 5
| height_in = 4
| weight_lb = 133
| position = ]
| shoots = Right
| league = ] team<br />]
| team = ]<br />]
| sex = f
| ntl_team = Canada
| career_start = 2003
| career_end = 2010
}}

Example 3: Hall of Fame player, deceased, Olympic medals

Born (1948-01-14)14 January 1948,
Moscow, Soviet Union
Died 27 August 1981(1981-08-27) (aged 33),
Solnechnogorsk, Soviet Union
Height
Weight
5 ft 8 in (1.73 m)
165 lb (75 kg; 11 st 11 lb)
Position Left Wing
Shoots Left
Pro clubs CSKA Moscow
Ntl. team  Soviet Union
Pro career 1967 – 1981
Hall of Fame, 2005
{{Infobox ice hockey biography
| name = Valeri Kharlamov<br />{{smaller|Валерий Харламов}}
| halloffame = 2005
| birth_date = {{birth date|df=yes|1948|1|14}}
| birth_place = ], Soviet Union
| death_date = {{death date and age|df=yes|1981|8|27|1948|1|14}}
| death_place = ], Soviet Union
| height_ft = 5
| height_in = 8
| weight_lb = 165
| position = ]
| shoots = Left
| played_for = ]
| ntl_team = Soviet Union
| career_start = 1967
| career_end = 1981
| medaltemplates = 
{{MedalCompetition | ] }}
{{MedalGold | ] | ] }}
{{MedalGold | ] | ] }}
{{MedalSilver | ] | ] }}
}}

Example 4: goaltender, metric

{{{image_size}}}
Born (1982-11-23) 23 November 1982 (age 42),
Seoul, South Korea
Height
Weight
0 ft 0 in (0.00 m)
Position Goaltender
Catches Left
ALH team
F. teams
Anyang Halla
High1
Ntl. team  South Korea
Pro career 2005 – present
{{Infobox ice hockey biography
| name = Son Ho-sung<br />손호성
| image = Sonhosungnet.jpg
| caption = Son during an away game against ]
| birth_date = {{Birth date and age|1982|11|23|df=y}}
| birth_place = ], South Korea
| height_cm = 180
| weight_kg = 78
| position = ]
| catches = Left
| league = ]
| team = ]
| former_teams = ]
| ntl_team = South Korea
| career_start = 2005
| career_end = 
}}

Example 7: coach

{{{image_size}}}
Born (1955-01-25) January 25, 1955 (age 69),
Moncton, New Brunswick, Canada
Height
Weight
6 ft 1 in (1.85 m)
185 lb (84 kg; 13 st 3 lb)
Position Right wing
Shoots Right
Pro clubs Atlanta Flames
Detroit Red Wings
St. Louis Blues
Winnipeg Jets
NHL Draft 26th overall, 1975
Atlanta Flames
WHA Draft 62nd overall, 1975
Indianapolis Racers
Pro career 1975 – 1984
{{Infobox ice hockey biography
| name = Rick Bowness
| image = Rick Bowness 2018-05-21 2.jpg
| caption = Bowness in 2018
| birth_date = {{Birth date and age|1955|1|25}}
| birth_place = ], New Brunswick, Canada
| height_ft = 6
| height_in = 1
| weight_lb = 185
| position = ]
| shoots = Right
| played_for = ]<br>]<br>]<br>]
| league_coach = ]
| team_coach = ]
| coached_for = ]<br>]<br>]<br>]<br>]
| draft = 26th overall
| draft_year = 1975
| draft_team = ]
| wha_draft = 62nd overall
| wha_draft_year = 1975
| wha_draft_team = ]
| career_start = 1975
| career_end = 1984
| career_start_coach = 1988
| career_end_coach = 
}}

Example 6: embed parameter

Berndt Westerlund
Westerlund with Hammarby IF in 1963
BornBerndt Westerlund
(1932-03-27) 27 March 1932 (age 92)
Stockholm, Sweden
Association football career
Position(s) Right winger
Youth career
–1951 Karlbergs BK
Senior career*
Years Team Apps (Gls)
1952–1963 Hammarby IF 162 (35)
International career
1954–1959 Sweden B 2 (0)
*Club domestic league appearances and goals
Born {{{birth_date}}},
{{{birth_place}}}
Height
Weight
0 ft 0 in (0.00 m)
Position Centre
Pro clubs Karlbergs BK / Hammarby IF
Ntl. team  Sweden
Pro career 1951 – 1961
{{Infobox person
| name = Berndt Westerlund
| image = Berndt_Westerlund.png
| caption = Westerlund with Hammarby IF in 1963
| birth_name = Berndt Westerlund
| birth_date = {{birth date and age|1932|03|27|df=y}}<ref name="nationalteam">{{cite web|url=https://www2.svenskfotboll.se/landslag/landslagsdatabas/landslagsspelare/?fplid=c727fb34-4f0b-4a65-b8f4-b7d7679df0cf|title=Landslagsdatabasen: Berndt Westerlund|publisher=]|access-date=15 November 2020|language=Swedish}}</ref>
| birth_place = ], Sweden
| height = 
| module =
{{Infobox football biography
| embed = yes
| position = ]
| youthyears1 = –1951
| youthclubs1 = ]
| years1 = 1952–1963
| clubs1 = ]
| caps1 = 162
| goals1 = 35
| nationalyears1 = 1954–1959
| nationalteam1 = ]
| nationalcaps1 = 2
| nationalgoals1 = 0
}}
{{Infobox ice hockey biography
| embed = yes
| played_for = ] / ]
| career_start = 1951
| career_end = 1961
| position = ]
| ntl_team = SWE
| shoots = 
}}
}}

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Misplaced Pages or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Misplaced Pages, please see the microformat project.

Sub-templates

Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.

To include a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

Please do not rename or remove these classes nor collapse nested elements which use them.

Tracking categories

See also

Supporting templates and modules
Templates to be used with infobox
Information
The above documentation is transcluded from Template:Infobox ice hockey biography/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
  1. "Landslagsdatabasen: Berndt Westerlund" (in Swedish). Swedish Football Association. Retrieved 15 November 2020.
Categories: