Template:Infobox tennis biography/doc: Difference between revisions

Jump to navigation Jump to search
m (1 revision imported)
No edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{High-use}}
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata|Module:Check for unknown parameters}}
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata|Module:Check for unknown parameters}}
{{Uses Wikidata|P555|P564|P18}}
{{Uses Wikidata|P555|P564|P18}}
Line 9: Line 10:
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.
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.


<pre style="overflow: auto">
<syntaxhighlight lang="wikitext" style="overflow: auto">
{{Infobox tennis biography
{{Infobox tennis biography
| name                  =  
| name                  =  
Line 16: Line 17:
| alt                    =  
| alt                    =  
| caption                = <!-- brief text caption for the image -->
| caption                = <!-- brief text caption for the image -->
| fullname              =  
| full_name              = <!-- if different -->
| native_name            =  
| native_name            =  
| native_name_lang      =  
| native_name_lang      =  
Line 28: Line 29:
| death_place            =  
| death_place            =  
| height                = <!-- X ft Y in, X cm OR X m; the template will automatically convert (otherwise {{convert}} can be used) -->
| height                = <!-- X ft Y in, X cm OR X m; the template will automatically convert (otherwise {{convert}} can be used) -->
| college                =  
| college                = <!-- or | university = -->
| coach                  = <!-- Coach(es); list the current coach or (if there is more than one) list the current coaches -->
| coach                  = <!-- Coach(es); list the current coach or (if there is more than one) list the current coaches -->
| turnedpro              =  
| turnedpro              =  
Line 40: Line 41:
| singlesrecord          = <!-- you may place a <br /> to over-ride values in WikiData, which is incorrect on all pre-1968 players-->
| singlesrecord          = <!-- you may place a <br /> to over-ride values in WikiData, which is incorrect on all pre-1968 players-->
| singlestitles          =  
| singlestitles          =  
| highestsinglesranking  = <!-- use {{Abbr|No.|number}} and numeral -->
| highestsinglesranking  = <!-- use No. and numeral -->
| currentsinglesranking  = <!-- NEVER UPDATE UNTIL THE WTA/ATP WEBSITE IS UPDATED (Usually on Mondays) -->
| currentsinglesranking  = <!-- NEVER UPDATE UNTIL THE WTA/ATP WEBSITE IS UPDATED (Usually on Mondays) -->
| retirementsinglesranking =  
| retirementsinglesranking =  
Line 109: Line 110:


| Team                  = <!-- adds team information-->
| Team                  = <!-- adds team information-->
| LaverCupresult        =
| DavisCupresult        =
| DavisCupresult        =
| FedCupresult          =
| FedCupresult          =
Line 119: Line 119:
| medaltemplates-expand  = <!-- expands the medaltemplates -->
| medaltemplates-expand  = <!-- expands the medaltemplates -->
| updated                = <!-- adds date this template was last updated at an individual article -->
| updated                = <!-- adds date this template was last updated at an individual article -->
}}</pre>
}}</syntaxhighlight>


=== Wheelchair tennis ===
=== Wheelchair tennis ===
Five additional fields are available for [[wheelchair tennis]] players
Five additional fields are available for [[wheelchair tennis]] players
<pre style="overflow:auto">
<syntaxhighlight lang="wikitext" style="overflow:auto">
| WheelchairTennisMastersresult        =  
| WheelchairTennisMastersresult        =  
| Paralympicsresult                    =  
| Paralympicsresult                    =  
Line 129: Line 129:
| ParalympicsDoublesresult            =  
| ParalympicsDoublesresult            =  
| WheelchairWorldTeamCupresult        =  
| WheelchairWorldTeamCupresult        =  
</pre>
</syntaxhighlight>


=== Tennis coaches ===
=== Tennis coaches ===
Seven additional fields are available for tennis coaches
Seven additional fields are available for tennis coaches
<pre style="overflow:auto">
<syntaxhighlight lang="wikitext" style="overflow:auto">
| CoachYears            =  
| CoachYears            =  
| CoachPlayers          =  
| CoachPlayers          =  
Line 141: Line 141:
| CoachingAwards        =  
| CoachingAwards        =  
| CoachingRecords      =  
| CoachingRecords      =  
</pre>
</syntaxhighlight>


=== Notes ===
=== Notes ===
Line 147: Line 147:
* Include '''career prize money''' in [[US Dollar]]s.
* Include '''career prize money''' in [[US Dollar]]s.
* For '''height''', use the appropriate conversion template.
* For '''height''', use the appropriate conversion template.
* '''Singles and Doubles titles''', include only titles won on the [[Women's Tennis Association|WTA]] (women) or the [[Association of Tennis Professionals|ATP]] (men) Tour, not the [[International Tennis Federation|ITF]] circuit (the tier below). Titles won on the ITF Circuit can be included in brackets.
* '''Singles and Doubles titles''', include only titles won on the [[Women's Tennis Association|WTA]] (women) or the [[Association of Tennis Professionals|ATP]] (men) Tour, not the [[International Tennis Federation|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 '''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.
* The '''singles and doubles career record''' only includes matches won and lost on the ATP or WTA Tour.
Line 161: Line 161:
The '''module''' parameter is used for embedding other templates into this infobox (see [[Wikipedia:Infobox modules]] and [[:Category:Biographical templates usable as a module]]).
The '''module''' parameter is used for embedding other templates into this infobox (see [[Wikipedia:Infobox modules]] and [[:Category:Biographical templates usable as a module]]).


<pre style="overflow: auto;">
<syntaxhighlight lang="wikitext" style="overflow: auto;">
{{Infobox tennis biography
{{Infobox tennis biography
| name =  
| name =  
Line 171: Line 171:
   }}
   }}
}}
}}
</pre>
</syntaxhighlight>


== Microformat ==
== Microformat ==

Latest revision as of 00:54, 29 March 2024

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 -->
| full_name              = <!-- if different -->
| 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                = <!-- or | university = -->
| 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 No. 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 an "Other tournaments" title -->
| WHCCresult             = 
| WCCCresult             = 
| MastersCupresult       = 
| GrandSlamCupresult     = 
| WCTFinalsresult        = 
| WTAChampionshipsresult = 
| Olympicsresult         = 
| Promajors              = <!-- adds a "Professional majors" title -->
| USProresult            = 
| WembleyProresult       = 
| FrenchProresult        = 
| Proother               = <!-- adds an "Other pro events" title -->
| TOCresult              = 

| 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-->
| 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

The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.

To include a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

Please do not rename or remove these classes nor collapse nested elements which use them.

Tracking categories