Difference between revisions of "Template:Infobox badminton player/doc"

From blackwiki
Jump to navigation Jump to search
imported>Rich Farmbrough
imported>Jens Lehmann
Line 67: Line 67:
 
== Microformat==
 
== Microformat==
 
{{UF-hcard-person}}
 
{{UF-hcard-person}}
 +
 +
== DBpedia Template Annotation ==
 +
{{DBpedia Template
 +
| relatesToClass = Badmintonplayer
 +
| mapping =
 +
{{DBpedia Attribute | birth_name | birthname}}
 +
{{DBpedia Attribute | coach | parseHint = links}}
 +
{{DBpedia Attribute | date_of_birth | birthdate | date}}
 +
{{DBpedia Attribute | date_of_death | deathdate | date}}
 +
{{DBpedia Attribute | event | parseHint = links}}
 +
{{DBpedia Attribute | nickname | othername}}
 +
{{DBpedia Attribute | place_of_birth | birthplace | links}}
 +
{{DBpedia Attribute | place_of_death | deathplace | links}}
 +
{{DBpedia Attribute | playername | name | links}}
 +
{{DBpedia Attribute | years_active | activeyearsenddate | date}}
 +
{{DBpedia Attribute | years_active | activeyearsstartdate | date}}
 +
}}
 +
  
 
<includeonly>
 
<includeonly>

Revision as of 14:42, 7 November 2009

Syntax

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

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

  • 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

Microformat

Template:UF-hcard-person

DBpedia Template Annotation

Template:DBpedia Template