Difference between revisions of "Template:Infobox MLB player"

From blackwiki
Jump to navigation Jump to search
imported>Bagumba
(consistent center alignment)
imported>Ahecht
Line 1: Line 1:
{{infobox
+
#REDIRECT [[Infobox baseball biography]]
| bodyclass = bordered vcard
 
 
 
| abovestyle = font-size:larger; {{Infobox baseball biography/style|{{{team}}}}}
 
| datastyle = text-align:left;
 
| headerstyle = padding:0;
 
 
 
| aboveclass = fn
 
| above = <span class="note">{{{name}}}</span><!--
 
  Top section uses a child box to facilitate different label/data alignment
 
-->{{infobox|child=yes
 
  | headerstyle = padding:0;
 
  | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image<includeonly>|</includeonly>}}}|size={{{image_size|{{{width|}}}}}}|sizedefault=200px|alt={{{alt<includeonly>|</includeonly>}}}|suppressplaceholder=yes}}
 
  | caption = {{{caption<includeonly>|</includeonly>}}}
 
 
 
  | header1 = {{#if:{{{team<includeonly>|</includeonly>}}}|<div style="width:100%;{{Infobox baseball biography/style|{{{team}}}|secondary}}"><span class="note" style="font-weight:bold">{{{team}}} {{#if:{{{number<includeonly>|</includeonly>}}}| – No. {{{number|--}}}}}</span></div>}}
 
 
 
  | data2 = {{#if:{{{position<includeonly>|</includeonly>}}}| '''{{{position}}}''' }}
 
  | data3 = {{#if:{{{positionplain<includeonly>|</includeonly>}}}| '''{{{positionplain}}}''' }}
 
 
 
  | data4 = {{#if:{{{birth_date<includeonly>|</includeonly>}}}{{{birth_place<includeonly>|</includeonly>}}}
 
    |'''Born:''' {{br separated entries
 
    | 1 = {{{birth_date<includeonly>|</includeonly>}}}
 
    | 2 = {{{birth_place<includeonly>|</includeonly>}}}
 
    }} }}
 
  | data5 = {{#if:{{{death_date<includeonly>|</includeonly>}}}{{{death_place<includeonly>|</includeonly>}}}
 
    |'''Died:''' {{br separated entries
 
    | 1 = {{{death_date<includeonly>|</includeonly>}}}
 
    | 2 = {{{death_place<includeonly>|</includeonly>}}}
 
    }} }}
 
 
 
  | data6  = {{#if:{{{bats<includeonly>|</includeonly>}}}{{{throws|}}}|
 
<table style="width:100%; border:none;border-collapse:collapse;"><tr>
 
<td style="text-align:center; width:50%; border-width:0 1px 0 0;">{{#if:{{{bats<includeonly>|</includeonly>}}}|'''{{#if:{{{finalyear|}}}{{{death_date|}}}|Batted|Bats}}:''' {{{bats}}}}}</td>
 
<td style="text-align:center; width:50%; border-width:0 0 0 1px;">{{#if:{{{throws<includeonly>|</includeonly>}}}|'''{{#if:{{{finalyear|}}}{{{death_date|}}}|Threw|Throws}}:''' {{{throws}}}}}</td>
 
</tr></table>}}
 
  | header7 = {{#if:{{{debutyear<includeonly>|</includeonly>}}}{{{debutteam|}}}|<div style="width:100%;{{Infobox baseball biography/style|{{{team}}}}}">MLB debut</div>}}
 
  | data8 =
 
{{#if:{{{debutyear<includeonly>|</includeonly>}}}
 
  |{{#if:{{{debutteam<includeonly>|</includeonly>}}}
 
    |{{#if:{{{debutdate<includeonly>|</includeonly>}}}|{{{debutdate}}},&nbsp;}}{{{debutyear}}}&nbsp;for the&nbsp;{{{debutteam}}}
 
    |{{#if:{{{debutdate<includeonly>|</includeonly>}}}|{{{debutdate}}},&nbsp;}}{{{debutyear}}}
 
  }}
 
  |{{#if:{{{debutdate<includeonly>|</includeonly>}}}|{{{debutdate}}},&nbsp;}}{{{debutteam<includeonly>|</includeonly>}}}
 
  }}
 
  | header9 = {{#if:{{{finalyear<includeonly>|</includeonly>}}}{{{finalteam|}}}|<div style="width:100%;{{Infobox baseball biography/style|{{{team}}}}}">Last MLB appearance</div>}}
 
  | data10 =
 
{{#if:{{{finalyear<includeonly>|</includeonly>}}}
 
  |{{#if:{{{finalteam<includeonly>|</includeonly>}}}
 
    |{{#if:{{{finaldate<includeonly>|</includeonly>}}}|{{{finaldate}}},&nbsp;}}{{{finalyear}}}&nbsp;for the&nbsp;{{{finalteam}}}
 
    |{{#if:{{{finaldate<includeonly>|</includeonly>}}}|{{{finaldate}}},&nbsp;}}{{{finalyear}}}
 
  }}
 
  |{{#if:{{{finaldate<includeonly>|</includeonly>}}}|{{{finaldate}}},&nbsp;}}{{{finalteam<includeonly>|</includeonly>}}}
 
  }}
 
}}<!--
 
  Middle section uses a child box to facilitate different label/data alignment
 
-->{{infobox|child=yes
 
  | decat = yes
 
  | labelstyle = text-align:right; width:50%; padding-right:0.5em;
 
  | datastyle  = width:50%; padding-left:0.5em;
 
  | headerstyle = padding:0;
 
 
 
  | header1 = {{#if:{{{stat1value<includeonly>|</includeonly>}}}{{{stat2value|}}}{{{stat3value|}}}{{{stat4value|}}}{{{stat5value|}}}|<div style="width:100%;{{Infobox baseball biography/style|{{{team}}}|secondary}}">Career statistics {{#if:{{{statyear<includeonly>|</includeonly>}}}|<br/>{{small|(through {{{statyear}}})}}}}</div>}}
 
  | label2 = {{{stat1label}}}
 
  | data2  = {{#if:{{{stat1label<includeonly>|</includeonly>}}}|{{{stat1value<includeonly>|</includeonly>}}}}}
 
  | label3 = {{{stat2label}}}
 
  | data3  = {{#if:{{{stat2label<includeonly>|</includeonly>}}}|{{{stat2value<includeonly>|</includeonly>}}}}}
 
  | label4 = {{{stat3label}}}
 
  | data4  = {{#if:{{{stat3label<includeonly>|</includeonly>}}}|{{{stat3value<includeonly>|</includeonly>}}}}}
 
  | label5 = {{{stat4label}}}
 
  | data5  = {{#if:{{{stat4label<includeonly>|</includeonly>}}}|{{{stat4value<includeonly>|</includeonly>}}}}}
 
  | label6 = {{{stat5label}}}
 
  | data6  = {{#if:{{{stat5label<includeonly>|</includeonly>}}}|{{{stat5value<includeonly>|</includeonly>}}}}}
 
  | label7 = {{{stat6label}}}
 
  | data7  = {{#if:{{{stat6label<includeonly>|</includeonly>}}}|{{{stat6value<includeonly>|</includeonly>}}}}}
 
}}
 
 
 
| header1 = {{#if:{{{formerteams|}}}|<div style="width:100%;{{Infobox baseball biography/style|{{{team}}}|secondary}}">Former teams</div>}}<!--deprecated, use teams instead-->
 
| data2  =
 
{{{formerteams|}}}
 
 
 
| header3= {{#if:{{{teams<includeonly>|</includeonly>}}}|<div style="width:100%;{{Infobox baseball biography/style|{{{team}}}}}">Teams</div>}}
 
| data4 =
 
{{{teams<includeonly>|</includeonly>}}}
 
 
 
| header5 = {{#if:{{{awards|{{{highlights<includeonly>|</includeonly>}}}}}}|<div style="width:100%;{{Infobox baseball biography/style|{{{team}}}}}">Career highlights and awards</div>}}
 
| data6 =
 
{{{awards|{{{highlights<includeonly>|</includeonly>}}}}}}
 
 
 
| header7 = {{#if:{{{hofdate<includeonly>|</includeonly>}}}|
 
<div style="background:#A50024; width:100%">[[National Baseball Hall of Fame and Museum|<span style="color:white;">{{#if:{{{hoffuture|}}}|Incoming&nbsp;}}Member of the National</span>]]</div>
 
<div style="background:#11225b; width:100%; white-space:nowrap;">[[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[National Baseball Hall of Fame and Museum|<span style="color:white;">Baseball Hall of Fame</span>]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]]</div><!--
 
-->{{infobox|child=yes
 
  | labelstyle = text-align:right; padding-right:0.5em;
 
  | datastyle  = padding-left:0.5em;
 
  | label1 = Induction
 
  | data1 = {{{hofdate<includeonly>|</includeonly>}}}
 
  | label2 = Vote
 
  | data2 = {{{hofvote<includeonly>|</includeonly>}}}
 
  | label3 = Election Method
 
  | data3 = {{{hofmethod<includeonly>|</includeonly>}}}
 
  }}
 
}}
 
}}<noinclude>
 
{{being merged|17 February 2014|merge=Template:Infobox baseball biography}}
 
{{documentation}}
 
</noinclude>
 

Revision as of 02:44, 21 September 2015