Difference between revisions of "Template:Infobox basketball player"

From blackwiki
Jump to navigation Jump to search
imported>Magioladitis
imported>WOSlinker
(use Infobox)
Line 1: Line 1:
{{tfd|Infobox basketball player}}
+
{{Infobox
{| class="infobox vcard vevent bordered" style="width: 22em; text-align: left; font-size: 88%"
+
|bodyclass = vcard
|+ style="font-size: larger" class="fn summary"| '''{{{name|{{PAGENAME}}}}}'''
+
|titleclass = fn
|-
+
 
{{#if:{{{image<includeonly>|</includeonly>}}}|{{!}} colspan=2 style="text-align: center; border-bottom: 1px solid DimGray" {{!}}[[File:{{{image}}}|{{{width|200}}}px]]{{#if:{{{caption<includeonly>|</includeonly>}}}|<br /><small>{{{caption}}}</small>}}
+
|title = {{{name|{{PAGENAME}}}}}
}}
+
|image = {{#if:{{{image|}}}|[[File:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}|200x250}}px|{{{caption|&#32;}}}]]}}
{{#if:{{{team<includeonly>|</includeonly>}}}|{{!}}-
+
|caption = {{{caption|}}}
{{!}} colspan=2 style="text-align: center; background-color: #{{NBA color|{{{team}}}|1}}"{{!}} <span style="color: #{{NBA color|{{{team}}}|2}}" class="note">'''[[{{{team_link|{{{team}}}}}}|<span style="color: #{{NBA color|{{{team}}}|2}}">{{{team}}}</span>]] {{#if:{{{number<includeonly>|</includeonly>}}}|&nbsp;– No. {{{number|--}}}'''}}</span>
+
 
}}
+
|label2  = Nickname(s)
|- style="text-align: center"
+
|data2  = {{{nickname<includeonly>|</includeonly>}}}
{{#if:{{{position<includeonly>|</includeonly>}}}|{{!}} ! colspan=2 {{!}} '''{{{position}}}'''
+
 
}}
+
|class3  = role
|-
+
|label3  = Position
{{#if:{{{birth_date<includeonly>|</includeonly>}}}{{{birth_place<includeonly>|</includeonly>}}}|{{!}}-
+
|data3  = {{{position<includeonly>|</includeonly>}}}
{{!}} colspan=2 style="text-align: center" {{!}} '''Born: ''' {{{birth_date<includeonly>|</includeonly>}}}{{#if:{{{birth_date<includeonly>|</includeonly>}}}|{{#if:{{{birth_place<includeonly>|</includeonly>}}}|<BR>}}}}{{{birth_place<includeonly>|</includeonly>}}}
+
 
{{#if:{{{death_date<includeonly>|</includeonly>}}}{{{death_place<includeonly>|</includeonly>}}}|{{!}}-
+
|label5  = Height
{{!}} colspan=2 style="text-align: center" {{!}} '''Died: ''' {{{death_date<includeonly>|</includeonly>}}}{{#if:{{{death_date<includeonly>|</includeonly>}}}|{{#if:{{{death_place<includeonly>|</includeonly>}}}|<BR>}}}}{{{death_place<includeonly>|</includeonly>}}}}}}}
+
|data5  = {{#if:{{{height_ft|}}}{{{height_in|}}}
{{!}}-
+
  | {{convert|{{{height_ft|0}}}|ft|{{{height_in|0}}}|in|m|2|abbr=on}}
|-
+
  | {{#if:{{{height_m|}}} | {{height|m={{{height_m|0}}}|frac=2}} | {{{height<includeonly>|</includeonly>}}}}}
{{#if:{{{nationality|}}}
+
}}
| <tr><th style="text-align: right">Nationality</th>
+
 
<td>{{{nationality|}}}{{#if:{{{nationality_2|}}}
+
|label6  = Weight
   | /{{{nationality_2}}}
+
|data6  = {{#if:{{{weight_lbs|{{{weight_lb|}}}}}}
  </td></tr>
+
  | {{lb to kg|{{{weight_lbs|{{{weight_lb|0}}}}}}|abbr=yes}}
}}<tr><th style="text-align: right">Height</th><td>{{#if:{{{height_ft|}}}{{{height_in|}}}
+
  | {{#if:{{{weight_kg|}}} | {{kg to lb|{{{weight_kg|0}}}|abbr=yes}} | {{{weight<includeonly>|</includeonly>}}}}}
| {{convert|{{{height_ft|0}}}|ft|{{{height_in|0}}}|in|m|2|abbr=on}}
+
}}
| {{{height}}}
+
 
}}</td></tr>
+
|label8  = League
<tr><th style="text-align: right">Weight</th><td>{{#if:{{{weight_lbs|{{{weight_lb|}}}}}}
+
|data8  = {{{league<includeonly>|</includeonly>}}}
| {{convert|{{{weight_lbs|{{{weight_lb|0}}}}}}|lb|kg|0|abbr=on}}
+
 
| {{{weight}}}
+
|class9  = org
}}</td></tr>
+
|label9  = Team
{{#if:{{{league|}}}|<tr><th style="text-align: right">League</th><td>{{{league}}}</td></tr>}}
+
|data9  = {{{team<includeonly>|</includeonly>}}}
{{#if:{{{salary|}}}
+
 
|<tr><th style="text-align: right">Salary</th><td class="num">${{{salary}}}</td></tr>
+
|class10 = num
}}
+
|label10 = Number
}}{{#if:{{{highschool|}}}
+
|data10  = {{{number<includeonly>|</includeonly>}}}
| <tr><th style="text-align: right">High school</th><td>{{{highschool}}}</td></tr>
+
 
}}{{#if:{{{college|}}}
+
|label12 = Born
| <tr><th style="text-align: right">College</th><td>{{{college}}}</td></tr>
+
|data12  = {{{birth_date<includeonly>|</includeonly>}}}{{#if:{{{birth_place|}}}|<br/>{{{birth_place}}}}}
}}{{#if:{{{pro_club|}}}
+
 
| <tr><th style="text-align: right">Pre-draft club</th><td>{{{pro_club}}}</td></tr>
+
|label13 = Nationality
}}{{#if:{{{draft|}}}
+
|data13  = {{{nationality<includeonly>|</includeonly>}}}{{#if:{{{nationality_2|}}}
| <tr><th style="text-align: right">Draft</th><td>{{{draft}}}{{#if:{{{draft_year|}}}
+
   | &#32;/{{{nationality_2}}}
 +
}}
 +
 
 +
|label14 = Died
 +
|data14  = {{{death_date<includeonly>|</includeonly>}}}{{#if:{{{death_place|}}}|<br/>{{{death_place}}}}}
 +
 
 +
|label20 = High school
 +
|data20  = {{{highschool<includeonly>|</includeonly>}}}
 +
 
 +
|label21 = College
 +
|data21  = {{{college<includeonly>|</includeonly>}}}
 +
 
 +
|label22 = Pre-draft club
 +
|data22  = {{{pro_club<includeonly>|</includeonly>}}}
 +
 
 +
|label23 = Draft
 +
|data23  = {{{draft<includeonly>|</includeonly>}}}{{#if:{{{draft_year|}}}
 
   |, [[{{{draft_year}}} {{{draft_league|NBA Draft}}}|{{{draft_year}}}]] {{#if:{{{draft_team|}}}
 
   |, [[{{{draft_year}}} {{{draft_league|NBA Draft}}}|{{{draft_year}}}]] {{#if:{{{draft_team|}}}
 
     | <br/>{{{draft_team}}}
 
     | <br/>{{{draft_team}}}
    }}
+
  }}
  }}</td></tr>
+
}}
}}{{#if:{{{career_start|}}}{{{draft_year|}}}|<tr><th style="text-align: right">Pro career</th><td>{{{career_start|{{{draft_year|&#123;&#123;&#123;career_start&#125;&#125;&#125;}}} }}}–{{#if:{{{career_end|}}}
+
 
 +
|label30 = Pro career
 +
|data30  = {{{career_start|{{{draft_year|&#123;&#123;&#123;career_start&#125;&#125;&#125;}}} }}}–{{#if:{{{career_end|}}}
 
   | {{{career_end}}}
 
   | {{{career_end}}}
 
   | ''present''
 
   | ''present''
}}</td></tr>}}{{#if:{{{former_teams|}}}
+
}}
| <tr style="vertical-align: top; padding: 1em"><th style="text-align: right">Former teams</th>
+
 
<td>{{{former_teams}}}</td></tr>
+
|label31 = Former teams
}}{{#if:{{{awards|}}}
+
|data31  = {{{former_teams<includeonly>|</includeonly>}}}
| <tr style="vertical-align: top; padding: 1em"><th style="text-align: right">Awards</th><td>{{{awards}}}</td></tr>
+
 
}}{{#if:{{{halloffame|}}}
+
|label32 = Awards
| <tr style="vertical-align: top; padding: 1em"><th style="text-align: right">Hall of Fame</th><td>{{{halloffame}}}</td></tr>
+
|data32  = {{awards{<includeonly>|</includeonly>}}}
}}{{#if:{{{agents|}}}
+
 
| <tr style="vertical-align: top; padding: 1em"><th style="text-align: right">[[Sports agent|Agent(s)]]</th><td>{{{agents}}}</td></tr>}}{{#if:{{#switch: {{{league}}} |NBA |[[NBA]] |[[National Basketball Association{{!}}NBA]]=1 | }} |
+
|label33 = Hall of Fame
<tr style="vertical-align: top; padding: 1em"><th style="text-align: right">Profile</th><td>{{NBA-profile-infobox|{{{profile|{{PAGENAMEE}}}}}}}</td></tr>}}
+
|data33  = {{{halloffame<includeonly>|</includeonly>}}}
|}<noinclude>{{documentation}}<!-- place category and language links on the /doc page, not here --></noinclude>
+
 
 +
|label34 = [[Sports agent|Agent(s)]]
 +
|data34  = {{{agents<includeonly>|</includeonly>}}}
 +
 
 +
}}<noinclude>
 +
{{documentation}}
 +
</noinclude>

Revision as of 20:11, 12 October 2010

Infobox basketball player
Nickname(s){{{nickname}}}
Position{{{position}}}
Height{{{height}}}
Weight{{{weight}}}
League{{{league}}}
Team{{{team}}}
Number{{{number}}}
Born{{{birth_date}}}
Nationality{{{nationality}}}
Died{{{death_date}}}
High school{{{highschool}}}
College{{{college}}}
Pre-draft club{{{pro_club}}}
Draft{{{draft}}}
Pro career{{{career_start}}} –present
Former teams{{{former_teams}}}
Awards{{awards{}}}
Hall of Fame{{{halloffame}}}
Agent(s){{{agents}}}

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[create]