Difference between revisions of "Template:Infobox alpine ski racer/doc"
Jump to navigation
Jump to search
imported>Zyxw (update parameter examples and description) |
imported>Zyxw (update parameter descriptions, add links to supporting templates) |
||
| Line 51: | Line 51: | ||
; name: Name of the skier (need not exactly match page name) | ; name: Name of the skier (need not exactly match page name) | ||
; gender: use "m" for males or "f" for females | ; gender: use "m" for males or "f" for females | ||
| − | ; image: image of the | + | ; image: An [[Wikipedia:Images|image]] of the person. Only the [[Help:Files|file]] name is required, such as {{samp|example.jpg}} or {{samp|sample.png}}. It is not necessary to use {{samp|File:}} before the name or to [[Help:Link|wikilink]] the image. If no image is available, [[Wikipedia:Centralized discussion/Image placeholders|do not use an image placeholder]]. |
| − | ; image_size: | + | ; image_size: A size in [[pixel]]s to display the '''image''', such as {{samp|200px}} (width), {{samp|x300px}} (height), or {{samp|200x300px}} (max width and height). Use only when absolutely necessary. If empty or omitted, ''[[Help:Visual file markup#Frameless mode|frameless]]'' is used to display the image at the default thumbnail size (normally {{samp|220px}}, but logged in users may change this at [[Special:Preferences#mw-prefsection-rendering|Preferences: Appearance]]). |
| − | ; alt: | + | ; alt: Alternative text for image, for visually impaired readers (see [[WP:ALT]]). |
| − | ; caption: | + | ; caption: Optional caption to be displayed below the image. |
; disciplines: events regularly contested by the skier on the World Cup | ; disciplines: events regularly contested by the skier on the World Cup | ||
; club: local "home" ski team, if applicable | ; club: local "home" ski team, if applicable | ||
| − | ; birth_date: | + | ; birth_date: If the person is living, use {{tl|Birth date and age}}, {{tl|Birth-date and age}}, or {{tl|Birth year and age}}. If deceased, use {{tl|Birth date}} or {{tl|Birth-date}}. |
| − | ; birth_place: | + | ; birth_place: town/city, state/province, country |
| − | ; death_date: (if applicable) | + | ; death_date: (if applicable) If the date of birth is known, use {{tl|Death date and age}}, {{tl|Death-date and age}}, or {{tl|Death year and age}}. Otherwise, use {{tl|Death date}} or {{tl|Death-date}}. |
| − | ; death_place: (if applicable) | + | ; death_place: (if applicable) town/city, state/province, country |
; height: The skier's [[Human height|height]]. Use "X cm", "X m" or "X ft Y in". The infobox will automatically display the appropriate conversion. | ; height: The skier's [[Human height|height]]. Use "X cm", "X m" or "X ft Y in". The infobox will automatically display the appropriate conversion. | ||
: <code><nowiki>| height = 5 ft 10 in</nowiki></code> → 5 ft 10 in (178 cm) | : <code><nowiki>| height = 5 ft 10 in</nowiki></code> → 5 ft 10 in (178 cm) | ||
| 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 | + | ; medals {{nobold|or}} medaltemplates: All templates from the medal records table except {{tl|MedalTableTop}} and {{tl|MedalBottom}}. For more information, see the [[Template:Medal templates documentation|medal templates documentation]]. |
| − | ; medals-expand | + | ; medals-expand {{nobold|or}} show-medals: If set to '''yes''' or any value, the medals table is shown (expanded). Otherwise, it is hidden (collapsed) and will only be displayed if the "show" link is selected. |
; 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) | ||
| Line 91: | Line 91: | ||
== Tracking category == | == Tracking category == | ||
* {{clc|Pages using Infobox alpine ski racer with unknown parameters}} | * {{clc|Pages using Infobox alpine ski racer with unknown parameters}} | ||
| + | |||
| + | == Supporting templates == | ||
| + | * {{tl|br separated entries}} | ||
| + | * {{tl|Infobox person/height}} | ||
| + | * {{tl|Infobox medal templates}} | ||
== See also == | == See also == | ||
Revision as of 18:02, 25 November 2018
| 40px | This is a documentation subpage for Template:Infobox alpine ski racer. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
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
- An image of the person. Only the file name is required, such as example.jpg or sample.png. It is not necessary to use File: before the name or to wikilink the image. If no image is available, do not use an image placeholder.
- image_size
- A size in pixels to display the image, such as 200px (width), x300px (height), or 200x300px (max width and height). Use only when absolutely necessary. If empty or omitted, frameless is used to display the image at the default thumbnail size (normally 220px, but logged in users may change this at Preferences: Appearance).
- alt
- Alternative text for image, for visually impaired readers (see WP:ALT).
- caption
- Optional caption to be displayed below the image.
- disciplines
- events regularly contested by the skier on the World Cup
- club
- local "home" ski team, if applicable
- birth_date
- If the person is living, use {{Birth date and age}}, {{Birth-date and age}}, or {{Birth year and age}}. If deceased, use {{Birth date}} or {{Birth-date}}.
- birth_place
- town/city, state/province, country
- death_date
- (if applicable) If the date of birth is known, use {{Death date and age}}, {{Death-date and age}}, or {{Death year and age}}. Otherwise, use {{Death date}} or {{Death-date}}.
- death_place
- (if applicable) town/city, state/province, country
- 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 or medaltemplates
- All templates from the medal records table except {{MedalTableTop}} and {{MedalBottom}}. For more information, see the medal templates documentation.
- medals-expand or show-medals
- If set to yes or any value, the medals table is shown (expanded). Otherwise, it is hidden (collapsed) and will only be displayed if the "show" link is selected.
- updated
- Date information was updated (use {{subst:Date}} or {{subst:Date|2=mdy}} for the current date)
Microformat
Tracking category
Supporting templates
See also
- {{Infobox skier}}
- {{Infobox sportsperson}}