User:SebastianHellmann/doc1
Syntax
[edit]{{Infobox Badminton player | playername = | image = | size = | caption = | nickname = | birth_name = | date_of_birth = {{birth date and age|YYYY|MM|DD}} | place_of_birth = | date_of_death = | place_of_death = | height = {{height|ft=x|in=x}} or {{height|m=x}} | weight = {{weight|lb=x}} or {{weight|kg=x}} | event = | country = | years_active = | handedness = | coach = | highest_ranking = | date_of_highest_ranking = | current_ranking = | date_of_current_ranking = | played = | titles = | bwf_id = }} |
Example
[edit]{{Infobox Badminton player | playername = Lin Dan | image = Lin Dan.jpg | size = 200px (optional) | caption = Caption | nickname = Super Dan | birth_name = (optional) | date_of_birth = {{birth date and age|1983|10|14}} | place_of_birth = [[Longyan]], [[Fujian]] province | height = {{height|m=1.78}} | weight = {{weight|kg=72}} | event = Men's singles | country = {{CHN}} | years_active = 1992–2004 | handedness = left | coach = Li Yongbo | highest_ranking = 1 | date_of_highest_ranking = February 26, 2004 | current_ranking = 1 | date_of_current_ranking = March 8, 2007 | played = 37 | titles = 24 | bwf_id = 50906 }} |
Notes
[edit]- All fields are optional, so some of the field can be omitted if necessary.
- The default value of image size is 180px, alteration of the value can be make in size.
- highest_ranking, current_ranking, bwf_id, played, titles must refer to Internationalbadminton.org
Template Annotation
[edit]The aim of this semantic annotation is to provide additional and strict information about the infobox usage.
Template Mapping | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
relates to class: Athlete | |||||||||||||||||||||
| |||||||||||||||||||||
Semantic annotations are intended to provide a coherent description of infobox templates. See here for further information: Page with explanation and RDF OWL |
Microformat
[edit]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
[edit]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
[edit]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.