Template:Infobox MLB player

From Sydapedia
Revision as of 17:46, 1 August 2008 by SydLexia (talk | contribs) (New page: {| class="infobox bordered vcard" style="width: 25em; text-align: left; font-size: 95%;" ! colspan="2" style="text-align:center; font-size:larger;" class="fn" | {{{name}}} |- {{#if:{{{imag...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
{{{name}}}
[[Image:{{{image}}}|200px]]
{{{caption}}}
{{{team}}} — No. --
[[{{{position}}}]]
{{{positionplain}}}
Born: {{{birthdate}}}
{{{birthplace}}}
Bats: {{{bats}}} Throws: {{{throws}}} 
Major League Baseball debut
[[{{{debutdate}}}]], [[{{{debutyear}}}]] for the {{{debutteam}}}
Selected MLB statistics
(through {{{statyear}}})
{{{stat1label}}}    {{{stat1value}}}
{{{stat2label}}}    {{{stat2value}}}
{{{stat3label}}}    {{{stat3value}}}
{{{stat4label}}}    {{{stat4value}}}
{{{stat5label}}}    {{{stat5value}}}
{{{stat6label}}}    {{{stat6value}}}
Teams
{{{teams}}}
Highlights and awards
{{{awards}}}
Member of the National
20px 20px 20px Baseball Hall of Fame 20px 20px 20px
Elected    {{{hofdate}}}
Vote    {{{hofvote}}}
Election Method    {{{hofmethod}}}

If you want to make any changes here, please use /sandbox first.

Note: Team colors are now added to the infobox automatically when a team is entered into the team field. The colors are taken from Template:MLBPrimaryColor, Template:MLBSecondaryColor, Template:MLBAltPrimaryColor and Template:MLBAltSecondaryColor.

Template:Template doc page transcluded

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.

fr:Modèle:Infobox Joueur de baseball ja:Template:Infobox baseball player pt:Predefinição:Info/Beisebolista zh:Template:Infobox MLB player