Difference between revisions of "Template:Infobox sport wrestler/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
(10 intermediate revisions by 5 users not shown)
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}}
 +
{{Tracks Wikidata|P18|cat=No local image but image on Wikidata}}
  
 
== Usage ==
 
== Usage ==
Line 11: Line 13:
 
| caption
 
| caption
 
| birth_name
 
| birth_name
| fullname
+
| full_name
 
| nickname
 
| nickname
 
| nationality
 
| nationality
Line 37: Line 39:
 
| alt            =  
 
| alt            =  
 
| caption        =  
 
| caption        =  
| birth_name    =  
+
| birth_name    = <!-- if different than name -->
| fullname      =  
+
| full_name      = <!-- if different than name or birth_name -->
 
| nickname      =  
 
| nickname      =  
 
| nationality    =  
 
| nationality    =  
Line 65: Line 67:
 
|-
 
|-
 
! name
 
! name
| name of the biathlete (need not exactly match page name)
+
| name of the wrestler (need not exactly match page name)
 
|-
 
|-
 
! image
 
! image
| image of the biathlete, using the format <code><nowiki>example.jpg</nowiki></code>
+
| image of the wrestler, using the format <code><nowiki>example.jpg</nowiki></code>
 
|-
 
|-
 
! image_size
 
! image_size
| The image size.  Only use this parameter if the image is less than 220 [[pixel]]s in width.  If so, then indicate the image's respective width in pixels, like this: "<tt>image_size=200</tt>".
+
| The image size.  Only use this parameter if the image is less than 220 [[pixel]]s in width.  If so, then indicate the image's respective width in pixels, like this: "<code>image_size=200</code>".
 
|-
 
|-
 
! alt
 
! alt
Line 80: Line 82:
 
|-
 
|-
 
! birth_name
 
! birth_name
| The birth name of the subject.
+
| The birth name of the wrestler, if different than '''name'''.
 
|-
 
|-
! fullname
+
! full_name
| The full name of the subject.
+
| The full name of the wrestler, if different than '''name''' or '''birth_name'''.
 
|-
 
|-
 
! nickname
 
! nickname
| The subject's common nickname(s). If there is more than one, list the names alphabetically and separate them with commas.
+
| The wrestler's common nickname(s). If there is more than one, list the names alphabetically and separate them with commas.
 
|-
 
|-
 
! nationality
 
! 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 {{em|with}} citizenship when they somehow differ. Should only be used if nationality cannot be inferred from the birthplace. [[Wikipedia:Manual of Style (icons)#Biographical use|Do not use a flag template]].
+
| The wrestler's nationality. May be used instead of citizenship (below) or vice versa in cases where any confusion could result. Should only be used {{em|with}} citizenship when they somehow differ. Should only be used if nationality cannot be inferred from the birthplace. [[Wikipedia:Manual of Style (icons)#Biographical use|Do not use a flag template]].
 
|-
 
|-
 
! birth_date
 
! birth_date
| The subject's birth date.  Use {{tlx|birth date and age|year|month|day}}.
+
| The wrestler's birth date.  Use {{tlx|birth date and age|year|month|day}}.
 
|-
 
|-
 
! birth_place
 
! birth_place
| The subject's place of birth. [[Wikipedia:Manual of Style (icons)#Do not use flags to indicate locations of birth, residence, or death|Do not use a flag template]].
+
| The wrestler's place of birth. [[Wikipedia:Manual of Style (icons)#Do not use flags to indicate locations of birth, residence, or death|Do not use a flag template]].
 
|-
 
|-
 
! death_date
 
! death_date
| The subject's death date, if applicable. Use {{tlx|death date and age|death year|death month|death day|birth year&#124;birth month&#124;birth day}}.
+
| The wrestler's death date, if applicable. Use {{tlx|death date and age|death year|death month|death day|birth year&#124;birth month&#124;birth day}}.
 
|-
 
|-
 
! death_place
 
! death_place
| The subject's place of death, if applicable. [[Wikipedia:Manual of Style (icons)#Do not use flags to indicate locations of birth, residence, or death|Do not use a flag template]].
+
| The wrestler's place of death, if applicable. [[Wikipedia:Manual of Style (icons)#Do not use flags to indicate locations of birth, residence, or death|Do not use a flag template]].
 
|-
 
|-
 
! height
 
! height
| Use <code><nowiki>{{convert|_|ft|__|in|cm|abbr=on}}</nowiki></code> or <code><nowiki>{{convert|__|cm|ftin|abbr=on}}</nowiki></code>
+
| The wrestler's [[human height|height]], measured in [[centimetre]]s (or [[metre]]s) when using the [[metric system]] or in [[foot (unit)|feet]] and [[inch]]es when using the [[imperial system]]. Use <code>XXX cm</code>, <code>X.XX m</code>, or <code>X ft Y in</code>. The infobox will automatically display the appropriate conversion within parentheses. The height parameter also accepts conversions done via the {{tl|Convert}} template, such as <code><nowiki>{{convert|_|ft|__|in|cm|abbr=on}}</nowiki></code> or <code><nowiki>{{convert|__|cm|ftin|abbr=on}}</nowiki></code>. For additional documentation and examples, see {{section link|Template:Infobox sportsperson|height}}.
 
|-
 
|-
 
! weight
 
! weight
| use <code><nowiki>{{convert|___|lb|kg|0|abbr=on}}</nowiki></code> or <code><nowiki>{{convert|___|kg|lb|0|abbr=on}}</nowiki></code>
+
| The wrestler's [[human body weight|weight]], measured in [[kilogram]]s when using the metric system or in [[pound (mass)|pounds]] when using the [[imperial system]]. Use <code>X kg</code> or <code>X lb</code>. The infobox will automatically display the appropriate conversion within parentheses.  The weight parameter also accepts conversions done via the {{tl|Convert}} template, such as <code><nowiki>{{convert|___|lb|kg|0|abbr=on}}</nowiki></code> or <code><nowiki>{{convert|___|kg|lb|0|abbr=on}}</nowiki></code>. For additional documentation and examples, see {{section link|Template:Infobox sportsperson|weight}}.
 
|-
 
|-
 
! colspan="2" | Added parameters for wrestlers
 
! colspan="2" | Added parameters for wrestlers
Line 126: Line 128:
 
|-
 
|-
 
! medaltemplates
 
! medaltemplates
| the medals the skier has won in the usual format, but without {{tl|MedalTop}} or {{tl|MedalBottom}}
+
| the medals the wrestler has won in the usual format, but without {{tl|MedalTop}} or {{tl|MedalBottom}}
 
|-
 
|-
 
! show-medals
 
! show-medals
Line 132: Line 134:
 
|-
 
|-
 
! updated
 
! updated
| date information was updated
+
| date information was updated (use <nowiki>{{subst:Date}}</nowiki> or <nowiki>{{subst:Date|2=mdy}}</nowiki> for the current date)
 
|}
 
|}
  
 
== Microformat ==  
 
== Microformat ==  
 
{{UF-hcard-person}}
 
{{UF-hcard-person}}
 +
 +
== Tracking categories ==
 +
; via Infobox sportsperson:
 +
* {{clc|Pages using deprecated image syntax}} – Used by [[Module:InfoboxImage]] to track articles where an infobox uses image syntax in the format <kbd><nowiki>|image=[[File:Example.jpg]]</nowiki></kbd>. To exclude articles from this category, change it to {{samp|<nowiki>|image=Example.jpg</nowiki>}}.
 +
* {{clc|No local image but image on Wikidata}} – Used by [[Template:Wikidata image]] to track articles where an infobox has no image but [[Wikidata]] has an image name. To exclude articles from this category, add an image or {{para|nocat_wdimage|yes}} to the infobox.
  
 
== See also ==
 
== See also ==
 
* [[Template:Infobox sportsperson]]
 
* [[Template:Infobox sportsperson]]
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:Sportsperson infobox templates|Sport wrestler]]
 
[[Category:Sportsperson infobox templates|Sport wrestler]]
 
+
[[Category:Infobox templates with updated parameter]]
 +
[[Category:Wrestling templates]]
 +
[[Category:Templates that add a tracking category|{{PAGENAME}}]]<!--via Infobox sportsperson-->
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 19:15, 4 June 2020

Template:Uses Infobox sportsperson

Template:Tracks Wikidata

Usage

Template:Parameter names example

Copy and paste the template below:

{{Infobox sport wrestler
| name           = 
| image          = 
| image_size     = 
| alt            = 
| caption        = 
| birth_name     = <!-- if different than name -->
| full_name      = <!-- if different than name or birth_name -->
| nickname       = 
| nationality    = 
| birth_date     = 
| birth_place    = 
| death_date     = 
| 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) -->
| style          = 
| club           = 
| collegeteam    = 
| coach          = 
| medaltemplates = 
| show-medals    = 
| updated        = 
}}

Parameters

Parameter Description
name name of the wrestler (need not exactly match page name)
image image of the wrestler, using the format example.jpg
image_size The image size. Only use this parameter if the image is less than 220 pixels in width. If so, then indicate the image's respective width in pixels, like this: "image_size=200".
alt Alternative text describing the image displayed for visually impaired readers.
caption optional caption for the image
birth_name The birth name of the wrestler, if different than name.
full_name The full name of the wrestler, if different than name or birth_name.
nickname The wrestler's common nickname(s). If there is more than one, list the names alphabetically and separate them with commas.
nationality The wrestler'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 wrestler's birth date. Use {{birth date and age|year|month|day}}.
birth_place The wrestler's place of birth. Do not use a flag template.
death_date The wrestler's death date, if applicable. Use {{death date and age|death year|death month|death day|birth year|birth month|birth day}}.
death_place The wrestler's place of death, if applicable. Do not use a flag template.
height The wrestler's height, measured in centimetres (or metres) when using the metric system or in feet and inches when using the imperial system. Use XXX cm, X.XX m, or X ft Y in. The infobox will automatically display the appropriate conversion within parentheses. The height parameter also accepts conversions done via the {{Convert}} template, such as {{convert|_|ft|__|in|cm|abbr=on}} or {{convert|__|cm|ftin|abbr=on}}. For additional documentation and examples, see Script error: No such module "Section link"..
weight The wrestler's weight, measured in kilograms when using the metric system or in pounds when using the imperial system. Use X kg or X lb. The infobox will automatically display the appropriate conversion within parentheses. The weight parameter also accepts conversions done via the {{Convert}} template, such as {{convert|___|lb|kg|0|abbr=on}} or {{convert|___|kg|lb|0|abbr=on}}. For additional documentation and examples, see Script error: No such module "Section link"..
Added parameters for wrestlers
style
club
collegeteam
coach
Medal templates / Updated date
medaltemplates the medals the wrestler has won in the usual format, but without {{MedalTop}} or {{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.
updated date information was updated (use {{subst:Date}} or {{subst:Date|2=mdy}} for the current date)

Microformat

Template:UF-hcard-person

Tracking categories

via Infobox sportsperson

See also