Template:Infobox tennis biography/doc

From The Democratikan Wiki

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.

<syntaxhighlight lang="wikitext" style="overflow: auto">

Career record{{#property:P564}}
Career record{{#property:P555}}

</syntaxhighlight>

Wheelchair tennis

Five additional fields are available for wheelchair tennis players <syntaxhighlight lang="wikitext" style="overflow:auto"> | WheelchairTennisMastersresult = | Paralympicsresult = | WheelchairTennisMastersDoublesresult = | ParalympicsDoublesresult = | WheelchairWorldTeamCupresult = </syntaxhighlight>

Tennis coaches

Seven additional fields are available for tennis coaches <syntaxhighlight lang="wikitext" style="overflow:auto"> | CoachYears = | CoachPlayers = | CoachSinglesTitles = | CoachDoublesTitles = | CoachTournamentRecord = | CoachingAwards = | CoachingRecords = </syntaxhighlight>

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.

<syntaxhighlight lang="wikitext" style="overflow: auto;">

Infobox tennis biography/doc
{{Infobox tennis biography
}}

</syntaxhighlight>

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

<syntaxhighlight lang="wikitext" style="overflow: auto;">

Lua error in package.lua at line 80: module 'Module:i18n' not found.
Lua error in package.lua at line 80: module 'Module:i18n' not found.
Career record{{#property:P564}}
Career record{{#property:P555}}
Template:Infobox ABC

</syntaxhighlight>

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