Template:Infobox MLB player/doc: Difference between revisions
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
| team = |
| team = |
||
| number = |
| number = |
||
| level = |
|||
| position = |
| position = |
||
| positionplain = |
| positionplain = |
||
Line 81: | Line 82: | ||
|- |
|- |
||
|number||current uniform number |
|number||current uniform number |
||
| level |
|||
|- |
|||
|- The current level the player is in (AAA AA A Etc) to be used for minor league players only |
|||
|position||the [[Baseball positions|position]] primarily played by the player: [[Pitcher]], [[Catcher]], [[First baseman]], [[Second baseman]], [[Third baseman]], [[Shortstop]], [[Left fielder]], [[Center fielder]] or [[Right fielder]]. |
|position||the [[Baseball positions|position]] primarily played by the player: [[Pitcher]], [[Catcher]], [[First baseman]], [[Second baseman]], [[Third baseman]], [[Shortstop]], [[Left fielder]], [[Center fielder]] or [[Right fielder]]. |
||
|- |
|- |
||
Line 400: | Line 402: | ||
| team = Team Name |
| team = Team Name |
||
| number = 99 |
| number = 99 |
||
| level = MLB |
|||
| position = Position |
| position = Position |
||
| bats = Bats |
| bats = Bats |
||
Line 434: | Line 437: | ||
| team = Team Name |
| team = Team Name |
||
| number = 99 |
| number = 99 |
||
| level = MLB |
|||
| position = Position |
| position = Position |
||
| bats = Bats |
| bats = Bats |
||
Line 461: | Line 465: | ||
| team = Team Name |
| team = Team Name |
||
| number = 99 |
| number = 99 |
||
| level = MLB |
|||
| position = Position |
| position = Position |
||
| bats = Bats |
| bats = Bats |
||
Line 485: | Line 490: | ||
| team = Team Name |
| team = Team Name |
||
| number = 99 |
| number = 99 |
||
| level = MLB |
|||
| position = Position |
| position = Position |
||
| bats = Bats |
| bats = Bats |
||
Line 505: | Line 511: | ||
| team = Team Name |
| team = Team Name |
||
| number = 99 |
| number = 99 |
||
| level = MLB |
|||
| position = Position |
| position = Position |
||
| bats = Bats |
| bats = Bats |
||
Line 533: | Line 540: | ||
| team = Team Name |
| team = Team Name |
||
| number = 99 |
| number = 99 |
||
| level = MLB |
|||
| position = Position |
| position = Position |
||
| bats = Bats |
| bats = Bats |
||
Line 560: | Line 568: | ||
| team = Team Name |
| team = Team Name |
||
| number = 99 |
| number = 99 |
||
| level = MLB |
|||
| position = Position |
| position = Position |
||
| bats = Bats |
| bats = Bats |
||
Line 587: | Line 596: | ||
| team = Team Name |
| team = Team Name |
||
| number = 99 |
| number = 99 |
||
| level = AAA |
|||
| position = Position |
| position = Position |
||
| bats = Bats |
| bats = Bats |
Revision as of 21:10, 2 September 2009
This is a documentation subpage for Template:Infobox MLB player. It may contain usage information, categories and other content that is not part of the original template page. |
This template can be used to add at-a-glance comparative infoamtion to articles on Major League Baseball players.
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.
Usage
Copy and paste the template below:
{{Infobox MLB player | name = | image = | width = | alt = | caption = | team = | number = | level = | position = | positionplain = | birthdate = | birthplace = | deathdate = | deathplace = | bats = | throws = | debutdate = | debutyear = | debutteam = | finaldate = | finalyear = | finalteam = | statyear = | stat1label = | stat1value = | stat2label = | stat2value = | stat3label = | stat3value = | stat4label = | stat4value = | stat5label = | stat5value = | stat6label = | stat6value = | awards = | teams = | hofdate = | hofvote = | hofmethod = | hoffuture = (set to true if the player has been announced but not inducted) }} |
Parameters
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.
Field Name | Description | ||
---|---|---|---|
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) | ||
alt | alt text for image, for visually impaired readers; see WP:ALT | ||
caption | caption text for image (optional) | ||
team | current team | ||
number | current uniform number | level | |
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 | Use: {{birth date and age|YYYY|MM|DD}} Where YYYY is the year, MM is month, and DD is day | ||
bats | Left, Right, or Unknown | ||
throws | Left, Right, or Unknown | ||
debutdate | debut date (Month and day only) | ||
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 {{Infobox baseball biography}} 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 | ||
hoffuture | declare this variable (any value, but "true" is an obvious choice) for players who have elected to the HoF but who have not yet been inducted. This variable will modify the HoF banner to say "Incoming Member"; the purpose of this is to reduce arguments from editors about whether or not to include the HoF section before the induction date. |
Team | bgcolor1 | bgcolor2 | textcolor1 | textcolor2 | Color Set 1 Example | Color Set 2 Example |
---|---|---|---|---|---|---|
Arizona Diamondbacks | #af0039 | black | white | white | Example | Example |
Atlanta Braves | #0f437c | #af0039 | white | white | Example | Example |
Baltimore Orioles | black | #F87217 | white | white | Example | Example |
Boston Red Sox | #ba313c | #0d2b56 | white | white | Example | Example |
Chicago Cubs | #0e3386 | #d82427 | white | white | Example | Example |
Chicago White Sox | black | silver | white | white | Example | Example |
Cincinnati Reds | #c6011f | black | white | white | Example | Example |
Cleveland Indians | #990000 | #023465 | white | white | Example | Example |
Colorado Rockies | #333366 | black | white | white | Example | Example |
Detroit Tigers | #bd5d29 | #003366 | white | white | Example | Example |
Florida Marlins | #009494 | black | white | white | Example | Example |
Houston Astros | #95322c | black | white | white | Example | Example |
Kansas City Royals | #15317E | #15317E | white | white | Example | Example |
Los Angeles Angels | #ff0000 | #999999 | white | white | Example | Example |
Los Angeles Dodgers | #083c6b | #083c6b | white | white | Example | Example |
Milwaukee Brewers | #0a2252 | #b6922e | white | white | Example | Example |
Minnesota Twins | #072764 | #c6011f | white | white | Example | Example |
New York Mets | #003581 | #ff5700 | white | white | Example | Example |
New York Yankees | #1c2841 | #6d7380 | white | white | Example | Example |
Oakland Athletics | #003831 | gold | white | white | Example | Example |
Philadelphia Phillies | #A50024 | #263473 | white | white | Example | Example |
Pittsburgh Pirates | #e1b81e | black | black | white | Example | Example |
San Diego Padres | #d0ad7f | #000066 | black | white | Example | Example |
San Francisco Giants | #fd5a1e | black | white | white | Example | Example |
Seattle Mariners | #005c5c | #0c2c56 | white | white | Example | Example |
St. Louis Cardinals | #c41e3a | #0a2252 | white | white | Example | Example |
Tampa Ray Devil Bays | #00653A | #151B54 | white | white | Example | Example |
Texas Rangers | #003279 | #bd1021 | white | white | Example | Example |
Toronto Blue Jays | #005ac0 | black | white | white | Example | Example |
Washington Nationals | #ba122b | #11225b | white | white | Example | Example |
No Team / Free Agent | do not specify colors | Example | Example |
Examples
All Options On (+HoF) | |
---|---|
Team Name – No. 99 | |
Position | |
Bats: Bats Throws: Throws | |
debut | |
June 1, 2000, for the Team Name | |
Career statistics (through 2005) | |
Batting average | .340 |
Runs batted in | 586 |
Home runs | 233 |
Teams | |
[[{{{hoflink}}}|Member of the {{{hoftype}}}]] | |
[[{{{hoflink}}}|Baseball Hall of Fame]] | |
Induction | March 20, 2007 |
Vote | 88% (first ballot) |
Election method | Veteran's Committee |
No Teams Listed | |
---|---|
Team Name – No. 99 | |
Position | |
Bats: Bats Throws: Throws | |
debut | |
June 1, 2000, for the Team Name | |
Career statistics (through 2005) | |
Batting average | .340 |
Runs batted in | 586 |
Home runs | 233 |
No Stats | |
---|---|
Team Name – No. 99 | |
Position | |
Bats: Bats Throws: Throws | |
debut | |
June 1, 2000, for the Team Name | |
Teams | |
No Stats, No Teams | |
---|---|
Team Name – No. 99 | |
Position | |
Bats: Bats Throws: Throws | |
debut | |
June 1, 2000, for the Team Name |
Two Stats | |
---|---|
Team Name – No. 99 | |
Position | |
Bats: Bats Throws: Throws | |
debut | |
June 1, 2000, for the Team Name | |
Career statistics (through 2005) | |
Batting average | .340 |
Runs batted in | 586 |
Teams | |
No Caption | |
---|---|
Team Name – No. 99 | |
Position | |
Bats: Bats Throws: Throws | |
debut | |
June 1, 2000, for the Team Name | |
Career 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 | |
debut | |
June 1, 2000, for the Team Name | |
Career 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 | |
debut | |
June 1, 2000, for the Team Name |
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 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.
Redirects
See also