Difference between revisions of "Template:Infobox tennis biography"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(shrink BJK Cup label to fit on one line, add BJKCupresult parameter as alias of FedCupresult)
imported>Jonesey95
(update BJK Cup display per talk page back and forth and back and forth, like a tennis rally)
 
Line 202: Line 202:
 
| label91      = [[Davis Cup]]
 
| label91      = [[Davis Cup]]
 
| data91      = {{{DavisCupresult|}}}
 
| data91      = {{{DavisCupresult|}}}
| label92      = [[Fed Cup]]/[[Billie Jean King Cup|BJK Cup]]
+
| label92      = [[Fed Cup]]
| data92       = {{{FedCupresult|{{{BJKCupresult|}}}}}}
+
| data92      = {{{FedCupresult|}}}
| label93     = [[Hopman Cup]]
+
| label93      = [[BJK Cup]]
| data93       = {{{HopmanCupresult|}}}
+
| data93       = {{{BJKCupresult|}}}
| label94     = [[Wightman Cup]]
+
| label94     = [[Hopman Cup]]
| data94       = {{{WightmanCupresult|}}}
+
| data94       = {{{HopmanCupresult|}}}
 +
| label95     = [[Wightman Cup]]
 +
| data95       = {{{WightmanCupresult|}}}
  
| header95 = {{#if:{{{CoachYears|}}}{{{CoachPlayers|}}}| Coaching career {{#if:{{{CoachYears|}}}|<span class="nowrap">({{{CoachYears}}})</span>}} }}
+
| header96 = {{#if:{{{CoachYears|}}}{{{CoachPlayers|}}}| Coaching career {{#if:{{{CoachYears|}}}|<span class="nowrap">({{{CoachYears}}})</span>}} }}
  
| data96   = {{#if:{{{CoachPlayers|}}}| <div class="nowrap" style="text-align:left;">{{{CoachPlayers}}}</div> }}
+
| data97   = {{#if:{{{CoachPlayers|}}}| <div class="nowrap" style="text-align:left;">{{{CoachPlayers}}}</div> }}
  
| header97 = {{#if:{{{CoachSinglesTitles|}}}{{{CoachDoublesTitles|}}}{{{CoachTournamentRecord|}}}|Coaching achievements}}
+
| header98 = {{#if:{{{CoachSinglesTitles|}}}{{{CoachDoublesTitles|}}}{{{CoachTournamentRecord|}}}|Coaching achievements}}
  
| label98 = Coachee Singles Titles total
+
| label99 = Coachee Singles Titles total
| data98 = {{{CoachSinglesTitles|}}}
+
| data99 = {{{CoachSinglesTitles|}}}
  
| label99 = Coachee(s) Doubles Titles total
+
| label100 = Coachee(s) Doubles Titles total
| data99 = {{{CoachDoublesTitles|}}}
+
| data100 = {{{CoachDoublesTitles|}}}
  
| data100 = {{#if:{{{CoachTournamentRecord|}}}|'''List of notable tournaments<br />(with champion)'''<div style="text-align:left">
+
| data101 = {{#if:{{{CoachTournamentRecord|}}}|'''List of notable tournaments<br />(with champion)'''<div style="text-align:left">
 
{{{CoachTournamentRecord}}}
 
{{{CoachTournamentRecord}}}
 
</div>}}
 
</div>}}
  
| header101 = {{#if:{{{CoachingAwards|}}}{{{CoachingRecords|}}}|Coaching awards and records}}
+
| header102 = {{#if:{{{CoachingAwards|}}}{{{CoachingRecords|}}}|Coaching awards and records}}
  
| data102 = {{#if:{{{CoachingAwards|}}}|'''Awards'''<div>
+
| data103 = {{#if:{{{CoachingAwards|}}}|'''Awards'''<div>
 
{{{CoachingAwards}}}
 
{{{CoachingAwards}}}
 
</div>}}{{#if:{{{CoachingRecords|}}}|'''Records'''<div>
 
</div>}}{{#if:{{{CoachingRecords|}}}|'''Records'''<div>
Line 233: Line 235:
 
</div>}}
 
</div>}}
  
| data103       = {{{module|}}}
+
| data104       = {{{module|}}}
  
| header104     = {{#if:{{{medals|{{{medaltemplates|}}}}}}|{{Infobox medal templates
+
| header105     = {{#if:{{{medals|{{{medaltemplates|}}}}}}|{{Infobox medal templates
 
   |title  = {{{medals-title|{{{medaltemplates-title|}}}}}}
 
   |title  = {{{medals-title|{{{medaltemplates-title|}}}}}}
 
   |medals = {{{medals|{{{medaltemplates|}}}}}}
 
   |medals = {{{medals|{{{medaltemplates|}}}}}}
Line 245: Line 247:
  
 
}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox tennis biography with unsupported parameters|_VALUE_{{PAGENAME}}]]|preview = Page using [[Template:Infobox tennis biography]] with unknown parameter "_VALUE_"|ignoreblank=y
 
}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox tennis biography with unsupported parameters|_VALUE_{{PAGENAME}}]]|preview = Page using [[Template:Infobox tennis biography]] with unknown parameter "_VALUE_"|ignoreblank=y
| embed | name | image | image_size | alt | caption | full_name | fullname | native_name | native_name_lang | itf_name | country_represented | country represented | country | residence | birth_date | birth_place | death_date | death_place | height | turnedpro | retired | plays | college | coach | careerprizemoney | tennishofyear | tennishofid | website | singlesrecord | singlestitles | highestsinglesranking | currentsinglesranking | AustralianOpenresult | FrenchOpenresult | Wimbledonresult | USOpenresult | AustralianOpenjuniorresult | FrenchOpenjuniorresult | Wimbledonjuniorresult | USOpenjuniorresult | AustralianOpenseniorresult | FrenchOpenseniorresult | Wimbledonseniorresult | USOpenseniorresult | WHCCresult | WCCCresult | TOCresult | MastersCupresult | GrandSlamCupresult | WCTFinalsresult | WTAChampionshipsresult | Olympicsresult | WheelchairTennisMastersresult | Paralympicsresult | Promajors | USProresult | WembleyProresult | FrenchProresult | doublesrecord | doublestitles | highestdoublesranking | currentdoublesranking | AustralianOpenDoublesresult | FrenchOpenDoublesresult | WimbledonDoublesresult | USOpenDoublesresult | AustralianOpenDoublesjuniorresult | FrenchOpenDoublesjuniorresult | WimbledonDoublesjuniorresult | USOpenDoublesjuniorresult | AustralianOpenDoublesseniorresult | FrenchOpenDoublesseniorresult | WimbledonDoublesseniorresult | USOpenDoublesseniorresult | WHCCDoublesresult | WCCCDoublesresult | MastersCupDoublesresult | WTAChampionshipsDoublesresult | OlympicsDoublesresult | WheelchairTennisMastersDoublesresult | ParalympicsDoublesresult | mixedrecord | mixedtitles | AustralianOpenMixedresult | FrenchOpenMixedresult | WimbledonMixedresult | USOpenMixedresult | WHCCMixedDoublesresult | WCCCMixedDoublesresult | OlympicMixedDoublesresult | WheelchairWorldTeamCupresult | DavisCupresult | FedCupresult | HopmanCupresult | WightmanCupresult | CoachYears | CoachPlayers | CoachSinglesTitles | CoachDoublesTitles | CoachTournamentRecord | CoachingAwards | CoachingRecords | module | medals-title | medaltemplates-title | medals | medaltemplates | medals-expand | medaltemplates-expand | updated
+
| embed | name | image | image_size | alt | caption | full_name | fullname | native_name | native_name_lang | itf_name | country_represented | country represented | country | residence | birth_date | birth_place | death_date | death_place | height | turnedpro | retired | plays | college | coach | careerprizemoney | tennishofyear | tennishofid | website | singlesrecord | singlestitles | highestsinglesranking | currentsinglesranking | AustralianOpenresult | FrenchOpenresult | Wimbledonresult | USOpenresult | AustralianOpenjuniorresult | FrenchOpenjuniorresult | Wimbledonjuniorresult | USOpenjuniorresult | AustralianOpenseniorresult | FrenchOpenseniorresult | Wimbledonseniorresult | USOpenseniorresult | WHCCresult | WCCCresult | TOCresult | MastersCupresult | GrandSlamCupresult | WCTFinalsresult | WTAChampionshipsresult | Olympicsresult | WheelchairTennisMastersresult | Paralympicsresult | Promajors | USProresult | WembleyProresult | FrenchProresult | doublesrecord | doublestitles | highestdoublesranking | currentdoublesranking | AustralianOpenDoublesresult | FrenchOpenDoublesresult | WimbledonDoublesresult | USOpenDoublesresult | AustralianOpenDoublesjuniorresult | FrenchOpenDoublesjuniorresult | WimbledonDoublesjuniorresult | USOpenDoublesjuniorresult | AustralianOpenDoublesseniorresult | FrenchOpenDoublesseniorresult | WimbledonDoublesseniorresult | USOpenDoublesseniorresult | WHCCDoublesresult | WCCCDoublesresult | MastersCupDoublesresult | WTAChampionshipsDoublesresult | OlympicsDoublesresult | WheelchairTennisMastersDoublesresult | ParalympicsDoublesresult | mixedrecord | mixedtitles | AustralianOpenMixedresult | FrenchOpenMixedresult | WimbledonMixedresult | USOpenMixedresult | WHCCMixedDoublesresult | WCCCMixedDoublesresult | OlympicMixedDoublesresult | WheelchairWorldTeamCupresult | DavisCupresult | FedCupresult | BJKCupresult | HopmanCupresult | WightmanCupresult | CoachYears | CoachPlayers | CoachSinglesTitles | CoachDoublesTitles | CoachTournamentRecord | CoachingAwards | CoachingRecords | module | medals-title | medaltemplates-title | medals | medaltemplates | medals-expand | medaltemplates-expand | updated
| Othertournaments | OthertournamentsDoubles | OthertournamentsMixedDoubles | Mixed | Team | BJKCupresult
+
| Othertournaments | OthertournamentsDoubles | OthertournamentsMixedDoubles | Mixed | Team
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}<!-- add category and language links to the /doc page, not here  -->
 
{{documentation}}<!-- add category and language links to the /doc page, not here  -->
 
</noinclude>
 
</noinclude>

Latest revision as of 03:54, 16 December 2020

Template:Pp-dispute

Script error: No such module "Wikidata".
Script error: No such module "Wikidata".
Career record{{#property:P564}}
Career record{{#property:P555}}

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

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

Template:Uses Wikidata

Please do not make any significant alterations to the template (e.g., new fields, field name changes) without establishing general awareness and approval via the talk page.

Usage

All attributes are optional. If {{{name}}} is omitted, it will be inferred from the page title. If {{{singlesrecord}}} or {{{doublesrecord}}} is omitted, it will be inferred from any Wikidata entry.

{{Infobox tennis biography
| name                   = 
| image                  = <!-- bare image name, no formatting -->
| image_size             = 
| alt                    = 
| caption                = <!-- brief text caption for the image -->
| fullname               = 
| native_name            = 
| native_name_lang       = 
| itf_name               = <!-- official name as registered by the ITF, only fill if different from article name -->
| country_represented    = <!-- this is the country represented in international play, not citizenship -->
| residence              = 
| sportswear_(racquet)   = 
| birth_date             = <!-- {{birth date and age|yyyy|mm|dd}} -->
| birth_place            = 
| death_date             = <!-- {{death date and age|yyyy|mm|dd|yyyy|mm|dd}} first date is death date, second date is birth date-->
| death_place            = 
| height                 = <!-- X ft Y in, X cm OR X m; the template will automatically convert (otherwise {{convert}} can be used) -->
| college                = 
| coach                  = <!-- Coach(es); list the current coach or (if there is more than one) list the current coaches -->
| turnedpro              = 
| retired                = 
| plays                  = 
| careerprizemoney       = 
| tennishofyear          = <!-- year inducted into the Tennis Hall of Fame -->
| tennishofid            = <!-- ID from the Tennis HoF website, taken from http://www.tennisfame.com/hall-of-famers/inductees/First Name-Last Name i.e. martina-navratilova, which is all undercase letters-->
| website                = <!-- official web site address like this: [http://www.site.com site.com] -->

| singlesrecord          = <!-- you may place a <br /> to over-ride values in WikiData, which is incorrect on all pre-1968 players-->
| singlestitles          = 
| highestsinglesranking  = <!-- use {{Abbr|No.|number}} and numeral -->
| currentsinglesranking  = <!-- NEVER UPDATE UNTIL THE WTA/ATP WEBSITE IS UPDATED (Usually on Mondays) -->
| retirementsinglesranking = 
| AustralianOpenresult   = 
| FrenchOpenresult       = 
| Wimbledonresult        = 
| USOpenresult           = 

| AustralianOpenjuniorresult = <!-- do not add any jr. info once any pro result is recorded in the infobox -->
| FrenchOpenjuniorresult = <!-- do not add any jr. info once any pro result is recorded in the infobox -->
| Wimbledonjuniorresult  = <!-- do not add any jr. info once any pro result is recorded in the infobox -->
| USOpenjuniorresult     = <!-- do not add any jr. info once any pro result is recorded in the infobox -->
| AustralianOpenseniorresult = 
| FrenchOpenseniorresult = 
| Wimbledonseniorresult  = 
| USOpenseniorresult     = 
| Othertournaments       = <!-- adds a "Other tournaments" title -->
| WHCCresult             = 
| WCCCresult             = 
| TOCresult              = 
| MastersCupresult       = 
| GrandSlamCupresult     = 
| WCTFinalsresult        = 
| WTAChampionshipsresult = 
| Olympicsresult         = 
| Promajors              = <!-- adds a "Professional majors" title -->
| USProresult            = 
| WembleyProresult       = 
| FrenchProresult        = 

| doublesrecord          = <!-- you may place a <br /> to over-ride values in WikiData, which is incorrect on all pre-1968 players-->
| doublestitles          = 
| highestdoublesranking  = 
| currentdoublesranking  = <!-- NEVER UPDATE UNTIL THE WTA/ATP WEBSITE IS UPDATED (Usually on Mondays) -->
| retirementdoublesranking =
| AustralianOpenDoublesresult = 
| FrenchOpenDoublesresult = 
| WimbledonDoublesresult = 
| USOpenDoublesresult    = 
| AustralianOpenDoublesjuniorresult = <!-- do not add any jr. info once any pro result is recorded in the infobox -->
| FrenchOpenDoublesjuniorresult = <!-- do not add any jr. info once any pro result is recorded in the infobox -->
| WimbledonDoublesjuniorresult = <!-- do not add any jr. info once any pro result is recorded in the infobox -->
| USOpenDoublesjuniorresult = <!-- do not add any jr. info once any pro result is recorded in the infobox -->
| AustralianOpenDoublesseniorresult = 
| FrenchOpenDoublesseniorresult = 
| WimbledonDoublesseniorresult = 
| USOpenDoublesseniorresult = 

| OthertournamentsDoubles = <!-- adds a "Other doubles tournaments" title -->
| WHCCDoublesresult      =
| WCCCDoublesresult      =
| MastersCupDoublesresult = 
| WTAChampionshipsDoublesresult = 
| OlympicsDoublesresult  = 

| Mixed                  = <!-- adds mixed information-->
| mixedrecord            = 
| mixedtitles            = 
| AustralianOpenMixedresult = 
| FrenchOpenMixedresult  = 
| WimbledonMixedresult   = 
| USOpenMixedresult      = 
| OthertournamentsMixedDoubles =
| WHCCMixedDoublesresult =
| WCCCMixedDoublesresult =
| OlympicMixedDoublesresult = 

| Team                   = <!-- adds team information-->
| LaverCupresult         =
| DavisCupresult         =
| FedCupresult           =
| HopmanCupresult        =
| WorldTeamCupresult     =
| WightmanCupresult      =

| medaltemplates         = <!-- Olympic medal templates -->
| medaltemplates-expand  = <!-- expands the medaltemplates -->
| updated                = <!-- adds date this template was last updated at an individual article -->
}}

Wheelchair tennis

Five additional fields are available for wheelchair tennis players

| WheelchairTennisMastersresult        = 
| Paralympicsresult                    = 
| WheelchairTennisMastersDoublesresult = 
| ParalympicsDoublesresult             = 
| WheelchairWorldTeamCupresult         = 

Tennis coaches

Seven additional fields are available for tennis coaches

| CoachYears            = 
| CoachPlayers          = 
| CoachSinglesTitles    = 
| CoachDoublesTitles    = 
| CoachTournamentRecord = 
| CoachingAwards        = 
| CoachingRecords       = 

Notes

  • In the updated field, If the player is retired, put N/A in this field. Use the date of the previous Monday that the ATP or WTA updated player's stats.
  • Include career prize money in US Dollars.
  • For height, use the appropriate conversion template.
  • Singles and Doubles titles, include only titles won on the WTA (women) or the ATP (men) Tour, not the ITF circuit (the tier below). Titles won on the ITF Circuit can be included in brackets.
  • The Grand Slam results and Grand Slam doubles results sections show the furthest the player advanced in the Grand Slams, and in what year(s).
  • The singles and doubles career record only includes matches won and lost on the ATP or WTA Tour.
  • Please only use these fields if a player was a winner of a major team competition (e.g. Hopman Cup, World Team Cup, Davis Cup, Fed Cup/Billie Jean King Cup, and Wheelchair World Team Cup).
  • As an alternative to |height=, the parameters |height_m=, |height_cm= or |height_ft= and |height_in= may be used.

Use as a child template

The embed parameter is used when embedding this infobox into another.

This infobox may be used to create a genre-specific section within {{Infobox person}} (or similar biographical infobox templates) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see Wikipedia:Infobox modules. Also see the Template:Infobox documentation which explains embedding and subboxes.

{{Infobox person
| name = 
| image = 
| caption = 
| birth_date = 
| birth_place = 
| <!-- etc. -->
| module = 
  {{Infobox tennis biography | embed=yes
  | turnedpro = 
  | retired = 
  | plays = 
  | careerprizemoney = 
  | <!-- etc. -->
  }}
}}

Embedding other templates

The module parameter is used for embedding other templates into this infobox (see Wikipedia:Infobox modules and Category:Biographical templates usable as a module).

{{Infobox tennis biography
| name = 
| <!-- etc. -->
| module =
  {{Infobox ABC
  | embed = yes <!-- or child=yes / subbox=yes -->
  | <!-- etc. -->
  }}
}}

Microformat

Template:UF-hcard-person

Tracking categories