Difference between revisions of "Template:Infobox NCAA athlete"

From blackwiki
Jump to navigation Jump to search
(-wht spc)
imported>Frietjes
(fix for case where there is more than one image)
 
(80 intermediate revisions by 33 users not shown)
Line 1: Line 1:
<table class="infobox" style="float: right; margin-left: 1em; width: 22em; font-size: 90%;" cellspacing="3"><caption colspan="2" style="text-align: center; font-size: larger; font-weight: bold;">{{{name|{{PAGENAME}}}}}</caption>{{#if:{{{image|}}}|
+
{{Infobox
<tr><td colspan="2" padding: 1em 0em;"> [[Image:{{{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>
+
| bodyclass = vcard
}}
+
| aboveclass = fn
<tr><th style="text-align: right;">College</th><td>{{{college}}}</td></tr>
+
| abovestyle = {{#if:{{{image|}}}||border-bottom:#aaa 1px solid}}
<tr><th style="text-align: right;">Sport</th><td>{{{sport}}}</td></tr>
+
| above = {{{name| <includeonly>{{PAGENAMEBASE}}</includeonly> }}}
<tr><th style="text-align: right;">Position</th><td>{{{position}}}</td></tr>
+
 
{{#if:{{{jersey|}}}| <tr><th style="text-align: right;">Jersey #</th><td>{{{jersey}}}</td></tr>}}
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#invoke:Wikidata|claim|P18}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}}}
<tr><th style="text-align: right;">Class</th><td>{{{class}}}</td></tr>
+
| caption = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
<tr><th style="text-align: right;">Career</th><td>{{{career_start|{{{draft_year|&#123;&#123;&#123;career_start&#125;&#125;&#125;}}} }}} &ndash; {{#if:{{{career_end|}}}
+
 
  | {{{career_end}}}
+
| headerstyle = background-color: {{{color|{{{Color|#b0c4de}}}}}}; color: {{{fontcolor|black}}}
  | ''present''
+
| datastyle = text-align:left;
}}</td></tr>
+
 
{{#if:{{{major|}}}|<tr><th style="text-align: right;">Major </th><td>{{{major}}}</td></tr>}}
+
| label1 = College
{{#if:{{{minor|}}}|<tr><th style="text-align: right;">Minor </th><td>{{{minor}}}</td></tr>}}
+
| data1 = {{{college|}}}
{{#if:{{{nickname|}}}|<tr><th style="text-align: right;">Nickname</th><td>{{{nickname}}}</td></tr>
+
 
}}{{#if:{{{conference|}}}|<tr><th
+
| label2 = [[List of NCAA conferences|Conference]]
style="text-align: right;">Conference</th><td>{{{conference}}}</td></tr>}}<tr><th
+
| data2 = {{{conference|}}}
style="text-align: right;">Height</th><td>{{#if:{{{height_ft|}}}{{{height_in|}}}
+
 
| {{height|ft = {{{height_ft|0}}}|in = {{{height_in|0}}} | }}
+
| label3 = Sport
| {{{height}}}
+
| class3 = category
}}</td></tr>
+
| data3 = {{{sport|}}}
<tr><th style="text-align: right;">Weight</th><td>{{#if:{{{weight_lbs|{{{weight_lb|}}}}}}
+
 
| {{weight|lbs = {{{weight_lbs|{{{weight_lb|0}}}}}} | }}
+
| label4 = Position
| {{{weight}}}
+
| class4 = category
}}</td></tr>{{#if:{{{team|}}}
+
| data4 = {{{position|}}}
|<tr><th style="text-align: right;">Team</th><td>{{{team}}}</td></tr>
+
 
}}{{#if:{{{nationality|}}}
+
| label5 = Jersey #
| <tr><th style="text-align: right;">Nationality</th>
+
| data5 =  {{{jersey|}}}
<td>{{flagcountry|{{{nationality|}}}|}}{{#if:{{{nationality_2|}}}
+
 
  | &#32;/<br/>{{flagcountry|{{{nationality_2}}}|}}
+
| label6 = Class
  }}</td></tr>
+
| class6 = category
}}<tr><th style="text-align: right;">Born</th><td>{{{birth_date}}}{{#if:{{{birth_place|}}}
+
| data6 = {{{class|}}}
| <br/>{{{birth_place}}}
+
 
}}</td></tr>{{#if:{{{death_date|}}}
+
| label7 = [[Academic major|Major]]
| <tr><th style="text-align: right;">Died</th><td>{{{death_date}}}{{#if:{{{death_place|}}}
+
| data7 = {{{major|}}}
  | <br/>{{{death_place}}}
+
 
  }}</td></tr>
+
| label8 =  Minor
}}{{#if:{{{highschool|}}}
+
| data8 = {{{minor|}}}
| <tr><th style="text-align: right;">High school</th><td>{{{highschool}}}</td></tr>
+
 
}}{{#if:{{{draft|}}}
+
| label9 =  Nickname
| <tr><th style="text-align: right;">Draft</th><td>{{{draft}}}{{#if:{{{draft_year|}}}
+
| class9 = nickname
  |, [[{{{draft_year}}} NBA Draft|{{{draft_year}}}]] {{#if:{{{draft_team|}}}
+
| data9 = {{{nickname|}}}
    | <br/>{{{draft_team}}}
+
 
    }}
+
| label10 = Career
  }}</td></tr>
+
| data10 = {{#if:{{{career_start|}}}{{{year|}}}|{{{career_start|{{{year|{{{career_start}}} }}} }}}{{#if:{{{career_end|}}}|{{{career_end}}}|''present''}}}}
}}{{#if:{{{former_school(s)|}}}
+
 
| <tr style="vertical-align: top; padding: 1em;"><th style="text-align: right;">Former teams</th>
+
| label11 = Height
<td>{{{former_school(s)}}}</td></tr>
+
| data11 = {{#if:{{{height_ft|}}}{{{height_in|}}}|{{convert|{{{height_ft|0}}}|ft|{{{height_in|0}}}|in|m|2|abbr=on}}|{{{height|}}} }}
}}{{#if:{{{awards|}}}
+
 
| <tr style="vertical-align: top; padding: 1em;"><th style="text-align: right;">Awards</th><td>{{{awards}}}</td></tr>
+
| label12 = Weight
}}{{#if:{{{halloffame|}}}
+
| data12 = {{#if:{{{weight_lbs|}}}{{{weight_lb|}}}|{{convert|{{{weight_lbs|{{{weight_lb|0}}}}}}|lb|kg|0|abbr=on}}|{{{weight|}}} }}
| <tr style="vertical-align: top; padding: 1em;"><th style="text-align: right;">Hall of Fame</th><td>{{{halloffame}}}</td></tr>
+
 
}}{{#if:{{{agents|}}}
+
| label13 = Nationality
| <tr style="vertical-align: top; padding: 1em;"><th style="text-align: right;">[[Sports agent|Agent(s)]]</th><td>{{{agents}}}</td></tr>
+
| class13 = category
}}</table><noinclude>
+
| data13 = {{{nationality|}}}
:''See [[{{TALKPAGENAME}}|talk page]] for example usage.''
+
 
[[Category:Templates using ParserFunctions|NCAA Athlete]]
+
| label14 = Born
[[Category:people infobox templates|NCAA Athlete]]
+
| data14 = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}}}}
[[Category:sports infobox templates|NCAA Athlete]]
+
 
</noinclude>
+
| label15 = Died
 +
| data15 = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}}
 +
 
 +
| label16 = High school
 +
| data16 = {{{highschool|}}}
 +
 
 +
| label17 = Former school(s)
 +
| data17 = {{{former_school(s)|}}}
 +
 
 +
| header18 = {{#if:{{{career_highlights|}}}| Career highlights}}
 +
 
 +
| label19 = Awards
 +
| data19 = {{#if:{{{awards|}}}|<nowiki />}}
 +
| data20 = {{{awards|}}}
 +
 
 +
| label21 = Honors
 +
| data21 = {{#if:{{{honors|}}}|<nowiki />}}
 +
| data22 = {{{honors|}}}
 +
 
 +
| label23 = Records
 +
| data23 = {{#if:{{{records|}}}|<nowiki />}}
 +
| data24 = {{{records|}}}
 +
 
 +
| header25 = {{#if:{{{championships|}}}| Championships }}
 +
| data26 = {{{championship_list|}}}
 +
 
 +
| header27 = {{#if:{{{bowl_games|}}}| Bowl games}}
 +
| data28 = {{{bowl_list|}}}
 +
 
 +
| header29 = {{#if:{{{tournaments|}}}| Tournaments}}
 +
| data30 = {{{tournament_list|}}}
 +
 
 +
| header31 = {{#if:{{{medal_templates|{{{medaltemplates|}}}}}}
 +
|{{Infobox medal templates
 +
|medals = {{{medal_templates|{{{medaltemplates|}}}}}}
 +
|expand = {{{medal_templates-expand|{{{medaltemplates-expand|}}}}}}
 +
}}}}
 +
 
 +
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 22:34, 26 September 2016

Script error: No such module "Wikidata".
Script error: No such module "Wikidata".

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

50px Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata

Usage

{{Infobox NCAA athlete
| color = LightSteelBlue
| fontcolor = Black
| name =
| image =  
| image_size = 
| caption = 
| college =
| conference =
| sport =
| jersey =
| position =
| class =
| major = 
| minor = 
| nickname = 
| career_start = <!-- REQUIRED -->
| career_end = 
| height_ft = <!-- REQUIRED -->
| height_in =
| weight_lb = <!-- REQUIRED -->
| nationality =
| birth_date = {{birth date and age|YYYY|MM|DD}} <!-- REQUIRED -->
| birth_place =
| death_date = 
| death_place = 
| highschool =
| former_school(s)= 
| career_highlights =
| awards = 
| honors = 
| records = 
| championships =
| championship_list =
| bowl_games =
| bowl_list = 
| tournaments =
| tournament_list =
| medal_templates =
| medal_templates-expand =
}}

Example

{{Infobox NCAA athlete
| color = LightSteelBlue
| fontcolor = Black
| name = Evan Turner
| image = 20091112 Evan Turner cropped.jpg
| image_size = 250px
| caption = Turner on November 12, 2009
| college = [[Ohio State University|Ohio State]]
| conference = [[Big Ten Conference|Big Ten]]
| sport = [[Basketball]]
| jersey = 21
| position = [[shooting guard|Guard]]/[[small forward|Forward]]
| class = Junior
| major = Consumer and Family Financial Services
| minor = 
| nickname = The Villain
| career_start = 2007
| height_ft = 6
| height_in = 7
| weight_lb = 205
| nationality = American
| birth_date = {{birth date and age|mf=yes|1988|10|27}}
| birth_place = [[Chicago]]
| highschool = St. Joseph,<br />[[Westchester, Illinois]]
| former_school(s)= 
| career_highlights = y
| awards = 
*[[2009–10 Big Ten Conference men's basketball season|2009–10]] [[Big Ten Conference Men's Basketball Player of the Year|Big Ten Men's Basketball Player of the Year]]
*2010 National Player of the Year ([[Associated Press|AP]], [[Fox Sports (USA)|FOX]], [[NABC Player of the Year|NABC]], [[Naismith Award|Naismith]], ''[[Sporting News|TSN]]'', [[Oscar Robertson Trophy|USBWA-Robertson]], [[John R. Wooden Award|Wooden]]), 
*[[2010 Big Ten Conference Men's Basketball Tournament|2010 Big Ten Tournament Most Outstanding Player]]
| honors = 
*2006–2007 First-team [[Associated Press|AP]] Class AA All-state (Illinois)
*All-[[Big Ten Conference]] (Unanimous 1st team: [[2008–09 Big Ten Conference men's basketball season|2009]] [[2009–10 Big Ten Conference men's basketball season|2010]])
*All-[[Big Ten Conference Men's Basketball Tournament|Big Ten Tournament]] ([[2009 Big Ten Conference Men's Basketball Tournament|2009]], [[2010 Big Ten Conference Men's Basketball Tournament|2010]])
*[[2009 NCAA Men's Basketball All-Americans|2009 All-American]] honorable mention ([[Associated Press|AP]])
*2009 [[Oscar Robertson Trophy]] Finalist
*2010 [[Bob Cousy Award]] Finalist
*[[2010 NCAA Men's Basketball All-Americans|2010 All-American]] first-team ([[Associated Press|AP]], [[Fox Sports (USA)|FOX]], [[National Association of Basketball Coaches|NABC]], ''[[Sporting News|TSN]]'', [[John R. Wooden Award|Wooden]] (10-man team), [[United States Basketball Writers Association|USBWA]], [[Yahoo! Sports|YS]])
| records = 
*Career [[Big Ten Conference|Big Ten]] Player of the Week awards (10)
*Single-season [[Big Ten Conference|Big Ten]] Player of the Week awards (7, [[2009–10 Big Ten Conference men's basketball season|2009–10]])
*[[Big Ten Conference Men's Basketball Tournament|Big Ten Tournament]] Championship Game Points (31, [[2010 Big Ten Conference Men's Basketball Tournament|2010]])
| championships = Y
| championship_list = 
;Team
*[[2008 National Invitation Tournament]]
*[[2009–10 Big Ten Conference men's basketball season|2009–10 Big Ten Conference season Co-champions]]
*[[2010 Big Ten Conference Men's Basketball Tournament|2010 Big Ten Conference Tournament]]
;Individual
*2008–09 Big Ten Scoring Champion
*2009–10 Big Ten Scoring Champion
*2009–10 Big Ten Defensive Rebounds Champion
| tournaments = Y
| tournament_list = [[2008 National Invitation Tournament|2008 NIT]], [[2009 NCAA Men's Division I Basketball Tournament|2009 NCAA]], [[2009 Summer Universiade]], [[2010 NCAA Men's Division I Basketball Tournament|2010 NCAA]]
}}
Evan Turner
250px
Turner on November 12, 2009
CollegeOhio State
ConferenceBig Ten
SportBasketball
PositionGuard/Forward
Jersey #21
ClassJunior
MajorConsumer and Family Financial Services
NicknameThe Villain
Career2007–present
Height6 ft 7 in (2.01 m)
Weight205 lb (93 kg)
NationalityAmerican
Born (1988-10-27) October 27, 1988 (age 37)
Chicago
High schoolSt. Joseph,
Westchester, Illinois
Career highlights
Awards
Honors
Records
Championships
Team
Individual
  • 2008–09 Big Ten Scoring Champion
  • 2009–10 Big Ten Scoring Champion
  • 2009–10 Big Ten Defensive Rebounds Champion
Tournaments
2008 NIT, 2009 NCAA, 2009 Summer Universiade, 2010 NCAA
[[Category:Infobox templates|Template:Remove first word]]

Microformat

Template:UF-hcard-person