Difference between revisions of "Template:Infobox NPB player"

From blackwiki
Jump to navigation Jump to search
imported>Borgarde
(general clean up, based on MLB player - also supports auto colouring, no longer needing to manually place colours.)
imported>Borgarde
(everything can be done with the other template)
Line 1: Line 1:
{| class="infobox bordered vcard" style="width: 25em; text-align: left; font-size: 95%;"
+
#REDIRECT [[Template:Infobox asian baseball player]]
! colspan="2" style="text-align:center; font-size:larger;" class="fn" | {{{name}}}
 
|-
 
{{#if:{{{image<includeonly>|</includeonly>}}}|
 
<th colspan="2" style="text-align:center;">[[Image:{{{image}}}|{{{width|200}}}px]]<br>
 
{{{caption<includeonly>|</includeonly>}}}</th>
 
}}
 
|-
 
| colspan="2" style="text-align:center; {{MLBPrimaryColor|{{{team}}}}};"| <span style="{{MLBSecondaryColor|{{{team}}}}};" class="note">'''<span style="{{MLBSecondaryColor|{{{team}}}}};">{{{team|Player information}}}</span> {{#if:{{{number<includeonly>|</includeonly>}}}| — No. {{{number|--}}}'''}}</span>
 
|- style="text-align: center;"
 
{{#if:{{{position<includeonly>|</includeonly>}}}|{{!}} ! colspan="2" {{!}} '''{{{position}}}'''
 
}}
 
|- style="text-align: center;"
 
{{#if:{{{positionplain<includeonly>|</includeonly>}}}|{{!}} ! colspan="2" {{!}} '''{{{positionplain}}}'''
 
}}
 
|-
 
{{#if:{{{birthdate<includeonly>|</includeonly>}}}{{{birthplace<includeonly>|</includeonly>}}}|
 
<th colspan="2" style="text-align:center;">Born: {{{birthdate<includeonly>|</includeonly>}}}{{#if:{{{birthdate<includeonly>|</includeonly>}}}|{{#if:{{{birthplace<includeonly>|</includeonly>}}}|<BR>}}}}{{{birthplace<includeonly>|</includeonly>}}}{{#if:{{{deathdate<includeonly>|</includeonly>}}}{{{deathplace<includeonly>|</includeonly>}}}|<BR>
 
Died: {{{deathdate<includeonly>|</includeonly>}}}{{#if:{{{deathdate<includeonly>|</includeonly>}}}|{{#if:{{{deathplace<includeonly>|</includeonly>}}}|<BR>}}}}{{{deathplace<includeonly>|</includeonly>}}}}}</th>}}
 
|-
 
| width="50%" style="text-align:center;" | '''Bats:''' {{{bats}}}
 
| width="50%" style="text-align:center;" | '''Throws:''' {{{throws}}}{{#if:{{{debutyear|<noinclude>x</noinclude>}}}{{{debutteam|<noinclude>x</noinclude>}}}|&nbsp;
 
{{!}}-
 
! colspan="2" style="text-align:center; {{MLBAltPrimaryColor|{{{team}}}}};" {{!}} <span style="{{MLBAltSecondaryColor|{{{team}}}}};">Nippon Professional Baseball debut</span>
 
{{!}}-
 
{{!}} colspan="2" style="text-align:center;" {{!}} {{#if:{{{debutdate|<noinclude>x</noinclude>}}}|{{{debutdate}}},&nbsp;}}{{#if:{{{debutyear|<noinclude>x</noinclude>}}}|{{{debutyear}}}}}{{#if:{{{debutteam|<noinclude>x</noinclude>}}}|{{#if:{{{debutyear|<noinclude>x</noinclude>}}}|&nbsp;for the&nbsp;}}{{{debutteam}}}}}}}
 
|-
 
{{#if:{{{finalyear|<noinclude>x</noinclude>}}}{{{finalteam|<noinclude>x</noinclude>}}}|{{!}}-
 
! colspan="2" style="text-align:center; {{MLBAltPrimaryColor|{{{team}}}}};" {{!}} <span style="{{MLBAltSecondaryColor|{{{team}}}}};">Last NPB appearance</span>
 
{{!}}-
 
{{!}} colspan="2" style="text-align:center;" {{!}} {{#if:{{{finaldate|<noinclude>x</noinclude>}}}|{{{finaldate}}},&nbsp;}}{{#if:{{{finalyear|<noinclude>x</noinclude>}}}|{{{finalyear}}}}}{{#if:{{{finalteam|<noinclude>x</noinclude>}}}|{{#if:{{{finalyear|<noinclude>x</noinclude>}}}|&nbsp;for the&nbsp;}}{{{finalteam}}}}}}}
 
|-
 
{{#if:{{{stat1label<includeonly>|</includeonly>}}}|
 
<th colspan="2" style="text-align:center; {{MLBPrimaryColor|{{{team}}}}};"><span style="{{MLBSecondaryColor|{{{team}}}}};">Career statistics {{#if:{{{statyear<includeonly>|</includeonly>}}}|<br/>(through {{{statyear}}})}}</span></th>
 
 
 
}}{{#if:{{{stat1label<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right">{{{stat1label}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{stat1value}}}</td></tr>
 
 
 
}}{{#if:{{{stat2label<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right">{{{stat2label}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{stat2value}}}</td></tr>
 
 
 
}}{{#if:{{{stat3label<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right">{{{stat3label}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{stat3value}}}</th></tr>
 
 
 
}}{{#if:{{{stat4label<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right">{{{stat4label}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{stat4value}}}</th></tr>
 
 
 
}}{{#if:{{{stat5label<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right">{{{stat5label}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{stat5value}}}</th></tr>
 
 
 
}}{{#if:{{{stat6label<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right">{{{stat6label}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{stat6value}}}</th></tr>
 
 
 
}}<!--deprecated, use teams instead-->{{#if:{{{formerteams|}}}|
 
<tr><th colspan="2" style="text-align:center; {{MLBAltPrimaryColor|{{{team}}}}};"><span style="{{MLBAltSecondaryColor|{{{team}}}}};">Former teams</span></th></tr><tr><td colspan="2">{{{formerteams}}}</td></tr>
 
 
 
}}{{#if:{{{teams<includeonly>|</includeonly>}}}|
 
<tr><th colspan="2" style="text-align:center; {{MLBAltPrimaryColor|{{{team}}}}};"><span style="{{MLBAltSecondaryColor|{{{team}}}}};">Teams</span></th></tr><tr><td colspan="2">{{{teams}}}</td></tr>
 
 
 
}}{{#if:{{{awards<includeonly>|</includeonly>{{{highlights<includeonly>|</includeonly>}}}}}}|
 
<tr><th colspan="2" style="text-align:center; {{MLBPrimaryColor|{{{team}}}}};"><span style="{{MLBSecondaryColor|{{{team}}}}};">Career highlights and awards</span></th></tr><tr><td colspan="2">{{{awards|{{{highlights}}}}}}</td></tr>
 
 
 
}}{{#if:{{{hofdate<includeonly>|</includeonly>}}}|
 
<tr><th colspan="2" style="text-align:center; background:#A50024;">[[Japanese Baseball Hall of Fame|<span style="color:white;">Member of the Japanese</span>]]</th></tr><tr><th colspan="2" style="text-align:center; background:#11225b;">[[Image:Empty Star.svg|20px]] [[Image:Empty Star.svg|20px]] [[Image:Empty Star.svg|20px]] [[Japanese Baseball Hall of Fame|<span style="color:white;">Baseball Hall of Fame</span>]] [[Image:Empty Star.svg|20px]] [[Image:Empty Star.svg|20px]] [[Image:Empty Star.svg|20px]]</th></tr><tr><th style="text-align:right">Elected&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{hofdate}}}</td></tr>
 
 
 
}}{{#if:{{{hofvote<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right">Vote&nbsp;&nbsp;</td><td>&nbsp;&nbsp;{{{hofvote}}}</td></tr>
 
 
 
}}{{#if:{{{hofmethod<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right">Election Method&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{hofmethod}}}</td></tr>
 
}}
 
|}<noinclude>
 
{{documentation}}
 
[[Category:Sportsperson infobox templates|NPB player]]
 
[[Category:Baseball player infobox templates|NPB player]]
 
</noinclude>
 

Revision as of 07:02, 3 December 2008