साँचा:Infobox swimmer/doc

मुक्त ज्ञानकोश विकिपीडिया से
यहाँ जाएँ: भ्रमण, खोज

Template[संपादित करें]

{{Infobox swimmer
| name           = 
| image          = 
| image_size     = <!-- Only for images narrower than 220 pixels -->
| caption        = 
| fullname       = 
| nicknames      = 
| nationality    = 
| strokes        = 
| club           = 
| collegeteam    = 
| birth_date     = {{birth date and age|yyyy|mm|dd}}
| birth_place    = 
| death_date     = 
| death_place    = 
| height         = {{convert|}} (yyyy)
| weight         = {{convert|}} (yyyy)
| medaltemplates = 
| show-medals    = 
| updated        = 
}}

Parameters[संपादित करें]

Parameter Description
name The common name of the swimmer.
image An photograph of the swimmer. Type the name of the image file without adding "Image:" or "File:" before it, nor wikilinking it.
image_size The image size. Only use this parameter if the image is less than 220 pixels in width. If so, than indicate the image's respective width in pixels, like this: "imagesize=200".
caption A caption for the image displayed.
fullname The full name of the swimmer.
nicknames The swimmer's common nickname(s) in italics. If there is more than one, list the names alphabetically and separate them with commas.
nationality The swimmer's nationality.
strokes The swimmer's primary competitive stroke. If there is more than one, list the strokes alphabetically and separate them by commas.
club The name of the swimming club to which the swimmer belongs.
collegeteam The name of the college team to which the swimmer belongs or belonged, with the years in parentheses.
birth_date The swimmer's birth date. Use {{Birth date and age|year|month|day}} for living swimmers; use {{Birth date|year|month|day}} for deceased swimmers.
birth_place The swimmer's place of birth. Note that this is not necessarily the same as the swimmer's "hometown."
death_date The swimmer's death date, if applicable. Use {{Death date and age|death year|death month|death day|birth year|birth month|birth day}}.
death_place The swimmer's place of death, if applicable.
height The swimmer's height. If he or she is American, put measurements in feet and inches first, then in meters in parentheses. If he or she is not American, place measurements in meters first, then in feet and inches in parentheses. This can be done using the {{convert}} template, like this: "{{convert|6|ft|2|in|m}}", "{{convert|1.70|m|ftin}}".
weight The swimmer's weight. If he or she is American, put measurements in pounds first, then in kilograms in parentheses. If he or she is not American, place measurements in kilograms first, then in pounds in parentheses. This can be done using the {{convert}} template, like this: "{{convert|120|lb|kg}}", "{{convert|72|kg|lb}}".
medaltemplates All templates from the medal record infobox except {{MedalTableTop}} and {{MedalBottom}}.

Use the normal order (see {{MedalRelatedTemplates}}):
{{MedalSport|[[swimming#competitive swimming|Men's swimming]]}}
{{MedalCountry|{{SWE}}}}
{{MedalCompetition|[[Swimming at the Summer Olympics|Olympic Games]]}}
{{MedalCompetition|[[FINA World Aquatics Championships|World Championsips (LC)]]}}
{{MedalCompetition|[[FINA World Championships - Short Course|World Championships (SC)]]}}
{{MedalCompetition|[[European LC Championships|European Championships (LC)]]}}
{{MedalCompetition|[[Pan Pacific Swimming Championships|Pan Pacific Championships]]}}
{{MedalGold|[[2008 Summer Olympics|2008 Beijing]]|[[Swimming at the 2008 Summer Olympics|100&nbsp;m freestyle]]}}

show-medals If "show-medals=yes", the medal table is displayed. Otherwise, it is hidden and will only be showed if the "show" link is clicked. Swimmers with large numbers of medals showed probably be toggled "no" in most instances because of the disproportionate amount of article space the extended infobox will require.

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. For more information about the use of microformats on Wikipedia, please see the microformat project.

Date-of-birth ("bday") information will only be included in the microformat if {{Birth date}}) or {{Birth date and age}}) (optionally {{birth-date}} are used in the infobox.

hCard uses HTML classes including:

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

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