Difference between revisions of "Template:Infobox sailor/doc"
Jump to navigation
Jump to search
imported>Zyxw (update example and documentation) |
imported>Zyxw (Remove tracking category that doesn't apply since this template only passes known parameters to Infobox sportsperson.) |
||
| Line 2: | Line 2: | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
{{Uses Infobox sportsperson}} | {{Uses Infobox sportsperson}} | ||
| − | {{Lua|Module:Infobox|Module:InfoboxImage | + | {{Lua|Module:Infobox|Module:InfoboxImage}} |
{{Tracks Wikidata|P18|cat=No local image but image on Wikidata}} | {{Tracks Wikidata|P18|cat=No local image but image on Wikidata}} | ||
| Line 159: | Line 159: | ||
== Tracking categories == | == Tracking categories == | ||
| − | |||
* {{clc|No local image but image on Wikidata}} – Used by this and other infoboxes (via [[Template:Wikidata image]]) to track articles where the infobox has no image but [[Wikidata]] has an image name. To exclude articles from this category, update the infobox to display an image or add {{para|nocat_wdimage|yes}}. | * {{clc|No local image but image on Wikidata}} – Used by this and other infoboxes (via [[Template:Wikidata image]]) to track articles where the infobox has no image but [[Wikidata]] has an image name. To exclude articles from this category, update the infobox to display an image or add {{para|nocat_wdimage|yes}}. | ||
Revision as of 19:08, 30 October 2017
| This is a documentation subpage for Template:Infobox sailor. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Infobox sportsperson
| This template uses Lua: |
Usage
Template:Parameter names example
Copy and paste the template below:
{{Infobox sailor
| name =
| image =
| image_size =
| caption =
| native_name =
| native_name_lang =
| birth_name =
| fullname =
| nickname =
| nationality =
| birth_date = {{Birth date and age|YYYY|MM|DD|df=yes}}
| birth_place =
| death_date = <!-- {{death date and age|death year|death month|death day|birth year|birth month|birth day}} -->
| death_place =
| height = <!-- "X cm", "X m" or "X ft Y in" plus optional reference (conversions are automatic) -->
| weight = <!-- "X kg", "X lb" or "X st Y lb" plus optional reference (conversions are automatic) -->
| classes =
| club =
| collegeteam =
| coach =
| medaltemplates =
| show-medals = yes
| updated = <!-- {{subst:Date}} or {{subst:Date|2=mdy}} -->
}}
Parameter descriptions
| Parameter | Description |
|---|---|
| name | The short or common name of the subject. If this parameter is omitted, the name of the article is used. |
| image | An image of the subject. Type the name of the image file without adding File: before it or wikilinking it. If no image is available yet, do not use an image placeholder.
|
| 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: image_size=200px.
|
| alt | Alt text for the image displayed. |
| caption | A caption for the image displayed. |
| native_name | The person's name in their native language, if different than name. |
| native_name_lang | ISO 639 language code for the native name. |
| birth_name | The birth name of the subject, if different than name. |
| fullname | The full name of the subject, if different than name. |
| nickname | The subject's common nickname(s). If there is more than one, list the names alphabetically and separate them with commas. |
| nationality | The subject's nationality. May be used instead of citizenship (below) or vice versa in cases where any confusion could result. Should only be used with citizenship when they somehow differ. Should only be used if nationality cannot be inferred from the birthplace. Do not use a flag template. |
| birth_date | The subject's birth date. For living people, use {{birth date and age}} or {{birth-date and age}}. For dead people, use {{birth date}} or {{birth-date}}.
|
| birth_place | The subject's place of birth. Do not use a flag template. |
| death_date | The subject's death date, if applicable. Use {{death date and age}} or {{death-date and age}}. If the date of birth is unknown, use {{death date}} or {{death-date}}
|
| death_place | The subject's place of death, if applicable. Do not use a flag template. |
| height | The subject's height, if relevant. |
| weight | The subject's weight, if relevant. |
| Added parameters for sailors | |
| classes | |
| club | |
| collegeteam | |
| coach | |
| Medal templates / Updated date | |
| medaltemplates | All templates from the medal record infobox except {{MedalTableTop}} and {{MedalBottom}}.
Set out the medal templates in the order stated in the medal templates documentation, and arrange the competitions alphabetically by name.
{{MedalSport|Women's [[Sailing at the Summer Olympics|sailing]]}}
{{MedalCountry|{{NOR}}}}
{{MedalCompetition|[[Olympic Games]]}}
{{MedalGold|[[2004 Summer Olympics|2004 Athens]]|[[Sailing at the 2004 Summer Olympics – Europe class|Europe class]]}}
{{MedalCompetition|[[World Championship]]}}
{{MedalGold|2004 [[Cagliari]] | [[Europe class]]}}
{{MedalCompetition|[[European Championship]]}}
{{MedalGold| 2003 [[Palma de Mallorca]] | [[Europe class]]}}
|
| show-medals | If show-medals=yes, the medal table is displayed. By default, it is collapsed and will only be expanded if the "show" link is clicked.
|
| updated | Date information was updated (use {{subst:Date}} for the current date). |
Microformat
Tracking categories
- Category:No local image but image on Wikidata (15) – Used by this and other infoboxes (via Template:Wikidata image) to track articles where the infobox has no image but Wikidata has an image name. To exclude articles from this category, update the infobox to display an image or add
|nocat_wdimage=yes.
See also