Template:Infobox MLB player

From Sydapedia
Jump to: navigation, search
<th colspan="2" style="text-align:center;">[[Image:{{{image}}}|200px]]
{{{caption}}}</th> <th colspan="2" style="text-align:center;">Born: {{{birthdate}}}
{{{birthplace}}}</th> <th colspan="2" style="text-align:center; background: #dcdcdc;">Selected MLB statistics
(through {{{statyear}}})
</th><tr><th style="text-align:right">{{{stat1label}}}  </th><td>  {{{stat1value}}}</td></tr><tr><th style="text-align:right">{{{stat2label}}}  </th><td>  {{{stat2value}}}</td></tr><tr><th style="text-align:right">{{{stat3label}}}  </th><td>  {{{stat3value}}}</th></tr><tr><th style="text-align:right">{{{stat4label}}}  </th><td>  {{{stat4value}}}</th></tr><tr><th style="text-align:right">{{{stat5label}}}  </th><td>  {{{stat5value}}}</th></tr><tr><th style="text-align:right">{{{stat6label}}}  </th><td>  {{{stat6value}}}</th></tr><tr><th colspan="2" style="text-align:center; background: #dcdcdc;">Teams</th></tr><tr><td colspan="2">{{{teams}}}</td></tr><tr><th colspan="2" style="text-align:center; background: #dcdcdc;">Highlights and awards</th></tr><tr><td colspan="2">{{{awards}}}</td></tr><tr><th colspan="2" style="text-align:center; background:#A50024;">Member of the National</th></tr><tr><th colspan="2" style="text-align:center; background:#11225b;">20px20px20pxBaseball Hall of Fame20px20px20px</th></tr><tr><th style="text-align:right">Elected  </th><td>  {{{hofdate}}}</td></tr><tr><th style="text-align:right">Vote  </td><td>  {{{hofvote}}}</td></tr><tr><th style="text-align:right">Election Method  </th><td>  {{{hofmethod}}}</td></tr>
{{{name}}}
{{{team}}} — No. --
[[{{{position}}}]]
{{{positionplain}}}
Bats: {{{bats}}} Throws: {{{throws}}} 
Major League Baseball debut
[[{{{debutdate}}}]], [[{{{debutyear}}}]] for the {{{debutteam}}}

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   =
}}

Contents


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

<th colspan="2" style="text-align:center;">100px
Caption</th> <th colspan="2" style="text-align:center; background: #dcdcdc;">Selected MLB statistics
(through 2005)
</th><tr><th style="text-align:right">Batting average  </th><td>  .340</td></tr><tr><th style="text-align:right">Runs batted in  </th><td>  586</td></tr><tr><th style="text-align:right">Home runs  </th><td>  233</th></tr><tr><th colspan="2" style="text-align:center; background: #dcdcdc;">Teams</th></tr><tr><td colspan="2">
  • First Team Name (20002003)
  • Second Team Name (20032004)
  • Current Team Name (2005–present)</td></tr><tr><th colspan="2" style="text-align:center; background:#A50024;">Member of the National</th></tr><tr><th colspan="2" style="text-align:center; background:#11225b;">20px 20px 20px Baseball Hall of Fame 20px 20px 20px</th></tr><tr><th style="text-align:right">Elected  </th><td>  March 20, 2007</td></tr><tr><th style="text-align:right">Vote  </td><td>  88% (first ballot)</td></tr><tr><th style="text-align:right">Election Method  </th><td>  Veteran's Committee</td></tr>
All Options On (+HoF)
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
<th colspan="2" style="text-align:center;">100px
Caption</th> <th colspan="2" style="text-align:center; background: #dcdcdc;">Selected MLB statistics
(through 2005)
</th><tr><th style="text-align:right">Batting average  </th><td>  .340</td></tr><tr><th style="text-align:right">Runs batted in  </th><td>  586</td></tr><tr><th style="text-align:right">Home runs  </th><td>  233</th></tr>
No Teams Listed
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
<th colspan="2" style="text-align:center;">100px
Caption</th> <tr><th colspan="2" style="text-align:center; background: #dcdcdc;">Teams</th></tr><tr><td colspan="2">
  • First Team Name (20002003)
  • Second Team Name (20032004)
  • Current Team Name (2005–present)</td></tr>
No Stats
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
<th colspan="2" style="text-align:center;">100px
Caption</th>
No Stats, No Teams
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
<th colspan="2" style="text-align:center;">100px
Caption</th> <th colspan="2" style="text-align:center; background: #dcdcdc;">Selected MLB statistics
(through 2005)
</th><tr><th style="text-align:right">Batting average  </th><td>  .340</td></tr><tr><th style="text-align:right">Runs batted in  </th><td>  586</td></tr><tr><th colspan="2" style="text-align:center; background: #dcdcdc;">Teams</th></tr><tr><td colspan="2">
  • First Team Name (20002003)
  • Second Team Name (20032004)
  • Current Team Name (2005–present</td></tr>
Two Stats
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
<th colspan="2" style="text-align:center;">100px
</th> <th colspan="2" style="text-align:center; background: #dcdcdc;">Selected MLB statistics
(through 2005)
</th><tr><th style="text-align:right">Batting average  </th><td>  .340</td></tr><tr><th style="text-align:right">Runs batted in  </th><td>  586</td></tr><tr><th style="text-align:right">Home runs  </th><td>  233</th></tr><tr><th colspan="2" style="text-align:center; background: #dcdcdc;">Teams</th></tr><tr><td colspan="2">
  • First Team Name (20002003)
  • Second Team Name (20032004)
  • Current Team Name (2005–present</td></tr>
No Caption
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
<th colspan="2" style="text-align:center; background: #dcdcdc;">Selected MLB statistics
(through 2005)
</th><tr><th style="text-align:right">Batting average  </th><td>  .340</td></tr><tr><th style="text-align:right">Runs batted in  </th><td>  586</td></tr><tr><th style="text-align:right">Home runs  </th><td>  233</th></tr><tr><th colspan="2" style="text-align:center; background: #dcdcdc;">Teams</th></tr><tr><td colspan="2">
  • First Team Name (20002003)
  • Second Team Name (20032004)
  • Current Team Name (2005–present)</td></tr>
No Image
Team Name — No. 99
Position
Bats: Bats Throws: Throws 
Major League Baseball debut
June 12000 for the Team Name
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

Button to indicate the presence of an hCard 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


Personal tools