Difference between revisions of "Template:Infobox MLB player"

From blackwiki
Jump to navigation Jump to search
imported>Yanksox
m (why is there a 6 here?)
imported>Ahecht
m (fix redirect)
 
(209 intermediate revisions by 58 users not shown)
Line 1: Line 1:
<noinclude>
+
#REDIRECT [[Template:Infobox baseball biography]]
== Usage ==
 
Copy and paste the template below:
 
<pre>{{Infobox MLB Player
 
|bgcolor1=
 
|width=
 
|bgcolor2=
 
|textcolor1=
 
|textcolor2=
 
|image=
 
|name=
 
|position=
 
|team=
 
|number=
 
|bats=
 
|throws=
 
|feet=
 
|inches=
 
|birthday=
 
|place=
 
|birthyear=
 
|College=
 
|salary=
 
|debutdate=
 
|debutyear=
 
|debutteam=
 
|draftnumber=
 
|draftround=
 
|height=
 
|weight=
 
|draftyear=
 
|draftteam=
 
}}</pre>
 
==Parameter discriptions==
 
*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 [[Baseball positions*position]] primarily played by the player
 
*team=current [[Major_League_Baseball#Current_Major_League_Clubs*club]] played for (Unsure for former players)
 
*number=
 
*bats=
 
*throws=
 
*feet=
 
*inches=
 
*birthday=
 
*place=
 
*birthyear=
 
*College=
 
*salary=
 
*debutdate=
 
*debutyear=
 
*debutteam=
 
*draftnumber=
 
*draftround=
 
*height=6
 
*weight=
 
*draftyear=
 
*draftteam=</noinclude>
 
{| class="infobox bordered" style="width: 25em; text-align: left; font-size: 95%;"
 
|+ style="font-size: larger;" | '''{{{name}}}'''
 
|-
 
{{#if:{{{image|}}}|<tr><th colspan="2" style="text-align:center;">[[Image:{{{image}}}|{{{width|}}}px]]<br>{{{caption|}}}</th></tr> }}
 
| colspan="2" style="text-align:center; background:{{{bgcolor1}}};"| <span style="color:{{{textcolor1|black}}};">'''{{{team}}} — No. {{{number|–}}}'''</span>
 
|-
 
| colspan="2" style="text-align:center;" | '''[[{{{position}}}]]'''
 
|-
 
| width="50%" style="text-align:center;" | '''Bats:''' {{{bats}}}
 
| width="50%" style="text-align:center;" | '''Throws:''' {{{throws}}}
 
|-
 
! colspan="2" style="text-align:center; background:{{{bgcolor2}}};" | <span style="color:{{{textcolor2|black}}};">Major League Baseball debut</span>
 
|-
 
| colspan="2" style="text-align:center;" | [[{{{debutdate}}}]], [[{{{debutyear}}} in baseball|{{{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}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{stat1value}}}</td></tr> }}{{#if:{{{stat2label|}}}|<tr><th style="text-align:right">{{{stat2label}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{stat2value}}}</td></tr> }}{{#if:{{{stat3label|}}}|<tr><th style="text-align:right">{{{stat3label}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{stat3value}}}</th></tr> }}{{#if:{{{stat4label|}}}|<tr><th style="text-align:right">{{{stat4label}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{stat4value}}}</th></tr> }}{{#if:{{{stat5label|}}}|<tr><th style="text-align:right">{{{stat5label}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{stat5value}}}</th></tr> }}{{#if:{{{stat6label|}}}|<tr><th style="text-align:right">{{{stat6label}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{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}}};">Teams</span></th></tr> }}{{#if:{{{formerteams|}}}|<tr><td colspan="2">{{{formerteams}}}</td></tr> }}
 
|}<noinclude>
 
 
 
{| class="wikitable"
 
! Team
 
! <tt>bgcolor1</tt>
 
! <tt>bgcolor2</tt>
 
! <tt>textcolor1</tt>
 
! <tt>textcolor2</tt>
 
! Color Set 1 Example
 
! Color Set 2 Example
 
|-
 
| Arizona Diamondbacks
 
| <tt>#af0039</tt>
 
| <tt>black</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#af0039; color:white" | Example
 
| style="background:black; color:white" | Example
 
|-
 
| Atlanta Braves
 
| <tt>#0f437c</tt>
 
| <tt>#af0039</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#0f437c; color:white" | Example
 
| style="background:#af0039; color:white" | Example
 
|-
 
| Baltimore Orioles
 
| <tt>black</tt>
 
| <tt>#F87217</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:black; color:white" | Example
 
| style="background:#F87217; color:white" | Example
 
|-
 
| Boston Red Sox
 
| <tt>#ba313c</tt>
 
| <tt>#0d2b56</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#ba313c; color:white" | Example
 
| style="background:#0d2b56; color:white" | Example
 
|-
 
| Chicago Cubs
 
| <tt>#0e3386</tt>
 
| <tt>#d82427</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#0e3386; color:white" | Example
 
| style="background:#d82427; color:white" | Example
 
|-
 
| Chicago White Sox
 
| <tt>black</tt>
 
| <tt>silver</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:black; color:white" | Example
 
| style="background:silver; color:white" | Example
 
|-
 
| Cincinnati Reds
 
| <tt>#c6011f</tt>
 
| <tt>black</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#c6011f; color:white" | Example
 
| style="background:black; color:white" | Example
 
|-
 
| Cleveland Indians
 
| <tt>#990000</tt>
 
| <tt>#023465</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#990000; color:white" | Example
 
| style="background:#023465; color:white" | Example
 
|-
 
| Colorado Rockies
 
| <tt>#333366</tt>
 
| <tt>black</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#333366; color:white" | Example
 
| style="background:black; color:white" | Example
 
|-
 
| Detroit Tigers
 
| <tt>#bd5d29</tt>
 
| <tt>#003366</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#bd5d29; color:white" | Example
 
| style="background:#003366; color:white" | Example
 
|-
 
| Florida Marlins
 
| <tt>#009494</tt>
 
| <tt>black</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#009494; color:white" | Example
 
| style="background:black; color:white" | Example
 
|-
 
| Houston Astros
 
| <tt>#95322c</tt>
 
| <tt>black</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#95322c; color:white" | Example
 
| style="background:black; color:white" | Example
 
|-
 
| Kansas City Royals
 
| <tt>#15317E</tt>
 
| <tt>#15317E</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#15317E; color:white" | Example
 
| style="background:#15317E; color:white" | Example
 
|-
 
| Los Angeles Angels
 
| <tt>#ff0000</tt>
 
| <tt>#999999</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#ff0000; color:white" | Example
 
| style="background:#999999; color:white" | Example
 
|-
 
| Los Angeles Dodgers
 
| <tt>#083c6b</tt>
 
| <tt>#083c6b</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#083c6b; color:white" | Example
 
| style="background:#083c6b; color:white" | Example
 
|-
 
| Milwaukee Brewers
 
| <tt>#0a2252</tt>
 
| <tt>#b6922e</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#0a2252; color:white" | Example
 
| style="background:#b6922e; color:white" | Example
 
|-
 
| Minnesota Twins
 
| <tt>#072764</tt>
 
| <tt>#c6011f</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#072764; color:white" | Example
 
| style="background:#c6011f; color:white" | Example
 
|-
 
| New York Mets
 
| <tt>#003581</tt>
 
| <tt>#ff5731</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#003581; color:white" | Example
 
| style="background:#ff5731; color:white" | Example
 
|-
 
| New York Yankees
 
| <tt>#1c2841</tt>
 
| <tt>#6d7380</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#1c2841; color:white" | Example
 
| style="background:#6d7380; color:white" | Example
 
|-
 
| Oakland Athletics
 
| <tt>#003831</tt>
 
| <tt>gold</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#003831; color:white" | Example
 
| style="background:gold; color:white" | Example
 
|-
 
| Philadelphia Phillies
 
| <tt>#A50024</tt>
 
| <tt>#263473</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#A50024; color:white" | Example
 
| style="background:#263473; color:white" | Example
 
|-
 
| Pittsburgh Pirates
 
| <tt>#e1b81e</tt>
 
| <tt>black</tt>
 
| <tt>black</tt>
 
| <tt>white</tt>
 
| style="background:#e1b81e; color:black" | Example
 
| style="background:black; color:white" | Example
 
|-
 
| San Diego Padres
 
| <tt>#d0ad7f</tt>
 
| <tt>#000066</tt>
 
| <tt>black</tt>
 
| <tt>white</tt>
 
| style="background:#d0ad7f; color:black" | Example
 
| style="background:#000066; color:white" | Example
 
|-
 
| San Francisco Giants
 
| <tt>#fd5a1e</tt>
 
| <tt>black</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#fd5a1e; color:white" | Example
 
| style="background:black; color:white" | Example
 
|-
 
| Seattle Mariners
 
| <tt>#005c5c</tt>
 
| <tt>#0c2c56</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#005c5c; color:white" | Example
 
| style="background:#0c2c56; color:white" | Example
 
|-
 
| St. Louis Cardinals
 
| <tt>#c41e3a</tt>
 
| <tt>#0a2252</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#c41e3a; color:white" | Example
 
| style="background:#0a2252; color:white" | Example
 
|-
 
| Tampa Ray Devil Bays
 
| <tt>#00653A</tt>
 
| <tt>#151B54</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#00653A; color:white" | Example
 
| style="background:#151B54; color:white" | Example
 
|-
 
| Texas Rangers
 
| <tt>#003279</tt>
 
| <tt>#bd1021</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#003279; color:white" | Example
 
| style="background:#bd1021; color:white" | Example
 
|-
 
| Toronto Blue Jays
 
| <tt>#005ac0</tt>
 
| <tt>black</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#005ac0; color:white" | Example
 
| style="background:black; color:white" | Example
 
|-
 
| Washington Nationals
 
| <tt>#ba122b</tt>
 
| <tt>#11225b</tt>
 
| <tt>white</tt>
 
| <tt>white</tt>
 
| style="background:#ba122b; color:white" | Example
 
| style="background:#11225b; color:white" | Example
 
|-
 
| No Team / Free Agent
 
| colspan="4" | do not specify colors
 
| Example
 
| Example
 
|}<noinclude>
 
 
 
{{Infobox MLB player|
 
bgcolor1=darkblue|
 
bgcolor2=red|
 
textcolor1=white|
 
textcolor2=white|
 
name=All Options On|
 
image=Baseball (ball) closeup.jpg|
 
caption=Caption|
 
width=100|
 
position=Position|
 
team=Team Name|
 
number=99|
 
bats=Bats|
 
throws=Throws|
 
debutdate=June 1|
 
debutyear=2000|
 
debutteam=Team Name|
 
statyear=2005|
 
stat1label=[[Batting average]]|
 
stat1value=.340|
 
stat2label=[[Run batted in|Runs batted in]]|
 
stat2value=586|
 
stat3label=[[Home run|Home runs]]|
 
stat3value=233|
 
formerteams=<nowiki></nowiki>
 
*Former Team Name ([[2002 in baseball|2002]]–[[2003 in baseball|2003]])
 
}}
 
 
 
{{Infobox MLB player|
 
bgcolor1=darkblue|
 
bgcolor2=red|
 
textcolor1=white|
 
textcolor2=white|
 
name=No Former Teams|
 
image=Baseball (ball) closeup.jpg|
 
caption=Caption|
 
width=100|
 
position=Position|
 
team=Team Name|
 
number=99|
 
bats=Bats|
 
throws=Throws|
 
debutdate=June 1|
 
debutyear=2000|
 
debutteam=Team Name|
 
statyear=2005|
 
stat1label=[[Batting average]]|
 
stat1value=.340|
 
stat2label=[[Run batted in|Runs batted in]]|
 
stat2value=586|
 
stat3label=[[Home run|Home runs]]|
 
stat3value=233|
 
}}
 
 
 
{{Infobox MLB player|
 
bgcolor1=darkblue|
 
bgcolor2=red|
 
textcolor1=white|
 
textcolor2=white|
 
name=No Stats|
 
image=Baseball (ball) closeup.jpg|
 
caption=Caption|
 
width=100|
 
position=Position|
 
team=Team Name|
 
number=99|
 
bats=Bats|
 
throws=Throws|
 
debutdate=June 1|
 
debutyear=2000|
 
debutteam=Team Name|
 
formerteams=<nowiki></nowiki>
 
*Former Team Name ([[2002 in baseball|2002]]–[[2003 in baseball|2003]])
 
}}
 
 
 
{{Infobox MLB player|
 
bgcolor1=darkblue|
 
bgcolor2=red|
 
textcolor1=white|
 
textcolor2=white|
 
name=No Stats, No Former Teams|
 
image=Baseball (ball) closeup.jpg|
 
caption=Caption|
 
width=100|
 
position=Position|
 
team=Team Name|
 
number=99|
 
bats=Bats|
 
throws=Throws|
 
debutdate=June 1|
 
debutyear=2000|
 
debutteam=Team Name|
 
}}
 
 
 
{{Infobox MLB player|
 
bgcolor1=darkblue|
 
bgcolor2=red|
 
textcolor1=white|
 
textcolor2=white|
 
name=Two Stats|
 
image=Baseball (ball) closeup.jpg|
 
caption=Caption|
 
width=100|
 
position=Position|
 
team=Team Name|
 
number=99|
 
bats=Bats|
 
throws=Throws|
 
debutdate=June 1|
 
debutyear=2000|
 
debutteam=Team Name|
 
statyear=2005|
 
stat1label=[[Batting average]]|
 
stat1value=.340|
 
stat2label=[[Run batted in|Runs batted in]]|
 
stat2value=586|
 
formerteams=<nowiki></nowiki>
 
*Former Team Name ([[2002 in baseball|2002]]–[[2003 in baseball|2003]])
 
}}
 
 
 
{{Infobox MLB player|
 
bgcolor1=darkblue|
 
bgcolor2=red|
 
textcolor1=white|
 
textcolor2=white|
 
name=One Stat|
 
image=Baseball (ball) closeup.jpg|
 
caption=Caption|
 
width=100|
 
position=Position|
 
team=Team Name|
 
number=99|
 
bats=Bats|
 
throws=Throws|
 
debutdate=June 1|
 
debutyear=2000|
 
debutteam=Team Name|
 
statyear=2005|
 
stat1label=[[Batting average]]|
 
stat1value=.340|
 
formerteams=<nowiki></nowiki>
 
*Former Team Name ([[2002 in baseball|2002]]–[[2003 in baseball|2003]])
 
}}
 
 
 
{{Infobox MLB player|
 
bgcolor1=darkblue|
 
bgcolor2=red|
 
textcolor1=white|
 
textcolor2=white|
 
name=One Stat, No Former Teams|
 
image=Baseball (ball) closeup.jpg|
 
caption=Caption|
 
width=100|
 
position=Position|
 
team=Team Name|
 
number=99|
 
bats=Bats|
 
throws=Throws|
 
debutdate=June 1|
 
debutyear=2000|
 
debutteam=Team Name|
 
statyear=2005|
 
stat1label=[[Batting average]]|
 
stat1value=.340|
 
}}
 
 
 
{{Infobox MLB player|
 
bgcolor1=darkblue|
 
bgcolor2=red|
 
textcolor1=white|
 
textcolor2=white|
 
name=No Caption|
 
image=Baseball (ball) closeup.jpg|
 
width=100|
 
position=Position|
 
team=Team Name|
 
number=99|
 
bats=Bats|
 
throws=Throws|
 
debutdate=June 1|
 
debutyear=2000|
 
debutteam=Team Name|
 
statyear=2005|
 
stat1label=[[Batting average]]|
 
stat1value=.340|
 
stat2label=[[Run batted in|Runs batted in]]|
 
stat2value=586|
 
stat3label=[[Home run|Home runs]]|
 
stat3value=233|
 
formerteams=<nowiki></nowiki>
 
*Former Team Name ([[2002 in baseball|2002]]–[[2003 in baseball|2003]])
 
}}
 
 
 
{{Infobox MLB player|
 
bgcolor1=darkblue|
 
bgcolor2=red|
 
textcolor1=white|
 
textcolor2=white|
 
name=No Image|
 
position=Position|
 
team=Team Name|
 
number=99|
 
bats=Bats|
 
throws=Throws|
 
debutdate=June 1|
 
debutyear=2000|
 
debutteam=Team Name|
 
statyear=2005|
 
stat1label=[[Batting average]]|
 
stat1value=.340|
 
stat2label=[[Run batted in|Runs batted in]]|
 
stat2value=586|
 
stat3label=[[Home run|Home runs]]|
 
stat3value=233|
 
formerteams=<nowiki></nowiki>
 
*Former Team Name ([[2002 in baseball|2002]]–[[2003 in baseball|2003]])
 
}}
 
 
 
{{Infobox MLB player|
 
bgcolor1=darkblue|
 
bgcolor2=red|
 
textcolor1=white|
 
textcolor2=white|
 
name=All Options Off|
 
position=Position|
 
team=Team Name|
 
number=99|
 
bats=Bats|
 
throws=Throws|
 
debutdate=June 1|
 
debutyear=2000|
 
debutteam=Team Name|
 
}}
 
 
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
[[Category:People infobox templates|MLB player]]
 
</noinclude>
 

Latest revision as of 02:44, 21 September 2015