Difference between revisions of "Template:Infobox KBO player"

From blackwiki
Jump to navigation Jump to search
imported>Btnikk
(Created page with '{| class="infobox bordered vcard" style="width: 25em; text-align: left; font-size: 95%;" |+ style="font-size: larger;" class="fn"| '''{{{name}}}''' |- {{#if:{{{imag...')
 
imported>Btnikk
Line 1: Line 1:
 +
</noinclude>
 
{| class="infobox bordered vcard" style="width: 25em; text-align: left; font-size: 95%;"
 
{| class="infobox bordered vcard" style="width: 25em; text-align: left; font-size: 95%;"
 
|+ style="font-size: larger;" class="fn"| '''{{{name}}}'''
 
|+ style="font-size: larger;" class="fn"| '''{{{name}}}'''
 
|-
 
|-
{{#if:{{{image<includeonly>|</includeonly>}}}|
+
{{#if:{{{image|}}}|<tr><th colspan="2" style="text-align:center;">[[Image:{{{image}}}|{{{width|200}}}px]]<br>{{{caption|}}}</th></tr> }}
<th colspan="2" style="text-align:center;">[[Image:{{{image}}}|{{{width|200}}}px]]<br>
+
| colspan="2" style="text-align:center; background:{{{bgcolor1}}};"| <span style="color:{{{textcolor1|black}}};" class="note">'''{{{team}}} — No. {{{number|–}}}'''</span>
{{{caption<includeonly>|</includeonly>}}}</th>
+
|-
}}
+
| colspan="2" style="text-align:center;" | '''[[{{{position}}}]]'''
 
|-
 
|-
| colspan="2" style="text-align:center; {{MLBPrimaryColor|{{{team}}}}};"| <span style="{{MLBSecondaryColor|{{{team}}}}};" class="note">'''<span style="{{MLBSecondaryColor|{{{team}}}}};">{{{team}}}</span> — No. {{{number|--}}}'''</span>
+
|{{#if:{{{birthdate|}}}|<tr><th colspan="2" style="text-align:center;">Born: {{{birthdate}}} }}</tr></th>
|- style="text-align: center;"  
+
| width="50%" style="text-align:center;" | '''Bats:''' {{{bats}}}  
{{#if:{{{position<includeonly>|</includeonly>}}}|{{!}} ! colspan="2" {{!}} '''[[{{{position}}}]]'''
+
| width="50%" style="text-align:center;" | '''Throws:''' {{{throws}}}
}}
 
|- style="text-align: center;"  
 
{{#if:{{{positionplain<includeonly>|</includeonly>}}}|{{!}} ! colspan="2" {{!}} '''{{{positionplain}}}'''
 
}}
 
 
|-
 
|-
{{#if:{{{birthdate<includeonly>|</includeonly>}}}{{{birthplace<includeonly>|</includeonly>}}}|
+
! colspan="2" style="text-align:center; background:{{{bgcolor2}}};" | <span style="color:{{{textcolor2|black}}};">Korean Professional Baseball debut</span>
<th colspan="2" style="text-align:center;">Born: {{{birthdate<includeonly>|</includeonly>}}}{{#if:{{{birthdate<includeonly>|</includeonly>}}}|{{#if:{{{birthplace<includeonly>|</includeonly>}}}|<BR>}}}}{{{birthplace<includeonly>|</includeonly>}}}</th>
 
}}
 
 
|-
 
|-
| width="50%" style="text-align:center;" | '''Bats:''' {{{bats}}}
+
| colspan="2" style="text-align:center;" | [[{{{debutdate}}}]], [[{{{debutyear}}}]] for the {{{debutteam}}}
| 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}}}}};">Major League 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:{{{statyear<includeonly>|</includeonly>}}}|
+
{{#if:{{{statyear|}}}|<tr style="background:{{{bgcolor1}}};"><th colspan="2" style="text-align:center;"><span style="color:{{{textcolor1}}};">Selected NPB 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}}};">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> }}{{#if:{{{hofdate|}}}|<tr style="background:#A50024;"><th colspan="2" style="text-align:center;">[[National Baseball Hall of Fame and Museum|<span style="color:white;">Member of the National</span>]]</th></tr><tr style="background:#11225b;"><th colspan="2" style="text-align:center;">[[Image:Empty Star.svg|20px]] [[Image:Empty Star.svg|20px]] [[Image:Empty Star.svg|20px]] [[National Baseball Hall of Fame and Museum|<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|}}}|<tr><th style="text-align:right">Vote&nbsp;&nbsp;</td><td>&nbsp;&nbsp;{{{hofvote}}}</td></tr>}}{{#if:{{{hofmethod|}}}|<tr><th style="text-align:right">Election Method&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{hofmethod}}}</td></tr>}}
<th colspan="2" style="text-align:center; {{MLBPrimaryColor|{{{team}}}}};"><span style="{{MLBSecondaryColor|{{{team}}}}};">Selected MLB statistics <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>}}}|
 
<tr><th colspan="2" style="text-align:center; {{MLBPrimaryColor|{{{team}}}}};"><span style="{{MLBSecondaryColor|{{{team}}}}};">Highlights and awards</span></th></tr><tr><td colspan="2">{{{awards}}}</td></tr>
 
 
 
}}{{#if:{{{hofdate<includeonly>|</includeonly>}}}|
 
<tr><th colspan="2" style="text-align:center; background:#A50024;">[[National Baseball Hall of Fame and Museum|<span style="color:white;">Member of the National</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]] [[National Baseball Hall of Fame and Museum|<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>
 
|}<noinclude>
 
'''If you want to make any changes here, please use [[/sandbox]] first.'''
 
'''If you want to make any changes here, please use [[/sandbox]] first.'''

Revision as of 20:54, 12 May 2008

{{{name}}}
{{{team}}} — No. –
[[{{{position}}}]]
Bats: {{{bats}}} Throws: {{{throws}}}
Korean Professional Baseball debut
[[{{{debutdate}}}]], [[{{{debutyear}}}]] for the {{{debutteam}}}

If you want to make any changes here, please use /sandbox first.

Note: 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.

Template:Infobox KBO player/doc