Difference between revisions of "Template:Infobox PBA player"

From blackwiki
Jump to navigation Jump to search
imported>Bluemask
(rewrite to use Infobox metatemplate)
imported>Raigeiki55
Line 1: Line 1:
{{Infobox
+
{| class="infobox vcard" style="width: 25em; text-align: left; font-size: 88%"
|name        =  
+
|+ class="fn summary" style="font-size: larger; font-weight: bold" | {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
|bodystyle    =  
+
|-
|bodyclass    = vcard
+
{{#if:{{{image|}}}|
|title        = {{{fullname}}}
+
{{!}} colspan=2 style="text-align: center" {{!}} [[file:{{{image}}}|{{px|{{{width|}}}|frameless}}|alt={{{alt|}}}]]
|titleclass  = fn
+
{{!}}-
|titlestyle  =
+
{{#if:{{{caption|}}}|
|above        =
+
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption}}}
|abovestyle  =
+
{{!}}-
 
+
}}
|imagestyle  =
+
}}
|captionstyle =
+
{{#if:{{{number|}}}{{{team|}}}|
 
+
! colspan=2 style="{{PBA color cell|{{{team}}}}}; text-align: center" {{!}} {{#if:{{{number|}}}|No. {{{number}}}{{#if:{{{team|}}}|<!--Add space between number and team-->&nbsp;&nbsp;&nbsp;}} }} {{#if:{{{team|}}}|[[{{#if:{{{team_link|}}}|{{{team_link}}}|{{{team}}}}}{{!}}<span style="{{PBA color cell|{{{team}}}}}">{{{team}}}</span>]]}}
|image        = {{#if:{{{Image|}}} | [[Image:{{{Image}}}|{{{ImageWidth|110}}}px|center]] }}
+
{{!}}-
|caption      =  
+
}}
|image2      =
+
{{#if:{{{position|}}}|
|caption2    =
+
{{!}} colspan=2 style="text-align: center" {{!}} {{{position}}}
 
+
{{!}}-
|headerstyle  = background: #999; color: #fff;
+
}}
|labelstyle  =
+
{{#if:{{{alias|}}}|
|datastyle    =
+
! colspan=2 style="text-align: center; {{PBA color cell|{{{team}}}}}" {{!}} Aliases
 
+
{{!}}-
|header1  =  
+
}}
|label1  = Alias
+
{{#if:{{{alias|}}}|
|data1    = {{{alias<includeonly>|</includeonly>}}}
+
{{!}} colspan=2 style="text-align: left" {{!}} {{{alias}}}
|class1  = nickname
+
{{!}}-
|header2  =
+
}}
|label2  = Jersey No.
+
{{#if:{{{birthdate|}}}{{{birth_date|}}}{{{birthplace|}}}{{{birth_place|}}}{{{nationality|}}}{{{deathdate|}}}{{{death_date|}}}{{{death_place|}}}{{{highschool|}}}{{{high_school|}}}{{{height_ft|}}}{{{height_in|}}}{{{weight_lbs|}}}{{{weight_lb|}}}|
|data2    = {{{jersey<includeonly>|</includeonly>}}}
+
! colspan=2 style="text-align: center; {{PBA color cell|{{{team}}} }}" {{!}} Personal information
|header3  =  
+
{{!}}-
|label3  = Position
+
}}
|data3    = {{{position<includeonly>|</includeonly>}}}
+
{{#if:{{{birthdate|}}}{{{birth_date|}}}|
|class3  = role
+
! Date of birth
|header4  =
+
{{!}} {{{birthdate|{{{birth_date}}} }}}
|label4  = Current Team
+
{{!}}-
|data4    = {{{team<includeonly>|</includeonly>}}}
+
}}
|class4  = org
+
{{#if:{{{birthplace|}}}{{{birth_place|}}}|
 
+
! {{nowrap|Place of birth}}
|header10 = Personal Info
+
{{!}} {{{birth_place|{{{birthplace}}} }}}
 
+
{{!}}-
|label11  = Country
+
}}
|data11  = {{#if:{{{nationality<includeonly>|</includeonly>}}} | {{flagcountry|{{{nationality|PHI}}}}} }}
+
{{#if:{{{nationality|}}}|
|label12  = Birth
+
! Nationality
|data12  = {{#if:{{{birthdate<includeonly>|</includeonly>}}}{{{birthplace<includeonly>|</includeonly>}}} | {{{birthdate}}}<br>{{{birthplace}}} }}
+
{{!}} {{{nationality}}}
|label13  = Height
+
{{!}}-
|data13  = {{#if:{{{height_ft<includeonly>|</includeonly>}}}{{{height_in<includeonly>|</includeonly>}}} | {{{height_ft}}} ft. {{{height_in}}} in. }}
+
}}
|label14  = Weight
+
{{#if:{{{deathdate|}}}{{{death_date|}}}|
|data14  = {{#if:{{{weight_lbs<includeonly>|</includeonly>}}} | {{{weight_lbs}}} lbs. }}
+
! {{nowrap|Date of death}}
|label15  = College
+
{{!}} {{{deathdate|{{{death_date}}} }}}
|data15  = {{{college<includeonly>|</includeonly>}}}
+
{{!}}-
 
+
}}
|header20 = Career Highlights
+
{{#if:{{{death_place|}}}|
 
+
! {{nowrap|Place of death}}
|label21  = Draft
+
{{!}} {{{death_place}}}
|data21  = {{#if:{{{draftyear<includeonly>|</includeonly>}}}{{{draftrank<includeonly>|</includeonly>}}}{{{motherteam<includeonly>|</includeonly>}}} | {{{draftyear}}}&nbsp;{{{draftrank}}}<br>by {{{motherteam}}} }}
+
{{!}}-
|label22  = Pro Career
+
}}
|data22  = {{#if:{{{career_start<includeonly>|</includeonly>}}}{{{career_end<includeonly>|</includeonly>}}} | {{{career_start}}} &ndash; {{{career_end|'''present'''}}} }}
+
{{#if:{{{highschool|}}}{{{high_school|}}}|
|label23  = Also played for
+
! {{nowrap|High school}}
|data23  = {{{former_teams<includeonly>|</includeonly>}}}
+
{{!}} {{{highschool|{{{high_school}}} }}}
 
+
{{!}}-
|header30 = {{#if:{{{awards<includeonly>|</includeonly>}}} | Awards Received }}
+
}}
 
+
{{#if:{{{height_ft|}}}{{{height_in|}}}|
|data31  = {{#if:{{{awards<includeonly>|</includeonly>}}} | <div align="left">{{{awards}}}</div> }}
+
! {{nowrap|Listed height}}
 
+
{{!}} {{#if:{{both|{{{height_ft|}}}|{{{height_in|}}}}}|{{convert|{{{height_ft}}}|ft|{{{height_in}}}|in|2|abbr=on}}|{{{height_ft}}} ft {{{height_in}}} in}}{{{height_footnote|}}}
|belowstyle =
+
{{!}}-
|below =
+
}}
}}<noinclude>{{documentation}}</noinclude>
+
{{#if:{{{weight_lbs|}}}{{{weight_lb|}}}|
 +
! {{nowrap|Listed weight}}
 +
{{!}} {{#if:{{{weight_lbs|}}}{{{weight_lb|}}}|{{convert|{{{weight_lbs|{{{weight_lb}}}}}}|lb|kg|0|abbr=on}}|{{{weight_lb}}} lb}}{{{weight_footnote|}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{college|}}}{{{draftyear|}}}{{{draft_year|}}}{{{draftteam|}}}{{{draft_team|}}}{{{debutyear|}}}{{{career_start|}}}{{{league|}}}{{{former_teams|}}}{{{teams|}}}{{{coach|}}}|
 +
! colspan=2 style="text-align: center; {{PBA color cell|{{{team}}}}}" {{!}} Career information
 +
{{!}}-
 +
}}
 +
{{#if:{{{college|}}}|
 +
! College
 +
{{!}} {{{college}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{draftyear|}}}{{{draft_year|}}}|
 +
! [[PBA Draft]]
 +
{{!}} [[{{{draftyear|{{{draft_year}}}}}} PBA Draft|{{{draftyear|{{{draft_year}}}}}}]] {{#if:{{{draft|}}}|/ {{{draft}}} | {{#if:{{{draftround|{{{draft_round|}}}}}}| / {{#ifeq:{{lc:{{{draftround|{{{draft_round}}}}}}}}|undrafted||Round:}} {{{draftround|{{{draft_round}}}}}}}} {{#if:{{{draftpick|{{{draft_pick|}}}}}}| / Pick: {{{draftpick|{{{draft_pick}}}}}}}} }}
 +
{{!}}-
 +
{{#if:{{{draftteam|}}}{{{draft_team|}}}|
 +
{{!}} colspan=2 style="text-align: center" {{!}} Selected by the {{{draftteam|{{{draft_team}}} }}}
 +
{{!}}-
 +
}}
 +
}}
 +
{{#if:{{{debutyear|}}}{{{career_start|}}}|
 +
! Pro career
 +
{{!}} {{{debutyear|{{{career_start|}}}}}}–{{#if:{{{finalyear|{{{career_end|}}}}}}|{{{finalyear|{{{career_end}}}}}}|present}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{league|}}}|
 +
! League
 +
{{!}} {{{league|PBA}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{former_teams|}}}{{{teams|}}}|
 +
! colspan=2 style="text-align: center; {{PBA color cell|{{{team}}}}}" {{!}} Career history
 +
{{!}}-
 +
}}
 +
{{#if:{{{former_teams|}}}{{{teams|}}}|
 +
{{!}} colspan=2 style="text-align: left" {{!}} {{#if:{{{coach|}}}| '''As player:'''<br />}}{{{former_teams|{{{teams}}} }}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{coach|}}}|
 +
{{!}} colspan=2 style="text-align: left" {{!}} '''As coach:'''<br />{{{coach}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{awards|}}}{{{highlights|}}}|
 +
! colspan=2 style="text-align: center; {{PBA color cell|{{{team}}}}}" {{!}} Career highlights and awards
 +
{{!}}-
 +
}}
 +
{{#if:{{{awards|}}}{{{highlights|}}}|
 +
{{!}} colspan=2 style="text-align: left" {{!}} {{{awards|{{{highlights}}} }}}
 +
{{!}}-
 +
}}
 +
{{#if:{{both|{{{stat1label|}}}|{{{career_end|{{{finalyear|}}} }}} }}|
 +
! colspan=2 style="text-align: center; {{PBA color cell|{{{team}}} }}" {{!}} Career {{#switch:{{{league|PBA}}}|both=PBA and ABA|{{{league|PBA}}} }} statistics
 +
{{!}}-
 +
! style="text-align: right" {{!}} {{{stat1label}}}
 +
{{!}} style="text-align: left" {{!}} {{{stat1value}}}
 +
{{!}}-
 +
{{#if:{{{stat2label|}}}|
 +
! style="text-align: right" {{!}} {{{stat2label}}}
 +
{{!}} style="text-align: left" {{!}} {{{stat2value}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{stat3label|}}}|
 +
! style="text-align: right" {{!}} {{{stat3label}}}
 +
{{!}} style="text-align: left" {{!}} {{{stat3value}}}
 +
{{!}}-
 +
}}
 +
}}
 +
<includeonly>{{#if:{{#switch: {{{league|PBA}}} |PBA |[[PBA]] |Philippine Basketball Association |[[Philippine Basketball Association{{!}}PBA]]=1}}|
 +
! colspan=2 style="font-size: 90%; text-align: center" {{!}} {{#if:{{{finalyear|}}}{{{career_end|}}}|<span class="plainlinks">[http://www.nba.com/historical/playerfile/index.html?player={{{profile|{{PAGENAMEE}}}}} Info Page]</span>|{{PBA playerfile|{{{profile|{{PAGENAMEE}}}}}|{{{name|{{PAGENAME}}}}}}}}}
 +
{{!}}-
 +
}}</includeonly>
 +
{{#if:{{{bbr|}}}|
 +
! colspan=2 style="font-size: 90%; text-align: center" {{!}} Stats @ <span class="plainlinks">[http://www.basketball-reference.com/players/{{{letter}}}/{{{bbr}}}.html Basketball-Reference.com]</span>
 +
{{!}}-
 +
}}
 +
{{#if:{{{pba|}}}|
 +
! colspan=2 style="font-size: 90%; text-align: center" {{!}} Stats @ <span class="plainlinks">[http://aol.nba.com/players/{{{nba}}} NBA.com]</span>
 +
{{!}}-
 +
}}
 +
{{#if:{{{HOF|}}}|
 +
! colspan=2 style="font-size: 90%; text-align: center; background-color: #d4af37" {{!}} [http://www.hoophall.com/hall-of-famers/tag/{{{HOF}}} Basketball Hall of Fame]
 +
{{!}}-
 +
}}
 +
{{#if:{{{HOF_player|}}}|
 +
! colspan=2 style="font-size: 90%; text-align: center; background-color: #d4af37" {{!}} [http://www.hoophall.com/hall-of-famers/tag/{{{HOF_player}}} Basketball Hall of Fame as player]
 +
{{!}}-
 +
}}
 +
{{#if:{{{HOF_coach|}}}|
 +
! colspan=2 style="font-size: 90%; text-align: center; background-color: #d4af37" {{!}} [http://www.hoophall.com/hall-of-famers/tag/{{{HOF_coach}}} Basketball Hall of Fame as coach]
 +
{{!}}-
 +
}}
 +
{{#if:{{{medaltemplates|}}}|
 +
{{!}} colspan=2 style="text-align: center" {{!}} {{ collapsible list
 +
| title      = Olympics
 +
| titlestyle = text-align: center; {{PBA color cell|{{{team}}}}}
 +
| liststyle  = font-weight: lighter; width: 100%
 +
| {{Infobox football biography 2/medal}}
 +
{{{medaltemplates}}}
 +
{{!}}}
 +
}}
 +
}}
 +
<noinclude>{{documentation}}</noinclude>

Revision as of 14:53, 9 November 2010

Template documentation[create]