Difference between revisions of "Template:Infobox MLB player"
Jump to navigation
Jump to search
imported>Bucs |
imported>Mscuthbert (added Teams, more docs) |
||
| Line 30: | Line 30: | ||
|draftyear= | |draftyear= | ||
|draftteam= | |draftteam= | ||
| + | |statyear= | ||
| + | |stat1label= | ||
| + | |stat1value= | ||
| + | |stat2label= | ||
| + | |stat2value= | ||
| + | |teams= | ||
}}</pre> | }}</pre> | ||
==Parameter Descriptions== | ==Parameter Descriptions== | ||
| + | Note that all of these parameters are optional--it is better not to | ||
| + | include one than to include misleading or incomplete information | ||
| + | (e.g., if the player's salary includes unusual components that make it | ||
| + | hard to accurately calculate--better to leave it blank than fill it in). | ||
| + | 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. | ||
| + | |||
*bgcolor1= | *bgcolor1= | ||
*width= | *width= | ||
| Line 59: | Line 72: | ||
*draftyear= | *draftyear= | ||
*draftteam= | *draftteam= | ||
| + | *statyear=A 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= | ||
| + | *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. | ||
==microformat== | ==microformat== | ||
| Line 79: | Line 98: | ||
| colspan="2" style="text-align:center;" | [[{{{debutdate}}}]], [[{{{debutyear}}}]] for the {{{debutteam}}} | | colspan="2" style="text-align:center;" | [[{{{debutdate}}}]], [[{{{debutyear}}}]] for the {{{debutteam}}} | ||
|- | |- | ||
| − | {{#if:{{{statyear|}}}|<tr style="background:{{{bgcolor1}}};"><th colspan="2" style="text-align:center;"><span style="color:{{{textcolor1}}};">Selected MLB statistics <br/>(through {{{statyear}}})</span></th></tr> }}{{#if:{{{stat1label|}}}|<tr><th style="text-align:right">{{{stat1label}}} </th><td> {{{stat1value}}}</td></tr> }}{{#if:{{{stat2label|}}}|<tr><th style="text-align:right">{{{stat2label}}} </th><td> {{{stat2value}}}</td></tr> }}{{#if:{{{stat3label|}}}|<tr><th style="text-align:right">{{{stat3label}}} </th><td> {{{stat3value}}}</th></tr> }}{{#if:{{{stat4label|}}}|<tr><th style="text-align:right">{{{stat4label}}} </th><td> {{{stat4value}}}</th></tr> }}{{#if:{{{stat5label|}}}|<tr><th style="text-align:right">{{{stat5label}}} </th><td> {{{stat5value}}}</th></tr> }}{{#if:{{{stat6label|}}}|<tr><th style="text-align:right">{{{stat6label}}} </th><td> {{{stat6value}}}</th></tr> }}{{#if:{{{awards|}}}|<tr style="background:{{{bgcolor2}}};"><th colspan="2" style="text-align:center;"><span style="color:{{{textcolor2}}};">Awards</span></th></tr><tr><td colspan="2">{{{awards}}}</td></tr> }}{{#if:{{{formerteams|}}}|<tr style="background:{{{bgcolor1}}};"><th colspan="2" style="text-align:center;"><span style="color:{{{textcolor2}}};">Former teams</span></th></tr> }}{{#if:{{{formerteams|}}}|<tr><td colspan="2">{{{formerteams}}}</td></tr> }} | + | {{#if:{{{statyear|}}}|<tr style="background:{{{bgcolor1}}};"><th colspan="2" style="text-align:center;"><span style="color:{{{textcolor1}}};">Selected MLB statistics <br/>(through {{{statyear}}})</span></th></tr> }}{{#if:{{{stat1label|}}}|<tr><th style="text-align:right">{{{stat1label}}} </th><td> {{{stat1value}}}</td></tr> }}{{#if:{{{stat2label|}}}|<tr><th style="text-align:right">{{{stat2label}}} </th><td> {{{stat2value}}}</td></tr> }}{{#if:{{{stat3label|}}}|<tr><th style="text-align:right">{{{stat3label}}} </th><td> {{{stat3value}}}</th></tr> }}{{#if:{{{stat4label|}}}|<tr><th style="text-align:right">{{{stat4label}}} </th><td> {{{stat4value}}}</th></tr> }}{{#if:{{{stat5label|}}}|<tr><th style="text-align:right">{{{stat5label}}} </th><td> {{{stat5value}}}</th></tr> }}{{#if:{{{stat6label|}}}|<tr><th style="text-align:right">{{{stat6label}}} </th><td> {{{stat6value}}}</th></tr> }}{{#if:{{{awards|}}}|<tr style="background:{{{bgcolor2}}};"><th colspan="2" style="text-align:center;"><span style="color:{{{textcolor2}}};">Awards</span></th></tr><tr><td colspan="2">{{{awards}}}</td></tr> }}{{#if:{{{formerteams|}}}|<tr style="background:{{{bgcolor1}}};"><th colspan="2" style="text-align:center;"><span style="color:{{{textcolor2}}};">Former teams</span></th></tr> }}{{#if:{{{formerteams|}}}|<tr><td colspan="2">{{{formerteams}}}</td></tr> }}{{#if:{{{teams|}}}|<tr style="background:{{{bgcolor1}}};"><th colspan="2" style="text-align:center;"><span style="color:{{{textcolor2}}};">Teams</span></th></tr> }}{{#if:{{{teams|}}}|<tr><td colspan="2">{{{teams}}}</td></tr> }} |
|}<noinclude> | |}<noinclude> | ||
| Line 361: | Line 380: | ||
stat3label=[[Home run|Home runs]]| | stat3label=[[Home run|Home runs]]| | ||
stat3value=233| | stat3value=233| | ||
| − | + | teams=<nowiki></nowiki> | |
| − | * | + | *First Team Name ([[2000 in baseball|2000]]–[[2003 in baseball|2003]]) |
| + | *Second Team Name ([[2003 in baseball|2003]]–[[2004 in baseball|2004]]) | ||
| + | *Current Team Name ([[2005 in baseball|2005]]–present | ||
}} | }} | ||
| Line 370: | Line 391: | ||
textcolor1=white| | textcolor1=white| | ||
textcolor2=white| | textcolor2=white| | ||
| − | name=No | + | name=No Teams Listed| |
image=Baseball (ball) closeup.jpg| | image=Baseball (ball) closeup.jpg| | ||
caption=Caption| | caption=Caption| | ||
| Line 408: | Line 429: | ||
debutyear=2000| | debutyear=2000| | ||
debutteam=Team Name| | debutteam=Team Name| | ||
| − | + | teams=<nowiki></nowiki> | |
| − | * | + | *First Team Name ([[2000 in baseball|2000]]–[[2003 in baseball|2003]]) |
| + | *Second Team Name ([[2003 in baseball|2003]]–[[2004 in baseball|2004]]) | ||
| + | *Current Team Name ([[2005 in baseball|2005]]–present | ||
}} | }} | ||
| Line 417: | Line 440: | ||
textcolor1=white| | textcolor1=white| | ||
textcolor2=white| | textcolor2=white| | ||
| − | name=No Stats, No | + | name=No Stats, No Teams| |
image=Baseball (ball) closeup.jpg| | image=Baseball (ball) closeup.jpg| | ||
caption=Caption| | caption=Caption| | ||
| Line 453: | Line 476: | ||
stat2label=[[Run batted in|Runs batted in]]| | stat2label=[[Run batted in|Runs batted in]]| | ||
stat2value=586| | stat2value=586| | ||
| − | + | teams=<nowiki></nowiki> | |
| − | * | + | *First Team Name ([[2000 in baseball|2000]]–[[2003 in baseball|2003]]) |
| − | + | *Second Team Name ([[2003 in baseball|2003]]–[[2004 in baseball|2004]]) | |
| − | + | *Current Team Name ([[2005 in baseball|2005]]–present | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | * | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}} | }} | ||
| Line 526: | Line 505: | ||
stat3label=[[Home run|Home runs]]| | stat3label=[[Home run|Home runs]]| | ||
stat3value=233| | stat3value=233| | ||
| − | + | teams=<nowiki></nowiki> | |
| − | * | + | *First Team Name ([[2000 in baseball|2000]]–[[2003 in baseball|2003]]) |
| + | *Second Team Name ([[2003 in baseball|2003]]–[[2004 in baseball|2004]]) | ||
| + | *Current Team Name ([[2005 in baseball|2005]]–present | ||
}} | }} | ||
| Line 551: | Line 532: | ||
stat3label=[[Home run|Home runs]]| | stat3label=[[Home run|Home runs]]| | ||
stat3value=233| | stat3value=233| | ||
| − | + | teams=<nowiki></nowiki> | |
| − | * | + | *First Team Name ([[2000 in baseball|2000]]–[[2003 in baseball|2003]]) |
| + | *Second Team Name ([[2003 in baseball|2003]]–[[2004 in baseball|2004]]) | ||
| + | *Current Team Name ([[2005 in baseball|2005]]–present | ||
}} | }} | ||
Revision as of 19:33, 23 May 2007
Usage
Copy and paste the template below:
{{Infobox MLB Player
|bgcolor1=
|width=
|bgcolor2=
|textcolor1=
|textcolor2=
|image=
|name=
|position=
|team=
|number=
|bats=
|throws=
|feet=
|inches=
|birthdate=
|place=
|College=
|salary=
|debutdate=
|debutyear=
|debutteam=
|draftnumber=
|draftround=
|height=
|weight=
|draftyear=
|draftteam=
|statyear=
|stat1label=
|stat1value=
|stat2label=
|stat2value=
|teams=
}}
Parameter Descriptions
Note that all of these parameters are optional--it is better not to include one than to include misleading or incomplete information (e.g., if the player's salary includes unusual components that make it hard to accurately calculate--better to leave it blank than fill it in). 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.
- bgcolor1=
- width=
- bgcolor2= See the color table below
- textcolor1= See the color table below
- textcolor2= See the color table below
- image=Filename of the image of the player (not preceeded by "Image:")
- name=
- position= The position primarily played by the player
- team= current club played for
- number=
- bats=
- throws=
- feet=
- inches=
- birthdate=
- place=
- College=
- salary=
- debutdate=
- debutyear=
- debutteam=
- draftnumber=
- draftround=
- height=
- weight=
- draftyear=
- draftteam=
- statyear=A 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=
- 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.
microformat
| {{{team}}} — No. – | |
| [[{{{position}}}]] | |
| Bats: {{{bats}}} | Throws: {{{throws}}} |
| Major League Baseball debut | |
|---|---|
| [[{{{debutdate}}}]], [[{{{debutyear}}}]] for the {{{debutteam}}} | |
| 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 | |||
| 100px Caption | |
|---|---|
| Team Name — No. 99 | |
| Position | |
| Bats: Bats | Throws: Throws |
| Major League Baseball debut | |
| June 1, 2000 for the Team Name | |
| Selected MLB statistics (through 2005) | |
| Batting average | .340 |
| Runs batted in | 586 |
| Home runs | 233 |
| Teams | |
| 100px Caption | |
|---|---|
| Team Name — No. 99 | |
| Position | |
| Bats: Bats | Throws: Throws |
| Major League Baseball debut | |
| June 1, 2000 for the Team Name | |
| Selected MLB statistics (through 2005) | |
| Batting average | .340 |
| Runs batted in | 586 |
| Home runs | 233 |
| 100px Caption | |
|---|---|
| Team Name — No. 99 | |
| Position | |
| Bats: Bats | Throws: Throws |
| Major League Baseball debut | |
| June 1, 2000 for the Team Name | |
| Teams | |
| 100px Caption | |
|---|---|
| Team Name — No. 99 | |
| Position | |
| Bats: Bats | Throws: Throws |
| Major League Baseball debut | |
| June 1, 2000 for the Team Name | |
| 100px Caption | |
|---|---|
| Team Name — No. 99 | |
| Position | |
| Bats: Bats | Throws: Throws |
| Major League Baseball debut | |
| June 1, 2000 for the Team Name | |
| Selected MLB statistics (through 2005) | |
| Batting average | .340 |
| Runs batted in | 586 |
| Teams | |
| 100px | |
|---|---|
| Team Name — No. 99 | |
| Position | |
| Bats: Bats | Throws: Throws |
| Major League Baseball debut | |
| June 1, 2000 for the Team Name | |
| Selected MLB statistics (through 2005) | |
| Batting average | .340 |
| Runs batted in | 586 |
| Home runs | 233 |
| Teams | |
| Team Name — No. 99 | |
| Position | |
| Bats: Bats | Throws: Throws |
| Major League Baseball debut | |
|---|---|
| June 1, 2000 for the Team Name | |
| Selected MLB statistics (through 2005) | |
| Batting average | .340 |
| Runs batted in | 586 |
| Home runs | 233 |
| Teams | |
| Team Name — No. 99 | |
| Position | |
| Bats: Bats | Throws: Throws |
| Major League Baseball debut | |
|---|---|
| June 1, 2000 for the Team Name | |