Template:Infobox table tennis player/doc: Difference between revisions

From The Global Wiki
Jump to navigation Jump to search
en>Justanothersgwikieditor
(update template documentation to similar to Template:Infobox sportsperson/doc to remove the usage of flag icon in nationality parameter per MOS:INFOBOXFLAG (Generally, flag icons should not be used in infoboxes, even when there is a "country", "nationality" or equivalent field))
 
m (1 revision imported)
 
(No difference)

Latest revision as of 01:13, 18 January 2023

{{Infobox table tennis player}} is an infobox for articles about table tennis players.

Usage

Script error: No such module "Parameter names example".

{{Infobox table tennis player
| name             = 
| image            = 
| image_size       = <!-- Only for images narrower than 220 pixels -->
| alt              = 
| caption          = 
| native_name      = 
| native_name_lang = 
| full_name        = 
| nickname         = 
| nationality      = <!-- use only when necessary per [[WP:INFONAT]] -->
| residence        = 
| birth_name       = 
| birth_date       = {{Birth date and age|YYYY|MM|DD}}
| birth_place      = 
| death_date       = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} -->
| death_place      = 
| playingstyle     = 
| equipment        = 
| disability_class =
| highest_rank     = 
| current_rank     = 
| club             = 
| height           = <!-- {{convert|X|ft|X|in|cm|abbr=on}} or {{convert|XXX|cm|ftin|frac=2|abbr=on}} -->
| weight           = <!-- {{convert|XXX|lb|kg st|abbr=on}} or {{convert|XX|kg|lb st|abbr=on}} -->
| medaltemplates   = 
| show-medals      = 
}}

Parameters

Field Description
name The common name of the table tennis player.
image An image of the table tennis player.
image_size The image size; only use if the image is smaller than 255px in width. If so, than put the image's respective width in pixels (e.g.: image_size=200px).
alt Alternative text for the image to be displayed, see WP:ALT.
caption Caption for the image to be displayed.
full_name
fullname
The full name of the table tennis player as listed in the ITTF database (http://www.ittf.com/ittf_stats/).
nickname The table tennis player's common nickname in italics. If there is more than one, list each name alphabetically and separate them by commas.
nationality The subject's nationality. May be used instead of citizenship (below) or vice versa in cases where any confusion could result. Should only be used with citizenship when they somehow differ. Should only be used if nationality cannot be inferred from the birthplace. Do not use a flag template. This parameter is not displayed when the national_team parameter is defined.
residence The table tennis player's residence.
birth_name The table tennis player's birth name, if different from current name (e.g. maiden name).
birth_date The table tennis player's birthdate. Use {{birth date and age|year|month|day}} for living table tennis player.
birth_place The table tennis player's birthplace.
death_date The table tennis player's date of death, if applicable.
death_place The table tennis player's place of death, if applicable.
playingstyle The table tennis player's primary playing style. If there is more than one, list each style alphabetically and separate them by commas.
equipment The table tennis player's equipment used.
disability_class The disability sport classification(s) that the para table tennis player competes under.
highest_rank
hrank
The table tennis player's highest rank held.
current_rank
crank
The table tennis player's current rank held.
club The name of the table tennis club the player belongs to.
height The table tennis player's height. If they are American, put measurements in feet & inches first, then in metric units in parentheses. If they are not American, place measurements in metric units first, then in feet & inches in parentheses.
weight The table tennis player's weight. If they are American, put measurements in pounds first, then in kilograms in parentheses. If they are not American, place measurements in kilograms first, then in pounds in parentheses.
medaltemplates All templates from the medal record infobox except {{MedalTableTop}} and {{MedalBottom}}.

Use normal order (see Template:MedalTableTop),
{{MedalSport|Men's table tennis}}
{{MedalCountry|{{SWE}}}}
{{MedalGold|1992 Barcelona|Singles}}
.

Microformats

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 category

See also