Template:Infobox basketball biography/doc

From The Democratikan Wiki
Revision as of 02:58, 15 February 2024 by Akarea (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

Blank template with parameters for active players

<syntaxhighlight lang="wikitext">

StatsTemplate:EditAtWikidata at NBA.com
StatsTemplate:EditAtWikidata at Basketball-Reference.com
</syntaxhighlight>

Blank template with parameters for retired players

<syntaxhighlight lang="wikitext">

StatsTemplate:EditAtWikidata at NBA.com
StatsTemplate:EditAtWikidata at Basketball-Reference.com
</syntaxhighlight>

Blank template with parameters for coaches

<syntaxhighlight lang="wikitext">

StatsTemplate:EditAtWikidata at NBA.com
StatsTemplate:EditAtWikidata at Basketball-Reference.com
</syntaxhighlight>

Blank template with all parameters

<syntaxhighlight lang="wikitext">

StatsTemplate:EditAtWikidata at NBA.com
StatsTemplate:EditAtWikidata at Basketball-Reference.com
</syntaxhighlight>

Height and weight units

To specify the players height in feet and inches, and weight in pounds, use <syntaxhighlight lang="wikitext"> | height_ft = | height_in = | weight_lb = </syntaxhighlight> For centimeters and kilograms, use <syntaxhighlight lang="wikitext"> | height_cm = | weight_kg = </syntaxhighlight> For meters and kilograms, use <syntaxhighlight lang="wikitext"> | height_m = | weight_kg = </syntaxhighlight> To control the order that the provided and converted measurements are shown <syntaxhighlight lang="wikitext"> | height_order = | weight_order = </syntaxhighlight>

Parameters

Parameters Usage Note
embed Set to yes if infobox is used as a module of {{infobox person}} or {{Infobox officeholder}} Optional
name The person's name, in first-last format. Do not put nicknames, sourced or not. Optional
image The person's image. Optional
alt Alternate text for the image. Highly suggested to use with any image. Click the link for more info on writing alt text. Optional
image_size The size of the image. Use only when there is an image Optional
caption The caption of the image. Write a concise and accurate statement. Image with only a person's face usually do not need a caption. Optional
number The person's current jersey number.
team The person's current team. Do not put the person's former team(s), as they belong to teamN or cteamN (below). Do not wikilink the team name. Put in Free agent if a player is a free agent. If a person has retired, this parameter should be left empty. Optional
position The person's position. For a player's position, use one of the five official positions. Avoid using abbreviations. Optional
league The person's current league. Requires "team" to be set to be displayed. Optional
conference The person's current conference. Requires "team" to be set and "league" not set to be displayed. Optional
birth_date The person's birth date.
birth_place The person's birth place. Typically <city>, <state>, <country>.<ref>Special:PermanentLink/1086423835#INFONAT</ref>
death_date The person's death date. Optional
death_place The person's death place. Typically <city>, <state>, <country>. Optional
nationality The person's respective nationality. Avoid using if can be inferred from country of birth, per WP:INFONAT. Optional
height_ft/height_in The player's height in feet and inches. When specifying, round to the nearest inch. For example, for a player 6 ft 11 in (2.11 m) tall, the height_ft parameter should show "6", the height_in parameter "11". Use either height_ft/height_in or height_cm or height_m but not more than one type at the same time.
height_cm The player's height in centimeters. When specifying, round to the nearest cm. For example, for a player 211 cm (6 ft 11 in) tall, the height_cm parameter should show "211". Use either height_cm or height_m or height_ft/height_in but not more than one type at the same time.
height_m The player's height in meters. When specifying, use two digits of precision. For example, for a player 2.11 m (6 ft 11 in) tall, the height_m parameter should show "2.11", using a decimal point (not a comma). Use either height_m or height_cm or height_ft/height_in but not more than one type at the same time.
height_order Height is shown in the provided units first. Set to flip to show the converted units first. Optional
height_footnote Use only if an additional note needs to be placed next to the height, e.g. an explanatory note for a disputed height. Optional
weight_lb The player's weight in pounds. Use either weight_lb or weight_kg but not both.
weight_kg The player's weight in kilograms. Use either weight_kg or weight_lb but not both.
weight_order Weight is shown in the provided units first. Set to flip to show the converted units first. Optional
weight_footnote Use only if an additional note needs to be placed next to the weight, e.g. an explanatory note for a disputed weight. Optional
high_school The person's high school. Optional
college The college(s) the person attended prior to a professional basketball career. Players should follow the format:
[[college basketball team article|college name]]([[season|year]]–[[season|year]])
If an article for the college basketball team does not exist, wikilink to the school's athletic team article, which is usually [[<school name> <team name>]] e.g. [[Loyola Marymount Lions|Loyola Marymount]]. Otherwise, wikilink to the school's article. If the person did not play college basketball, simply wikilink to the school's article. College years represent the years the player played varsity basketball for the school. Redshirt or freshman team years should not be included in the range.
Optional
draft_year The year in which the player entered the draft. Optional
draft_round The player's draft round. If a player was not drafted, this parameter is not necessary. Optional
draft_pick The player's draft pick number. If a player was not drafted, this parameter is not necessary. If a player was an NBA territorial pick, then put [[NBA territorial pick|territorial pick]]. Optional
draft_team The player's draft team. If a player was not drafted, this parameter is not necessary. Optional
draft_league The league of the player's draft team. If a player was not drafted, this parameter is not necessary. Default is NBA. The name should match the league name in draft articles, e.g. "WNBA" for WNBA draft and 2000 WNBA draft. The field should only be used for the top-level draft in a given country, not for minor-leagues. Optional
career_start The year in which the player started their career
career_end The year in which the player ended their career
career_position The position(s) played while a player was active. Used when a former player is now an active coach. Former pro players typically only list their pro positions.
career_number The number(s) worn while a player was active. Used when a former player is now an active coach, or an active player that has worn other numbers. Former pro players typically only list their pro numbers.
coach_start The year in which the person's coaching career began.
coach_end The year in which the person's coaching career ended.
years1, team1,
years2, team2,
...
years40, team40
All the team(s) the person has played for during their career.
Should follow the format:
|years1 = [[season|year]]–[[season|year]] |team1 = [[Team1]]
|years2 = [[season|year]]–[[season|year]] |team2 = [[Team2]]
...
Separate stints with the same team should be separate team/year entries. Do not link the same team multiple times.
A stint with a team that moved or was renamed should be listed as a single entry:
|teamN = [[TeamN]] / [[RenamedTeamN]]
An NBA player in the NBA G League on assignment should be listed in the following format:
|years1 = [[season|year]]–[[season|year]] |team1 = [[NBA team]]
|years2 = [[season|year]]–[[season|year]] |team2 = →[[G League team]]
If a player is in the G League but does not have an NBA contract, no → should be used for the team entry.
All stints for professional minor league and overseas leagues should be listed.
cyears1, cteam1,
cyears2, cteam2,
...
cyears15, cteam15
All the team(s) the person has coached for during their career.<ref group="">There is no consensus to include national teams.<ref>Wikipedia talk:WikiProject Basketball/Archive 12#National teams in infoboxes</ref></ref> Optional
highlights All notable highlights and awards that the person has won. Should follow the format:

* #× [[Award 1]] ([[season|year]], [[season|year]])
* #× [[Award 2]] ([[season|year]], [[season|year]])

Omit #× if the award is won only once.
To denote consecutive years, use endash instead of comma and omit the year(s) in between.
If possible, use the full name of the award.
If a separate article exists for the highlight's specific year, link to that article instead of the general season:
*2× [[List of NBA All-Stars|NBA All-Star]] ([[2005 NBA All-Star Game|2005]], [[2011 NBA All-Star Game|2011]])
Medals shall be listed under medal_templates and not under highlights.
Players with 5+ professional highlights should limit college highlights to NCAA championships, awards at Template:Men's college basketball award navbox, and NCAA Tournament MOPs.
For NBA biographies, see Wikipedia:WikiProject National Basketball Association/Style advice for more conventions on highlights.

Optional
stat1label, stat1value,
stat2label, stat2value,
stat3label, stat3value
Career statistics for retired players i.e. when "career_end" is set Optional
stats_league League(s) for career statistics specified Optional
bbr For NBA players, the text between the last slash and .html in the URL of the player's basketball-reference.com profile (linked at https://www.basketball-reference.com/players/). Optional
bbr_wnba For WNBA players, the text between the last slash and .html in the URL of the player's basketball-reference.com profile (linked at https://www.basketball-reference.com/wnba/players/). Optional
nbanew The numeric id after https://nba.com/player/ in the URL of the player's NBA.com profile (linked at nba.com/players). The default is Wikidata's (P3647)
Optional
wnba_profile The text between the last and second-last slashes in the URL of the player's WNBA.com profile (linked at wnba.com/playerfile).
Optional
cstats_league1, cwin1, closs1
cstats_league2, cwin2, closs2
...
cstats_league5, cwin5, closs5
Win-loss record per league coached for retired coaches i.e. when coach_end is set Optional
HOF/HOF_player/HOF_coach The text behind the last slash in the URL of the person's Naismith Memorial Basketball Hall of Fame profile
For individual inducted as player, use HOF_player
For individual inducted as coach, use HOF_coach
Optional
WBHOF The text between the last slash in the URL of the person's Women's Basketball Hall of Fame profile and ".html" (e.g. "Lobo" for http://www.wbhof.com/Lobo.html) Optional
FIBA_HOF_player The name (with hyphens) in the URL of the player's FIBA Hall of Fame profile Optional
CBBASKHOF_year Year inducted into the National Collegiate Basketball Hall of Fame Optional
medal_templates For medal templates only Optional

Examples

Kevin Garnett
File:Kevin Garnett 2008-01-13.jpg
Garnett with the Boston Celtics in 2008
No. 21 – Minnesota Timberwolves
PositionPower forward / Center
LeagueNBA
Personal information
Born (1976-05-19) May 19, 1976 (age 48)
Greenville, South Carolina, U.S.
Listed height6 ft 11 in (2.11 m)
Listed weight240 lb (109 kg)
Career information
High school
NBA draft1995: 1st round, 5th overall pick
Selected by the Minnesota Timberwolves
Playing career1995–present
Career history
19952007Minnesota Timberwolves
20072013Boston Celtics
20132015Brooklyn Nets
2015–presentMinnesota Timberwolves
Career highlights and awards
Stats at NBA.com
Stats at Basketball-Reference.com
Medals
Men's basketball
Representing the File:Flag of the United States.svg United States
Olympic Games
Gold medal – first place 2000 Sydney Team Event
FIBA Americas Championship
Gold medal – first place 1999 San Juan

<syntaxhighlight lang="wikitext" style="overflow: auto">

Kevin Garnett
File:Kevin Garnett 2008-01-13.jpg
Garnett with the Celtics in 2008
No. 21 – Minnesota Timberwolves
PositionPower forward
LeagueNBA
Personal information
Born (1976-05-19) May 19, 1976 (age 48)
Greenville, South Carolina, U.S.
Listed height6 ft 11 in (2.11 m)
Listed weight253 lb (115 kg)
Career information
High schoolMauldin High School
Farragut Career Academy
NBA draft1995: 1st round, 5th overall pick
Selected by the Minnesota Timberwolves
Playing career1995–present
Career history
1995–2007Minnesota Timberwolves
2007–2013Boston Celtics
2013–2015Brooklyn Nets
2015–presentMinnesota Timberwolves
Career highlights and awards
Stats at NBA.com
StatsTemplate:EditAtWikidata at Basketball-Reference.com

</syntaxhighlight>

Microformats

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 Wikipedia 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 Wikipedia, 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.

Template Data

TemplateData documentation used by VisualEditor and other tools
See a monthly parameter usage report for Template:Infobox basketball biography in articles based on its TemplateData.

TemplateData for Infobox basketball biography

An infobox for basketball biography.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The person's name, in first-last format. Do not put nicknames, sourced or not.

Stringoptional
Imageimage

The person's image.

Fileoptional
Image sizeimage_size

The size of the image. Use only when there is an image.

Numberoptional
Captioncaption

The caption of the image. Write a concise and accurate statement. Image with only a person's face usually do not need a caption.

Stringoptional
Numbernumber

The person's current jersey number.

Numberoptional
Teamteam

The person's current team. Do not put the person's former team(s), as they belong to teamN or cteamN (below). Do not wikilink the team name. Put in Free agent if a player is a free agent. If a person has retired, this parameter should be left empty.

Stringoptional
Positionposition

The person's position. For a player's position, use one of the five official positions. Avoid using abbreviations.

Stringoptional
Leagueleague

The person's current league. Requires 'team' to be set to be displayed.

Stringoptional
Conferenceconference

The person's current conference. Requires 'team' to be set and 'league' not set to be displayed.

Stringoptional
Birth datebirth_date

The person's birth date.

Stringoptional
Birth placebirth_place

The person's birth place. Typically <city>, <state>, <country>.

Stringoptional
death datedeath_date

The person's death date.

Stringoptional
Death placedeath_place

The person's birth place. Typically <city>, <state>, <country>.

Stringoptional
Nationalitynationality

The person's respective nationality. Do not specify if it is consistent with their country of birth.

Stringoptional
Height in feetheight_ft

The player's height in feet when specified in feet and inches. When specifying, round to the nearest inch. For example, for a player 6 ft 11 in (2.11 m) tall, the 'height in feet' parameter should show '6', and the 'height in inches' parameter, '11'. Use either height_ft/height_in or height_cm or height_m but not more than one type at the same time.

Numberoptional
Height in inchesheight_in

The player's height in inches when specifying in feet and inches. When specifying, round to the nearest inch. For example, for a player 6 ft 11 in (2.11 m) tall, the 'height in feet' parameter should show '6', and the 'height in inches' parameter, '11'. Use either height_ft/height_in or height_cm or height_m but not more than one type at the same time.

Numberoptional
Height in centimetersheight_cm

The player's height in centimeters. When specifying, round to the nearest cm. For example, for a player 211 cm (6 ft 11 in) tall, the height_cm parameter should show '211'. Use either height_cm or height_m or height_ft/height_in but not more than one type at the same time.

Numberoptional
Height in metersheight_m

The player's height in meters. When specifying, use two digits of precision. For example, for a player 2.11 m (6 ft 11 in) tall, the height_m parameter should show '2.11', using a decimal point (not a comma). Use either height_m or height_cm or height_ft/height_in but not more than one type at the same time.

Numberoptional
Height display orderheight_order

Height is shown in the provided units first. Set to ''flip'' to show the converted units first.

Stringoptional
Height footnoteheight_footnote

Use only if an additional note needs to be placed next to the height, e.g. an explanatory note for a disputed height.

Stringoptional
Weight in poundsweight_lb

The player's weight in pounds. Use either weight_lb or weight_kg but not both.

Numberoptional
Weight in kilogramsweight_kg

The player's weight in kilograms. Use either weight_kg or weight_lb but not both.

Numberoptional
Weight display orderweight_order

Weight is shown in the provided units first. Set to ''flip'' to show the converted units first.

Stringoptional
High schoolhigh_school

The person's high school.

Stringoptional
Collegecollege

The college(s) the person attended prior to a professional basketball career. Players should follow the format:[[college basketball team article|college name]]([[season|year]]–[[season|year]])If an article for the college basketball team does not exist, wikilink to the school's athletic team article, which is usually [[<school name> <team name>]] e.g. [[Loyola Marymount Lions|Loyola Marymount]]. Otherwise, wikilink to the school's article.

Lineoptional
Draft yeardraft_year

The year in which the player entered the draft.

Stringoptional
Draft rounddraft_round

The player's draft round. If a player was not drafted, this parameter is not necessary.

Stringoptional
Draft pickdraft_pick

The player's draft pick number. If a player was not drafted, this parameter is not necessary. If a player was an NBA territorial pick, then put [[NBA territorial pick|territorial pick]].

Stringoptional
Draft teamdraft_team

The player's draft team. If a player was not drafted, this parameter is not necessary.

Stringoptional
Draft leaguedraft_league

The league of the player's draft team. If a player was not drafted, this parameter is not necessary.

Default
NBA
Stringoptional
Career startcareer_start

The year in which the player started their career

Stringoptional
Career endcareer_end

The year in which the player ended their career

Stringoptional
Career positioncareer_position

The position(s) played while a player was active. Used when a former player is now an active coach. Former pro players typically only list their pro positions.

Stringoptional
Career numbercareer_number

The number(s) worn while a player was active. Used when a former player is now an active coach, or an active player that has worn other numbers. Former pro players typically only list their pro numbers.

Numberoptional
Coach startcoach_start

The year in which the person's coaching career began.

Stringoptional
Coach endcoach_end

The year in which the person's coaching career ended.

Stringoptional
Years and Teamsyears1,team1

All the team(s) the person has played for during their career.Should follow the format:|years1 = [[season|year]]–[[season|year]] | team1 = [[Team1]].

Stringoptional
Coached teams in the yearscyears1,cteam1

All the team(s) the person has coached for during their career.

Stringoptional
Highlightshighlights

All notable highlights and awards that the person has won. Should follow the format: * #× [[Award 1]] ([[season|year]], [[season|year]])-Omit #× if the award is won only once.To denote consecutive years, use endash instead of comma and omit the year(s) in between.If possible, use the full name of the award.

Stringoptional
BBRbbr

For NBA players, the text between the last slash and .html in the URL of the player's basketball-reference.com profile (linked at https://www.basketball-reference.com/players/).

Stringoptional
BBR WNBAbbr_wnba

For WNBA players, the text between the last slash and .html in the URL of the player's basketball-reference.com profile (linked at https://www.basketball-reference.com/wnba/players/).

Stringoptional
NBA profilenbanew

The numeric id after https://nba.com/player/ in the URL of the player's NBA.com profile (linked at [http://www.nba.com/players nba.com/players]).

Stringoptional
WNBA profilewnba_profile

The text between the last and second-last slashes in the URL of the player's WNBA.com profile (linked at wnba.com/playerfile).

Stringoptional
Hall of FameHOF/HOF_player/HOF_coach

The text behind the last slash in the URL of the person's Naismith Memorial Basketball Hall of Fame profile.For individual inducted as player, use HOF_player.For individual inducted as coach, use HOF_coach.

Stringoptional
Women's Hall of FameWBHOF

The text between the last slash in the URL of the person's Women's Basketball Hall of Fame profile and '.html' (e.g. 'Lobo' for http://www.wbhof.com/Lobo.html

Stringoptional
FIBA HOF playerFIBA_HOF_player

The number between the last and second-last slash in the URL of the player's FIBA Hall of Fame profile

Stringoptional
CBBASKHOF yearCBBASKHOF_year

Year inducted into the National Collegiate Basketball Hall of Fame

Stringoptional
Medal templatesmedal_templates

For medal templates only

Stringoptional
Alt text for imagealt

Alt text for the image. For more information, see MOS:ALT.

Stringoptional

Tracking categories

See also

Notes

<references group="" responsive="1"></references>