Difference between revisions of "Template:Infobox alpine ski racer/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update blank template)
imported>Zyxw
(update parameter examples and description)
Line 5: Line 5:
  
 
== Usage ==
 
== Usage ==
{{Parameter names example | name <!--| role--> | gender | image | image_size | alt | caption | disciplines | club | birth_date | birth_place | death_date | death_place | height | wcdebut | retired | website | olympicteams | olympicmedals | olympicgolds | paralympicteams | paralympicmedals | paralympicgolds | worldsteams | worldsmedals | worldsgolds | wcseasons | wcwins | wcpodiums | wcoveralls | wctitles | medals | show-medals | updated }}
+
{{Parameter names example | name <!--| role--> | gender | image | image_size | alt | caption | disciplines | club | birth_date | birth_place | death_date | death_place | height | wcdebut | retired | website | olympicteams | olympicmedals | olympicgolds | paralympicteams | paralympicmedals | paralympicgolds | worldsteams | worldsmedals | worldsgolds | wcseasons | wcwins | wcpodiums | wcoveralls | wctitles | medals | medals-expand | updated }}
  
 
Copy and paste the template below:
 
Copy and paste the template below:
Line 42: Line 42:
 
| wctitles        =  
 
| wctitles        =  
 
| medals          =  
 
| medals          =  
| show-medals      =  
+
| medals-expand    =  
 
| updated          =  
 
| updated          =  
 
}}
 
}}
Line 82: Line 82:
 
; wcoveralls: number of ''overall'' World Cup season titles (if applicable)
 
; wcoveralls: number of ''overall'' World Cup season titles (if applicable)
 
; wctitles: number of World Cup season titles ''in an individual discipline'', e.g. giant slalom (if applicable)
 
; wctitles: number of World Cup season titles ''in an individual discipline'', e.g. giant slalom (if applicable)
; medals: the medals the skier has won in the usual format, but without {{tl|MedalTop}} or {{tl|MedalBottom}}
+
; medals / medaltemplates: the medals the skier has won in the usual format, but without {{tl|MedalTop}} or {{tl|MedalBottom}}
; show-medals: If "show-medals=yes", the medal table is displayed. Otherwise, it is hidden and will only be displayed if the "show" link is clicked.
+
; medals-expand / show-medals: If set to '''yes''' or any value, the medal table is displayed. Otherwise, it is hidden and will only be displayed if the "show" link is clicked.
 
; updated: Date information was updated (use <nowiki>{{subst:Date}}</nowiki> or <nowiki>{{subst:Date|2=mdy}}</nowiki> for the current date)
 
; updated: Date information was updated (use <nowiki>{{subst:Date}}</nowiki> or <nowiki>{{subst:Date|2=mdy}}</nowiki> for the current date)
  

Revision as of 02:17, 25 November 2018

Template:Uses Wikidata

Usage

Template:Parameter names example

Copy and paste the template below:

{{Infobox alpine ski racer
| name             = 
| gender           = <!-- or: role -->
| image            = 
| image_size       = 
| alt              = 
| caption          = 
| disciplines      = 
| club             = 
| birth_date       = <!-- {{birth date and age|YYYY|MM|DD|df=y}} -->
| birth_place      = 
| death_date       = <!-- {{death date and age|YYYY|MM|DD|df=y}} -->
| death_place      = 
| height           = <!-- X ft Y in, X cm OR X m; the template will automatically convert -->
| wcdebut          = 
| retired          = 
| website          = <!-- {{URL|example.com}} -->
| olympicteams     = 
| olympicmedals    = 
| olympicgolds     = 
| paralympicteams  = 
| paralympicmedals = 
| paralympicgolds  = 
| worldsteams      = 
| worldsmedals     = 
| worldsgolds      = 
| wcseasons        = 
| wcwins           = 
| wcpodiums        = 
| wcoveralls       = 
| wctitles         = 
| medals           = 
| medals-expand    = 
| updated          = 
}}

Parameters

name
Name of the skier (need not exactly match page name)
gender
use "m" for males or "f" for females
image
image of the athlete, using the format example.jpg
image_size
alt
caption
optional caption for the image
disciplines
events regularly contested by the skier on the World Cup
club
local "home" ski team, if applicable
birth_date
birth_place
death_date
(if applicable)
death_place
(if applicable)
height
The skier's height. Use "X cm", "X m" or "X ft Y in". The infobox will automatically display the appropriate conversion.
| height = 5 ft 10 in → 5 ft 10 in (178 cm)
| height = 180 cm → 180 cm (5 ft 11 in)
| height = 1.80 m → 1.80 m (5 ft 11 in)
wcdebut
Date of first World Cup start
retired
(if applicable)
website
use {{URL}} template, e.g. Template:URL
olympicteams
number of Olympics attended
olympicmedals
(if applicable)
olympicgolds
(if applicable)
paralympicteams
number of Paralympics attended
paralympicmedals
(if applicable)
paralympicgolds
(if applicable)
worldsteams
number of World Championships attended
worldsmedals
(if applicable)
worldsgolds
(if applicable)
wcseasons
number of full or partial World Cup seasons competed in
wcwins
number of World Cup wins (if applicable)
wcpodiums
number of World Cup top-three finishes (if none, there is probably no reason for a Wikipedia page to exist yet)
wcoveralls
number of overall World Cup season titles (if applicable)
wctitles
number of World Cup season titles in an individual discipline, e.g. giant slalom (if applicable)
medals / medaltemplates
the medals the skier has won in the usual format, but without {{MedalTop}} or {{MedalBottom}}
medals-expand / show-medals
If set to yes or any value, the medal table is displayed. Otherwise, it is hidden and will only be displayed if the "show" link is clicked.
updated
Date information was updated (use {{subst:Date}} or {{subst:Date|2=mdy}} for the current date)

Microformat

Template:UF-hcard-person

Tracking category

See also