Difference between revisions of "Template:Infobox fencer/doc"

From blackwiki
Jump to navigation Jump to search
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,)
imported>GreenComputer
m (Replace "his or her" with "their")
 
(9 intermediate revisions by 2 users not shown)
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]]) -->
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{Person infobox header}}
 +
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Wikidata|Module:Check for unknown parameters}}
 
{{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 }}
+
{{Parameter names example | name | image | image_size | imagesize | alt | caption | native_name | full_name | nickname | country | formercountry | birth_name | birth_date | birth_place | death_date | death_place | residence | height | weight | website | training | weapon | hand | natlteam | natlcoach | club | headcoach | assistcoach | formercoach | perscoach | retired | disability_class | highest_rank | current_rank | fieranking | domesticranking | medaltemplates | show-medals }}
  
 
<pre style="overflow: auto;">
 
<pre style="overflow: auto;">
 
{{Infobox fencer
 
{{Infobox fencer
| name           = {{subst:PAGENAMEBASE}}
+
| name             = {{subst:PAGENAMEBASE}}
| image           =  
+
| image           =  
| image_size     =  
+
| image_size       =  
| alt             =  
+
| alt             =  
| caption         =  
+
| caption         =
| fullname        =  
+
| native_name      =  
| nickname       =  
+
| native_name_lang =  
| country         =  
+
| full_name       = <!-- if different -->
| formercountry  =  
+
| nickname         =  
| birth_date     = <!-- {{birth date and age|YYYY|MM|DD}} -->
+
| birth_name      = <!-- if different -->
| birth_place     =  
+
| birth_date       = <!-- {{birth date and age|YYYY|MM|DD}} -->
| death_date     =  
+
| birth_place     =  
| death_place     =  
+
| death_date       =  
| residence       =
+
| death_place     =  
| training       =
+
| residence        =  
| weapon          =
+
| height           = <!-- "X cm" or "X ft Y in" (auto conversion) -->
| hand            =  
+
| weight           = <!-- "X kg" or "X lb" (automatic conversion) -->
| height         = <!-- "X cm" or "X ft Y in" (conversions are automatic) -->
+
| website          = <!-- {{URL|example.com}} -->
| weight         = <!-- "X kg" or "X lb" (conversions are automatic) -->
+
| country          =
| natlteam       =  
+
| formercountry    =
| natlcoach       =  
+
| training        =
| club           =  
+
| weapon          =
| headcoach       =  
+
| hand            =
| assistcoach     =  
+
| natlteam         =  
| formercoach     =  
+
| natlcoach       =  
| perscoach       =  
+
| club             =  
| retired         =  
+
| headcoach       =  
| fieranking     = <!-- [http://www.fie.ch/Competitions/FencerDetail.aspx?param=8982B84CC31351DE73B0F1466C3010AC Current ranking] -->
+
| assistcoach     =  
| domesticranking = <!-- {{URL|http://www.domestic.url|External Link}} -->
+
| formercoach     =  
 +
| perscoach       =  
 +
| retired         =
 +
| disability_class =
 +
| highest_rank    =
 +
| current_rank    =
 +
| fieranking       = <!-- [http://www.fie.ch/Competitions/FencerDetail.aspx?param=8982B84CC31351DE73B0F1466C3010AC Current ranking] -->
 +
| domesticranking = <!-- [http://www.domestic.url Domestic ranking] -->
 
| medaltemplates  = <!-- see [[Template:MedalRelatedTemplates]] -->
 
| medaltemplates  = <!-- see [[Template:MedalRelatedTemplates]] -->
 
}}
 
}}
Line 51: Line 60:
 
|-
 
|-
 
| image
 
| image
| Use ''<nowiki>Image name here.jpg</nowiki>'' instead of ''<nowiki>Image:Image name here.jpg</nowiki>'' or ''<nowiki>[[Image:Image name here.jpg]]</nowiki>''
+
| Use ''<nowiki>Image name here.jpg</nowiki>'' instead of ''<nowiki>File:Image name here.jpg</nowiki>'' or ''<nowiki>[[File:Image name here.jpg]]</nowiki>''
 
|-
 
|-
 
| image_size
 
| image_size
Line 62: Line 71:
 
| Caption for the image.
 
| Caption for the image.
 
|-
 
|-
| fullname
+
! colspan="2" | Personal information
| The full name of the athlete, including full first name, middle name, patronymics, ordinals, suffixes, et cetera.
+
|-
 +
| native_name
 +
| The person's name in their [[native language]], if different than '''name'''.
 +
|-
 +
| native_name_lang
 +
| [[ISO 639-2]] code, ''e.g.'', "fre" or "fra" for French. If more than one, use {{tl|lang}} in {{para|native_name}} instead.
 +
|-
 +
| full_name
 +
| The full name of the fencer, if different than '''name''', 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
+
| birth_name
| Country represented in competition.
+
| The birth name of the fencer, if different than '''name''' and '''full_name'''.
|-
 
| formercountry
 
| 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
Line 88: Line 102:
 
| residence
 
| residence
 
| Official residence. Use if different from birth place.
 
| 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
 
| height
Line 107: Line 112:
 
: <code><nowiki>| weight = 130 lb</nowiki></code> → 130 lb (59 kg)
 
: <code><nowiki>| weight = 130 lb</nowiki></code> → 130 lb (59 kg)
 
: <code><nowiki>| weight = 60 kg</nowiki></code> → 60 kg (132 lb)
 
: <code><nowiki>| weight = 60 kg</nowiki></code> → 60 kg (132 lb)
 +
|-
 +
| website
 +
| Official website only. Unofficial websites should be placed under <code><nowiki>==External links==</nowiki></code> in the body of the article. Use {{tl|URL}}.
 +
|-
 +
! colspan="2" | Sport
 +
|-
 +
| 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.
 +
|-
 +
| training
 +
| Training location. Use if different from residence or birthplace.
 +
|-
 +
| weapon
 +
| Weapon or weapons
 +
|-
 +
| hand
 +
| Weapon hand
 
|-
 
|-
 
| natlteam
 
| natlteam
| Year since athlete is on national team or (year – year) if in a past
+
| Year since fencer is on national team or (year – year) if in a past
 
|-
 
|-
 
| natlcoach
 
| natlcoach
Line 115: Line 140:
 
|-
 
|-
 
| club
 
| club
| Current or last club for an athlete
+
| Current or last club for a fencer
 
|-
 
|-
 
| headcoach
 
| headcoach
Line 130: Line 155:
 
|-
 
|-
 
| retired
 
| retired
| Year when athlete has retired
+
| Year when fencer has retired
 +
|-
 +
| disability_class
 +
| A or B (see [[wheelchair fencing]])
 +
|-
 +
| highest_rank
 +
|
 +
|-
 +
| current_rank
 +
|
 
|-
 
|-
 
| 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 fencer's results URL navigate to http://www.fie.ch/Competitions/Ranking.aspx , select correct Category, Weapon, Gender and Nationality for a fencer, latest year, individual event from drop down boxes. The search will not return results if any of the drop downs have incorrect values. Once the fencer 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
 +
|-
 +
! colspan="2" | Medal templates
 
|-
 
|-
 
| medaltemplates
 
| medaltemplates
Line 144: Line 180:
 
== Microformat ==
 
== Microformat ==
 
{{UF-hcard-person}}
 
{{UF-hcard-person}}
 +
 +
== Tracking categories ==
 +
* {{clc|Pages using Infobox fencer with unknown parameters}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line; interwikis at Wikidata -->
 
<!-- Categories below this line; interwikis at Wikidata -->
 +
[[Category:Fencing templates]]
 
[[Category:Sportsperson infobox templates|Fencer]]
 
[[Category:Sportsperson infobox templates|Fencer]]
 +
[[Category:Biographical templates usable as a module|Fencer]]
 +
[[Category:Infobox templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 08:40, 7 April 2020

Template:Person infobox header

Template:Uses Wikidata

Usage

Template:Parameter names example

{{Infobox fencer
| name             = {{subst:PAGENAMEBASE}}
| image            = 
| image_size       = 
| alt              = 
| caption          = 
| native_name      = 
| native_name_lang = 
| full_name        = <!-- if different -->
| nickname         = 
| birth_name       = <!-- if different -->
| birth_date       = <!-- {{birth date and age|YYYY|MM|DD}} -->
| birth_place      = 
| death_date       = 
| death_place      = 
| residence        = 
| height           = <!-- "X cm" or "X ft Y in" (auto conversion) -->
| weight           = <!-- "X kg" or "X lb" (automatic conversion) -->
| website          = <!-- {{URL|example.com}} -->
| country          = 
| formercountry    = 
| training         = 
| weapon           = 
| hand             = 
| natlteam         = 
| natlcoach        = 
| club             = 
| headcoach        = 
| assistcoach      = 
| formercoach      = 
| perscoach        = 
| retired          = 
| disability_class =
| highest_rank     =
| current_rank     =
| fieranking       = <!-- [http://www.fie.ch/Competitions/FencerDetail.aspx?param=8982B84CC31351DE73B0F1466C3010AC Current ranking] -->
| domesticranking = <!-- [http://www.domestic.url Domestic ranking] -->
| 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 File:Image name here.jpg or [[File: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.
Personal information
native_name The person's name in their native language, if different than name.
native_name_lang ISO 639-2 code, e.g., "fre" or "fra" for French. If more than one, use {{lang}} in |native_name= instead.
full_name The full name of the fencer, if different than name, including full first name, middle name, patronymics, ordinals, suffixes, et cetera.
nickname Official nickname, if they have one. Do not use fan nicknames.
birth_name The birth name of the fencer, if different than name and full_name.
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.
height The fencer's height. Use "X cm" 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)
weight The fencer's weight. Use "X kg" or "X lb". The infobox will automatically display the appropriate conversion.
| weight = 130 lb → 130 lb (59 kg)
| weight = 60 kg → 60 kg (132 lb)
website Official website only. Unofficial websites should be placed under ==External links== in the body of the article. Use {{URL}}.
Sport
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.
training Training location. Use if different from residence or birthplace.
weapon Weapon or weapons
hand Weapon hand
natlteam Year since fencer is on national team or (year – year) if in a past
natlcoach National Coach
club Current or last club for a fencer
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 fencer has retired
disability_class A or B (see wheelchair fencing)
highest_rank
current_rank
fieranking To obtain fencer's results URL navigate to http://www.fie.ch/Competitions/Ranking.aspx , select correct Category, Weapon, Gender and Nationality for a fencer, latest year, individual event from drop down boxes. The search will not return results if any of the drop downs have incorrect values. Once the fencer 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
Medal templates
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

Template:UF-hcard-person

Tracking categories