Difference between revisions of "Template:Infobox fencer/doc"
Jump to navigation
Jump to search
imported>Nemo bis m ({{Uses Wikidata|P18}}) |
imported>Zyxw (add {{Parameter names example}}, document "alt" parameter for image, document automatic conversion for "height" and "weight" parameters, prevent /sandbox from being included in categories,) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
− | <!-- | + | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
{{Uses Wikidata|P18}} | {{Uses Wikidata|P18}} | ||
+ | |||
== Usage == | == Usage == | ||
+ | {{Parameter names example | name | image | image_size | imagesize | alt | caption | fullname | nickname | country | formercountry | birth_date | birth_place | death_date | death_place | residence | training | weapon | hand | height | weight | natlteam | natlcoach | club | headcoach | assistcoach | formercoach | perscoach | retired | fieranking | domesticranking | medaltemplates | show-medals }} | ||
− | < | + | <pre style="overflow: auto;"> |
− | + | {{Infobox fencer | |
− | {{Infobox fencer | + | | name = {{subst:PAGENAMEBASE}} |
− | | name | + | | image = |
− | | image | + | | image_size = |
− | | image_size | + | | alt = |
− | | caption | + | | caption = |
− | | fullname | + | | fullname = |
− | | nickname | + | | nickname = |
− | | country | + | | country = |
− | | formercountry | + | | formercountry = |
− | | birth_date | + | | birth_date = <!-- {{birth date and age|YYYY|MM|DD}} --> |
− | | birth_place | + | | birth_place = |
− | | death_date | + | | death_date = |
− | | death_place | + | | death_place = |
− | | residence | + | | residence = |
− | | training | + | | training = |
− | | weapon | + | | weapon = |
− | | hand | + | | hand = |
− | | height | + | | height = <!-- "X cm" or "X ft Y in" (conversions are automatic) --> |
− | | weight | + | | weight = <!-- "X kg" or "X lb" (conversions are automatic) --> |
− | | natlteam | + | | natlteam = |
− | | natlcoach | + | | natlcoach = |
− | | club | + | | club = |
− | | headcoach | + | | headcoach = |
− | | assistcoach | + | | assistcoach = |
− | | formercoach | + | | formercoach = |
− | | perscoach | + | | perscoach = |
− | | retired | + | | retired = |
− | | fieranking | + | | fieranking = <!-- [http://www.fie.ch/Competitions/FencerDetail.aspx?param=8982B84CC31351DE73B0F1466C3010AC Current ranking] --> |
− | | domesticranking={{URL|http://www.domestic.url|External Link}} | + | | domesticranking = <!-- {{URL|http://www.domestic.url|External Link}} --> |
− | | medaltemplates = <!-- see [[Template:MedalRelatedTemplates]] --> | + | | medaltemplates = <!-- see [[Template:MedalRelatedTemplates]] --> |
}} | }} | ||
</pre> | </pre> | ||
− | + | {{clear}} | |
== Parameters == | == Parameters == | ||
Line 44: | Line 46: | ||
! style="text-align: left" | Parameter | ! style="text-align: left" | Parameter | ||
! style="text-align: left" | Explanation | ! style="text-align: left" | Explanation | ||
− | |- | + | |- |
| name | | name | ||
− | | The professional name or most common name of the person. This should be the name of the article. Use <nowiki>{{subst: | + | | The professional name or most common name of the person. This should be the name of the article. Use <nowiki>{{subst:PAGENAMEBASE}}</nowiki> to use the name of the article. |
|- | |- | ||
| image | | image | ||
Line 53: | Line 55: | ||
| image_size | | image_size | ||
| Strictly define the size of the image. | | Strictly define the size of the image. | ||
+ | |- | ||
+ | | alt | ||
+ | | Alternative text for image, for visually impaired readers (see [[WP:ALT]]) | ||
|- | |- | ||
| caption | | caption | ||
Line 60: | Line 65: | ||
| The full name of the athlete, including full first name, middle name, patronymics, ordinals, suffixes, et cetera. | | The full name of the athlete, including full first name, middle name, patronymics, ordinals, suffixes, et cetera. | ||
|- | |- | ||
− | |nickname | + | | nickname |
| Official nickname, if they have one. Do not use fan nicknames. | | Official nickname, if they have one. Do not use fan nicknames. | ||
|- | |- | ||
− | |country | + | | country |
− | | Country represented in competition. | + | | Country represented in competition. |
|- | |- | ||
− | |formercountry | + | | formercountry |
| Country or countries that the person used to represent in competition. Put the years, if known, in parenthesis after the country. | | Country or countries that the person used to represent in competition. Put the years, if known, in parenthesis after the country. | ||
|- | |- | ||
− | |birth_date | + | | birth_date |
− | | Use <nowiki>{{birth date and age|year of birth|month of birth|day of birth}}</nowiki> if living or <nowiki>{{birth date|year of birth|month of birth|day of birth}}</nowiki> if dead. See [[:Template:Birth date]] for details. | + | | Use <nowiki>{{birth date and age|year of birth|month of birth|day of birth}}</nowiki> if living or <nowiki>{{birth date|year of birth|month of birth|day of birth}}</nowiki> if dead. See [[:Template:Birth date]] for details. |
|- | |- | ||
| birth_place | | birth_place | ||
Line 94: | Line 99: | ||
|- | |- | ||
| height | | height | ||
− | | | + | | The fencer's [[Human height|height]]. Use "X cm" 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 = 180 cm</nowiki></code> → 180 cm (5 ft 11 in) | ||
|- | |- | ||
| weight | | weight | ||
− | | | + | | The fencer's [[Human body weight|weight]]. Use "X kg" or "X lb". The infobox will automatically display the appropriate conversion. |
+ | : <code><nowiki>| weight = 130 lb</nowiki></code> → 130 lb (59 kg) | ||
+ | : <code><nowiki>| weight = 60 kg</nowiki></code> → 60 kg (132 lb) | ||
|- | |- | ||
| natlteam | | natlteam | ||
− | | Year since athlete is on national team or (year | + | | Year since athlete is on national team or (year – year) if in a past |
|- | |- | ||
| natlcoach | | natlcoach | ||
| National Coach | | National Coach | ||
|- | |- | ||
− | |club | + | | club |
| Current or last club for an athlete | | Current or last club for an athlete | ||
|- | |- | ||
− | |headcoach | + | | headcoach |
| Current or last head coach | | Current or last head coach | ||
|- | |- | ||
− | |assistcoach | + | | assistcoach |
| Current or last assistant coach(es) | | Current or last assistant coach(es) | ||
|- | |- | ||
− | |formercoach | + | | formercoach |
| Former coach or coaches | | Former coach or coaches | ||
|- | |- | ||
− | |perscoach | + | | perscoach |
| Personal coach(es), as opposed to national and club coaches | | Personal coach(es), as opposed to national and club coaches | ||
|- | |- | ||
− | |retired | + | | retired |
| Year when athlete has retired | | Year when athlete has retired | ||
|- | |- | ||
− | |fieranking | + | | fieranking |
| To obtain athlete’s results URL navigate to http://www.fie.ch/Competitions/Ranking.aspx , select correct Category, Weapon, Gender and Nationality for an athlete, latest year, individual event from drop down boxes. The search will not return results if any of the drop downs have incorrect values. Once athlete is found, click on the provided link and new window will be open. Use the URL form this new window, where ‘param’ value is a n unique fencer identifier in FIE database, e.g. http://www.fie.ch/Competitions/FencerDetail.aspx?param=8982B84CC31351DE73B0F1466C3010AC | | To obtain athlete’s results URL navigate to http://www.fie.ch/Competitions/Ranking.aspx , select correct Category, Weapon, Gender and Nationality for an athlete, latest year, individual event from drop down boxes. The search will not return results if any of the drop downs have incorrect values. Once athlete is found, click on the provided link and new window will be open. Use the URL form this new window, where ‘param’ value is a n unique fencer identifier in FIE database, e.g. http://www.fie.ch/Competitions/FencerDetail.aspx?param=8982B84CC31351DE73B0F1466C3010AC | ||
|- | |- | ||
− | |domesticranking | + | | domesticranking |
| Link to current domestic ranking | | Link to current domestic ranking | ||
|- | |- | ||
− | |medaltemplates | + | | medaltemplates |
− | | All templates from the medal record infobox except <nowiki>{{MedalTableTop}}</nowiki> and <nowiki>{{MedalBottom}}</nowiki>. This section can be collapsed. Use normal order for medal templates. See the [[Template:Medal templates documentation|medal templates documentation]] for more details. | + | | All templates from the medal record infobox except <nowiki>{{MedalTableTop}}</nowiki> and <nowiki>{{MedalBottom}}</nowiki>. This section can be collapsed. Use normal order for medal templates. See the [[Template:Medal templates documentation|medal templates documentation]] for more details. |
− | |||
|} | |} | ||
== Microformat == | == Microformat == | ||
{{UF-hcard-person}} | {{UF-hcard-person}} | ||
− | <includeonly> | + | |
− | <!-- | + | <includeonly>{{sandbox other|| |
+ | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category:Sportsperson infobox templates|Fencer]] | [[Category:Sportsperson infobox templates|Fencer]] | ||
− | </includeonly> | + | }}</includeonly> |
Revision as of 15:29, 21 November 2016
![]() | This is a documentation subpage for Template:Infobox fencer. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Template:Parameter names example
{{Infobox fencer | name = {{subst:PAGENAMEBASE}} | image = | image_size = | alt = | caption = | fullname = | nickname = | country = | formercountry = | birth_date = <!-- {{birth date and age|YYYY|MM|DD}} --> | birth_place = | death_date = | death_place = | residence = | training = | weapon = | hand = | height = <!-- "X cm" or "X ft Y in" (conversions are automatic) --> | weight = <!-- "X kg" or "X lb" (conversions are automatic) --> | natlteam = | natlcoach = | club = | headcoach = | assistcoach = | formercoach = | perscoach = | retired = | fieranking = <!-- [http://www.fie.ch/Competitions/FencerDetail.aspx?param=8982B84CC31351DE73B0F1466C3010AC Current ranking] --> | domesticranking = <!-- {{URL|http://www.domestic.url|External Link}} --> | medaltemplates = <!-- see [[Template:MedalRelatedTemplates]] --> }}
Parameters
Parameter | Explanation |
---|---|
name | The professional name or most common name of the person. This should be the name of the article. Use {{subst:PAGENAMEBASE}} to use the name of the article. |
image | Use Image name here.jpg instead of Image:Image name here.jpg or [[Image:Image name here.jpg]] |
image_size | Strictly define the size of the image. |
alt | Alternative text for image, for visually impaired readers (see WP:ALT) |
caption | Caption for the image. |
fullname | The full name of the athlete, including full first name, middle name, patronymics, ordinals, suffixes, et cetera. |
nickname | Official nickname, if they have one. Do not use fan nicknames. |
country | Country represented in competition. |
formercountry | Country or countries that the person used to represent in competition. Put the years, if known, in parenthesis after the country. |
birth_date | Use {{birth date and age|year of birth|month of birth|day of birth}} if living or {{birth date|year of birth|month of birth|day of birth}} if dead. See Template:Birth date for details. |
birth_place | Place of Birth |
death_date | Use {{Death date and age|1993|2|24|1941|4|12|mf=yes}} if exact date of death is known. See Template:Death date and age for details |
death_place | Place of Death |
residence | Official residence. Use if different from birth place. |
training | Training location. Use if different from residence or birthplace. |
weapon | Weapon or weapons |
hand | Weapon hand |
height | The fencer's height. Use "X cm" or "X ft Y in". The infobox will automatically display the appropriate conversion.
|
weight | The fencer's weight. Use "X kg" or "X lb". The infobox will automatically display the appropriate conversion.
|
natlteam | Year since athlete is on national team or (year – year) if in a past |
natlcoach | National Coach |
club | Current or last club for an athlete |
headcoach | Current or last head coach |
assistcoach | Current or last assistant coach(es) |
formercoach | Former coach or coaches |
perscoach | Personal coach(es), as opposed to national and club coaches |
retired | Year when athlete has retired |
fieranking | To obtain athlete’s results URL navigate to http://www.fie.ch/Competitions/Ranking.aspx , select correct Category, Weapon, Gender and Nationality for an athlete, latest year, individual event from drop down boxes. The search will not return results if any of the drop downs have incorrect values. Once athlete is found, click on the provided link and new window will be open. Use the URL form this new window, where ‘param’ value is a n unique fencer identifier in FIE database, e.g. http://www.fie.ch/Competitions/FencerDetail.aspx?param=8982B84CC31351DE73B0F1466C3010AC |
domesticranking | Link to current domestic ranking |
medaltemplates | All templates from the medal record infobox except {{MedalTableTop}} and {{MedalBottom}}. This section can be collapsed. Use normal order for medal templates. See the medal templates documentation for more details. |
Microformat