Template:Infobox MLB player/doc

From Sydapedia
Jump to navigationJump to search
This is a documentation subpage for Template:Infobox MLB player.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Infobox MLB player.

Blank template

Copy and paste the template below:

{{Infobox MLB player
| name        =
| image       =
| width       =
| caption     =
| team        =
| number      =
| position    =
| positionplain = 
| birthdate   =
| bats        =
| throws      =
| debutdate   =
| debutyear   =
| debutteam   =
| statyear    =
| stat1label  =
| stat1value  =
| stat2label  =
| stat2value  =
| stat3label  =
| stat3value  =
| stat4label  =
| stat4value  =
| stat5label  =
| stat5value  =
| stat6label  =
| stat6value  =
| awards      =
| teams       =
| hofdate     =
| hofvote     =
| hofmethod   =
}}


Parameter Descriptions

Note that all of these parameters are optional--it is better not to include one than to include misleading or incomplete information. For a nineteenth-century player about whom almost nothing is known, it may be better to forgo the infobox completely than to have an empty skeleton.

  • name = name of player
  • image = filename of the image of the player, not preceded by "Image:" (optional)
  • width = width of image in pixels, don't use unless smaller than 200 (optional, defaults to 200)
  • caption = caption text for image (optional)
  • team = current team
  • number = current uniform number
  • position = the position primarily played by the player: Pitcher, Catcher, First baseman, Second baseman, Third baseman, Shortstop, Left fielder, Center fielder or Right fielder.
  • birthdate = {{birth date and age|1950|1|30}}
  • bats = Left / Right
  • throws = Left / Right
  • debutdate = debut date
  • debutyear = debut year
  • debutteam = debut team
  • statyear = the year or date that the stats listed below apply to
  • stat1label = the most important statistic for evaluating this player. Will vary according to what the player is most well-known for.
  • stat1value = the value of that statistic.
  • stat2label = another statistic (up to six can be used--in exceptional cases!)
  • stat2value = etc.
  • stat3label =
  • stat3value =
  • stat4label =
  • stat4value =
  • stat5label =
  • stat5value =
  • stat6label =
  • stat6value =
  • awards = list of awards
  • teams = list of teams (former and present) the player has played for, with their years. Note that the "formerteams" option is deprecated and should be converted to teams.
  • hofdate = if the player is a member of the National Baseball Hall of Fame, enter the date (or at least year) that he was elected. Setting this tag will make a Hall of Fame banner appear. (note that Template:Tl2 also has these fields and may be more appropriate)
  • hofvote = put details of the HoF vote (if any) here.
  • hofmethod = put details of the method elected (veteran's committee, Negro league, etc.) here. Leave blank if a standard vote

Examples

All Options On (+HoF)
100px
Caption
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
Selected MLB statistics
(through 2005)
Batting average    .340
Runs batted in    586
Home runs    233
Teams
Member of the National
20px 20px 20px Baseball Hall of Fame 20px 20px 20px
Elected    March 20, 2007
Vote    88% (first ballot)
Election Method    Veteran's Committee
No Teams Listed
100px
Caption
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
Selected MLB statistics
(through 2005)
Batting average    .340
Runs batted in    586
Home runs    233
No Stats
100px
Caption
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
Teams
No Stats, No Teams
100px
Caption
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
Two Stats
100px
Caption
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
Selected MLB statistics
(through 2005)
Batting average    .340
Runs batted in    586
Teams
No Caption
100px
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
Selected MLB statistics
(through 2005)
Batting average    .340
Runs batted in    586
Home runs    233
Teams
No Image
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
Selected MLB statistics
(through 2005)
Batting average    .340
Runs batted in    586
Home runs    233
Teams
All Options Off
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name


See also

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 Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.

Date-of-birth ("bday") parameters will only be included in the microformat if {{Birth date}} or {{Birth date and age}} are used in the infobox.

hCard uses HTML classes including:

  • adr
  • bday
  • county-name
  • fn (required)
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • nickname
  • note
  • org
  • role
  • vcard

Please do not rename or remove these classes.