Difference between revisions of "Template:Infobox sportsperson biography"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
(Undid revision 525559726 by Frietjes (talk), will use sandbox)
Line 1: Line 1:
{{Infobox sportsperson
+
<includeonly>{| class="infobox vcard" style="width: {{#if:{{{box_width|}}}|{{{box_width}}}|24em}}; {{{box_style|}}}" cellspacing="3"
|name            = {{{name|{{PAGENAME}}}}}
+
! colspan=5 class="fn" cellpadding="0" cellspacing="0"; style="font-size: 14px; text-align: center; background-color: #b0c4de" | {{{name|{{PAGENAME}}}}}{{#if:{{{native_name|}}}|<br /><span class="nickname">{{{native_name}}}</span>}}{{#if:{{{latin_name|}}}|<br /><span class="nickname">{{{latin_name}}}</span>}}
|native_name      = {{{{{|safesubst:}}}br separated entries
+
|-
| 1 = {{{{{|safesubst:}}}#if:{{{Native name|}}}|{{{Native name}}}|{{{native_name|}}}}}
+
{{#if:{{{image|}}}|
| 2 = {{{{{|safesubst:}}}#if:{{{latin_name|}}}|{{lang|la|{{{latin_name}}}}}}}
+
{{!}} colspan=5 style="text-align: center" {{!}} {{#if:{{{{{#if:{{{image size|}}}|image|}} size|}}}|[[file:{{{image}}}|{{{{{#if:{{{image size|}}}|image|}} size}}}|alt={{{alt|}}}]]|{{#if:{{{image{{#if:{{{image_size|}}}|_|}}size|}}}|[[file:{{{image}}}|{{{image{{#if:{{{image_size|}}}|_|}}size}}}|alt={{{alt|}}}]]|{{#ifeq:{{isValidPageName|{{{image|}}}}}|valid|[[file:{{{image}}}|frameless|alt={{{alt|}}}]]|{{{image}}}}}}}}} {{{caption|}}}
}}
+
{{!}}-
|native_name_lang =
+
}}
|image            = {{{image|}}}
+
|-
|image_size      = {{{{{|safesubst:}}}#if:{{{image_size|}}}
+
! colspan=5 style="text-align: center; background-color: #b0c4de" {{!}} Personal Information
  |{{{image_size}}}
+
|-
  |{{{{{|safesubst:}}}#if:{{{image size|}}}
+
{{#if: {{{Native name|}}}|
    |{{{image size|}}}
+
{{!}} colspan="1" width="40%" {{!}} '''Native name'''
    |{{{imagesize|}}}
+
{{!}} colspan="4" width="60%" {{!}} {{{Native name}}}
    }}
+
{{!}}-
  }}
+
}}
|alt             = {{{alt|}}}
+
 
|caption          = {{{caption|}}}
+
{{#if: {{{Birth name|}}}|
|birth_name      = {{{Birth name|}}}
+
{{!}} colspan="1" width="40%" {{!}} '''[[Birth name]]'''
|fullname        = {{{Full name|}}}
+
{{!}} colspan="4" width="60%" {{!}} {{{Birth name}}}
|nickname        = {{{Nickname(s)|}}}
+
{{!}}-
|nationality      = {{{Nationality|}}}
+
}}
|ethnicity        = {{{Ethnicity|}}}
+
 
|citizenship      = {{{Citizenship|}}}
+
{{#if: {{{Full name|}}}|
|birth_date      = {{{Born|}}}
+
{{!}} colspan="1" width="40%" {{!}} '''Full name'''
|birth_place      = {{{Birth place|}}}
+
{{!}} colspan="4" width="60%" {{!}} {{{Full name}}}
|death_date      = {{{Died|}}}
+
{{!}}-
|death_place      = {{{Death place|}}}
+
}}
|residence        = {{{Residence|}}}
+
 
|education        = {{{Education|}}}
+
{{#if: {{{Nickname(s)|}}}|
|alma_mater      = {{{Alma mater|}}}
+
{{!}} colspan="1" width="40%" {{!}} '''Nickname(s)'''
|years_active    = {{{Years active|}}}
+
{{!}} colspan="4" width="60%" {{!}} {{{Nickname(s)}}}
|height          = {{{Height|}}}
+
{{!}}-
|weight          = {{{Weight|}}}
+
}}
|website          = {{{Website|}}}
+
 
|country          = {{{Country|}}}
+
{{#if: {{{Nationality|}}}|
|sport            = {{{Sport|}}}
+
{{!}} colspan="1" width="40%" {{!}} '''Nationality'''
|event            = {{{Event(s)|}}}
+
{{!}} colspan="4" width="60%" {{!}} {{{Nationality}}}
|club            = {{{Club|}}}
+
{{!}}-
|coach            = {{{Coach|}}}
+
}}
|retired          = {{{Retired|}}}
+
 
|medaltemplates  = {{{{{|safesubst:}}}#if:{{{Competition 1|}}}{{{Competition 2|}}}{{{Competition 3|}}}{{{Competition 4|}}}{{{Competition 5|}}}{{{Competition 6|}}}|
+
{{#if: {{{Ethnicity|}}}|
{{MedalCount
+
{{!}} colspan="1" width="40%" {{!}} '''Ethnicity'''
| {{{Competition 1|}}} | {{{Gold 1|}}} | {{{Silver 1|}}} | {{{Bronze 1|}}}
+
{{!}} colspan="4" width="60%" {{!}} {{{Ethnicity}}}
| {{{Competition 2|}}} | {{{Gold 2|}}} | {{{Silver 2|}}} | {{{Bronze 2|}}}
+
{{!}}-
| {{{Competition 3|}}} | {{{Gold 3|}}} | {{{Silver 3|}}} | {{{Bronze 3|}}}
+
}}
| {{{Competition 4|}}} | {{{Gold 4|}}} | {{{Silver 4|}}} | {{{Bronze 4|}}}
+
 
| {{{Competition 5|}}} | {{{Gold 5|}}} | {{{Silver 5|}}} | {{{Bronze 5|}}}
+
{{#if: {{{Citizenship|}}}|
| {{{Competition 6|}}} | {{{Gold 6|}}} | {{{Silver 6|}}} | {{{Bronze 6|}}}
+
{{!}} colspan="1" width="40%" {{!}} '''Citizenship'''
}} }}
+
{{!}} colspan="4" width="60%" {{!}} {{{Citizenship}}}
{{{Medal Records|{{{medaltemplates|}}}}}}
+
{{!}}-
|show-medals      = {{{show-medals|}}}
+
}}
}}</includeonly><noinclude>
+
 
 +
{{#if: {{{Born|}}}{{{Born|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Born'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Born}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Died|}}}{{{Died|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Died'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Died}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Residence|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Residence'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Residence}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Education|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Education'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Education}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Alma mater|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''[[Alma mater]]'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Alma mater}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Years active|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Years active'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Years active}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Height|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Height'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Height}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Weight|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Weight'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Weight}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Website|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} ''' Website'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{ Website}}}
 +
{{!}}-
 +
}}
 +
 
 +
|-
 +
! colspan=5 style="text-align: center; background-color: #b0c4de" {{!}} Sport
 +
|-
 +
{{#if: {{{Country|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Country'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Country}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Sport|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Sport'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Sport}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Event(s)|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Event(s)'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Event(s)}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Club|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Club'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Club}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Coach|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Coach'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Coach}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Retired|}}}|
 +
{{!}} colspan="1" width="40%" {{!}} '''Retired'''
 +
{{!}} colspan="4" width="60%" {{!}} {{{Retired}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Competition 1|}}} {{{Competition 2|}}} {{{Competition 3|}}}{{{Competition 4|}}}{{{Competition 5|}}}{{{Competition 6|}}}|
 +
! colspan=5 style="text-align: center; background-color:  #b0c4de" {{!}} Achievements and titles
 +
{{!}}-
 +
}}
 +
|-
 +
{{#if: {{{Competition 1|}}}|
 +
{{!}} align="left" colspan="2" width="70%" {{!}} '''{{{Competition 1}}}'''
 +
{{!}} bgcolor="gold" width="10%" align="center" {{!}} {{{Gold 1}}}
 +
{{!}} bgcolor="silver" width="10%" align="center" {{!}} {{{Silver 1}}}
 +
{{!}} bgcolor="CC9966" width="10%" align="center" {{!}} {{{Bronze 1}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Competition 2|}}}|
 +
{{!}} align="left" colspan="2" width="70%" {{!}} '''{{{Competition 2}}}'''
 +
{{!}} bgcolor="gold" width="10%" align="center" {{!}} {{{Gold 2}}}
 +
{{!}} bgcolor="silver" width="10%" align="center" {{!}} {{{Silver 2}}}
 +
{{!}} bgcolor="CC9966" width="10%" align="center" {{!}} {{{Bronze 2}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Competition 3|}}}|
 +
{{!}} align="left" colspan="2" width="70%" {{!}} '''{{{Competition 3}}}'''
 +
{{!}} bgcolor="gold" width="10%" align="center" {{!}} {{{Gold 3}}}
 +
{{!}} bgcolor="silver" width="10%" align="center" {{!}} {{{Silver 3}}}
 +
{{!}} bgcolor="CC9966" width="10%" align="center" {{!}} {{{Bronze 3}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Competition 4|}}}|
 +
{{!}} align="left" colspan="2" width="70%" {{!}} '''{{{Competition 4}}}'''
 +
{{!}} bgcolor="gold" width="10%" align="center" {{!}} {{{Gold 4}}}
 +
{{!}} bgcolor="silver" width="10%" align="center" {{!}} {{{Silver 4}}}
 +
{{!}} bgcolor="CC9966" width="10%" align="center" {{!}} {{{Bronze 4}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if: {{{Competition 5|}}}|
 +
{{!}} align="left" colspan="2" width="70%" {{!}} '''{{{Competition 5}}}'''
 +
{{!}} bgcolor="gold" width="10%" align="center" {{!}} {{{Gold 5}}}
 +
{{!}} bgcolor="silver" width="10%" align="center" {{!}} {{{Silver 5}}}
 +
{{!}} bgcolor="CC9966" width="10%" align="center" {{!}} {{{Bronze 5}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{Competition 6|}}}|
 +
{{!}} align="left" colspan="2" width="70%" {{!}} '''{{{Competition 6}}}'''
 +
{{!}} bgcolor="gold" width="10%" align="center" {{!}} {{{Gold 6}}}
 +
{{!}} bgcolor="silver" width="10%" align="center" {{!}} {{{Silver 6}}}
 +
{{!}} bgcolor="CC9966" width="10%" align="center" {{!}} {{{Bronze 6}}}
 +
{{!}}-
 +
}}
 +
 
 +
{{#if:{{{Medal Records|{{{medaltemplates|}}}}}}|
 +
{{!}} colspan="5" {{!}} {{Infobox medal templates
 +
  | titlestyle = background-color: #b0c4de;
 +
  | medals = {{{medaltemplates|}}}
 +
  | expand = {{#ifeq:{{lc:{{{show-medals}}}}}|no||expanded}}
 +
}}}}
 +
|}</includeonly><noinclude>
 
{{being deleted|6 November 2012|merge=Template:Infobox sportsperson}}
 
{{being deleted|6 November 2012|merge=Template:Infobox sportsperson}}
 
{{Documentation}}
 
{{Documentation}}
 
[[Category:Sportsperson infobox templates|Sportsperson biography]]
 
[[Category:Sportsperson infobox templates|Sportsperson biography]]
 
</noinclude>
 
</noinclude>

Revision as of 17:03, 29 November 2012

Template documentation[create]