Difference between revisions of "Template:Infobox basketball player"

From blackwiki
Jump to navigation Jump to search
imported>TFOWR
m (Unprotected Template:Infobox Euroleague Player: Unprotection, Consensus at ANI appears to be that original protection level should be restored. using TW)
imported>Magioladitis
Line 1: Line 1:
<table class = "infobox vcard" style="float: right; margin-left: 1em; width: 22em; font-size: 90%; clear: right;" cellspacing="3"><caption colspan="2" style="text-align: center; font-size: larger; font-weight: bold;" class = "fn">{{{name|{{PAGENAME}}}}}</caption>{{#if:{{{image|}}}|
+
{{tfd|Infobox basketball player}}
<tr><td colspan="2" padding: 1em 0em;" {{#ifeq:{{ucfirst:{{{image}}}}}|Replace this image1.svg|class="metadata"|}}> [[File:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}|200x250}}px|center|{{{caption|&#32;}}}]] {{#if:{{{caption|}}}|<div style="font-size:smaller; text-align:center;">{{{caption}}}</div>}}</td></tr>
+
{| class="infobox vcard vevent bordered" style="width: 22em; text-align: left; font-size: 88%"
 +
|+ style="font-size: larger" class="fn summary"| '''{{{name|{{PAGENAME}}}}}'''
 +
|-
 +
{{#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>}}
 
}}
 
}}
{{#if:{{{nickname|}}}|<tr><th style="text-align: right;">Nickname(s)</th><td class="role">{{{nickname}}}</td></tr>}}
+
{{#if:{{{team<includeonly>|</includeonly>}}}|{{!}}-
<tr><th style="text-align: right;">Position</th><td class="role">{{{position}}}</td></tr><tr><th style="text-align: right;">Height</th><td>{{#if:{{{height_ft|}}}{{{height_in|}}}
+
{{!}} 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>
 +
}}
 +
|- style="text-align: center"
 +
{{#if:{{{position<includeonly>|</includeonly>}}}|{{!}} ! colspan=2 {{!}} '''{{{position}}}'''
 +
}}
 +
|-
 +
{{#if:{{{birth_date<includeonly>|</includeonly>}}}{{{birth_place<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>}}}|{{!}}-
 +
{{!}} 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>}}}}}}}
 +
{{!}}-
 +
|-
 +
{{#if:{{{nationality|}}}
 +
| <tr><th style="text-align: right">Nationality</th>
 +
<td>{{{nationality|}}}{{#if:{{{nationality_2|}}}
 +
  | /{{{nationality_2}}}
 +
  </td></tr>
 +
}}<tr><th style="text-align: right">Height</th><td>{{#if:{{{height_ft|}}}{{{height_in|}}}
 
| {{convert|{{{height_ft|0}}}|ft|{{{height_in|0}}}|in|m|2|abbr=on}}
 
| {{convert|{{{height_ft|0}}}|ft|{{{height_in|0}}}|in|m|2|abbr=on}}
| {{#if:{{{height_m|}}} | {{height|m={{{height_m|0}}}|frac=2}} | {{{height}}}}}
+
| {{{height}}}
 
}}</td></tr>
 
}}</td></tr>
<tr><th style="text-align: right;">Weight</th><td>{{#if:{{{weight_lbs|{{{weight_lb|}}}}}}
+
<tr><th style="text-align: right">Weight</th><td>{{#if:{{{weight_lbs|{{{weight_lb|}}}}}}
| {{lb to kg|{{{weight_lbs|{{{weight_lb|0}}}}}}|abbr=yes}}
+
| {{convert|{{{weight_lbs|{{{weight_lb|0}}}}}}|lb|kg|0|abbr=on}}
| {{#if:{{{weight_kg|}}} | {{kg to lb|{{{weight_kg|0}}}|abbr=yes}} | {{{weight}}}}}
+
| {{{weight}}}
 
}}</td></tr>
 
}}</td></tr>
{{#if:{{{league|}}}|<tr><th style="text-align: right;">League</th><td>{{{league}}}</td></tr>}}{{#if:{{{team|}}}
+
{{#if:{{{league|}}}|<tr><th style="text-align: right">League</th><td>{{{league}}}</td></tr>}}
|<tr><th style="text-align: right;">Team</th><td class="org">{{{team}}}</td></tr>
+
{{#if:{{{salary|}}}
}}{{#if:{{{number|}}}
+
|<tr><th style="text-align: right">Salary</th><td class="num">${{{salary}}}</td></tr>
|<tr><th style="text-align: right;">Number</th><td class="num">{{{number}}}</td></tr>
+
}}
}}<tr><th style="text-align: right;">Born</th><td>{{{birth_date}}}{{#if:{{{birth_place|}}}
 
| <br/>{{{birth_place}}}
 
}}</td></tr>{{#if:{{{nationality|}}}
 
| <tr><th style="text-align: right;">Nationality</th>
 
<td>{{{nationality|}}}{{#if:{{{nationality_2|}}}
 
  | &#32;/{{{nationality_2}}}
 
  }}</td></tr>
 
}}{{#if:{{{death_date|}}}
 
| <tr><th style="text-align: right;">Died</th><td>{{{death_date}}}{{#if:{{{death_place|}}}
 
  | <br/>{{{death_place}}}
 
  }}</td></tr>
 
 
}}{{#if:{{{highschool|}}}
 
}}{{#if:{{{highschool|}}}
| <tr><th style="text-align: right;">High school</th><td>{{{highschool}}}</td></tr>
+
| <tr><th style="text-align: right">High school</th><td>{{{highschool}}}</td></tr>
 
}}{{#if:{{{college|}}}
 
}}{{#if:{{{college|}}}
| <tr><th style="text-align: right;">College</th><td>{{{college}}}</td></tr>
+
| <tr><th style="text-align: right">College</th><td>{{{college}}}</td></tr>
 
}}{{#if:{{{pro_club|}}}
 
}}{{#if:{{{pro_club|}}}
| <tr><th style="text-align: right;">Pre-draft club</th><td>{{{pro_club}}}</td></tr>
+
| <tr><th style="text-align: right">Pre-draft club</th><td>{{{pro_club}}}</td></tr>
 
}}{{#if:{{{draft|}}}
 
}}{{#if:{{{draft|}}}
| <tr><th style="text-align: right;">Draft</th><td>{{{draft}}}{{#if:{{{draft_year|}}}
+
| <tr><th style="text-align: right">Draft</th><td>{{{draft}}}{{#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>
 
   }}</td></tr>
}}<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|}}}
+
}}{{#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|}}}
 
   | {{{career_end}}}
 
   | {{{career_end}}}
 
   | ''present''
 
   | ''present''
}}</td></tr>{{#if:{{{former_teams|}}}
+
}}</td></tr>}}{{#if:{{{former_teams|}}}
| <tr style="vertical-align: top; padding: 1em;"><th style="text-align: right;">Former teams</th>
+
| <tr style="vertical-align: top; padding: 1em"><th style="text-align: right">Former teams</th>
 
<td>{{{former_teams}}}</td></tr>
 
<td>{{{former_teams}}}</td></tr>
 
}}{{#if:{{{awards|}}}
 
}}{{#if:{{{awards|}}}
| <tr style="vertical-align: top; padding: 1em;"><th style="text-align: right;">Awards</th><td>{{{awards}}}</td></tr>
+
| <tr style="vertical-align: top; padding: 1em"><th style="text-align: right">Awards</th><td>{{{awards}}}</td></tr>
 
}}{{#if:{{{halloffame|}}}
 
}}{{#if:{{{halloffame|}}}
| <tr style="vertical-align: top; padding: 1em;"><th style="text-align: right;">Hall of Fame</th><td>{{{halloffame}}}</td></tr>
+
| <tr style="vertical-align: top; padding: 1em"><th style="text-align: right">Hall of Fame</th><td>{{{halloffame}}}</td></tr>
 
}}{{#if:{{{agents|}}}
 
}}{{#if:{{{agents|}}}
| <tr style="vertical-align: top; padding: 1em;"><th style="text-align: right;">[[Sports agent|Agent(s)]]</th><td>{{{agents}}}</td></tr>
+
| <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 | }} |
}}</table><noinclude>{{template doc}}</noinclude>
+
<tr style="vertical-align: top; padding: 1em"><th style="text-align: right">Profile</th><td>{{NBA-profile-infobox|{{{profile|{{PAGENAMEE}}}}}}}</td></tr>}}
 +
|}<noinclude>{{documentation}}<!-- place category and language links on the /doc page, not here --></noinclude>

Revision as of 12:26, 4 October 2010

Template:Tfd

Infobox basketball player
[[File:{{{image}}}|200px]]
{{{caption}}}
colspan=2 style="text-align: center; background-color: #Template:NBA color"| [[{{{team}}}|{{{team}}}]]  – No. --
{{{position}}}
Born: {{{birth_date}}}
{{{birth_place}}}
Died: {{{death_date}}}
{{{death_place}}}
Template documentation[create]