Template:Infobox boxer/sandbox
This is the template sandbox page for Template:Infobox boxer (diff). See also the companion subpage for test cases. |
This template is used on approximately 6,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
The design and content of biographical infoboxes must follow Wikipedia's verifiability policy, as well as infobox and biographical style guideline. All content displayed in this template must adhere to the biographies of living persons policy if applicable. Unsourced or poorly sourced contentious material must be removed immediately from the article and its infobox, especially if potentially libellous. |
This template is a customized wrapper for {{Infobox person}}. Any field from {{Infobox person}} can work. It will also emit the same hCard and Geo microformats as {{Infobox person}} . Questions? Just ask here or over at Template talk:Infobox person. |
This template uses Lua: |
Template:Infobox boxer provides a quick overview of the most sought after information of a boxer in an easy to view sideframe to the article proper. The infobox is intended for all current, retired and dead boxers.
Usage
[edit][[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright=1]] | |||
Personal information | |||
---|---|---|---|
Birth name | {{{birth_name}}} | ||
Nationality | {{{nationality}}} | ||
Born | {{{birth_date}}} {{{birth_place}}} | ||
Died | {{{death_date}}} {{{death_place}}} | ||
Website | {{{website}}} | ||
Statistics | |||
Weight class | {{{weight_class}}} | ||
Weight(s) | {{{weight}}} | ||
Height | {{{height}}} | ||
Reach | {{{reach}}} | ||
Stance | {{{stance}}} | ||
Boxing record[1] | |||
Total fights | {{{total}}} | ||
Wins | {{{wins}}} | ||
Wins by KO | {{{KO}}} | ||
Losses | {{{losses}}} | ||
Draws | {{{draws}}} | ||
No contests | {{{no_contests}}} | ||
Medal record
|
{{Infobox boxer
| name =
| image =
| image_size =
| alt =
| caption =
| birth_name = <!-- or real_name = -->
| birth_date = <!-- {{Birth date and age|year of birth|month of birth|day of birth}} -->
| birth_place =
| death_date = <!-- {{death date and age|year of death|month of death|day of death|year of birth|month of birth|day of birth}} -->
| death_place =
| nationality = <!-- use only when necessary per [[WP:INFONAT]] -->
| other_names =
| weight_class =
| weight = <!-- "X lb" or "X kg" (conversions are automatic) -->
| height = <!-- "X ft Y in" or "X cm" (conversions are automatic) -->
| reach = <!-- "X in" or "X cm" (conversions are automatic) -->
| stance =
| boxrec =
| boxrec_name = <!-- if different from name parameter or article name -->
| total =
| wins =
| KO =
| losses =
| draws =
| no_contests =
| medaltemplates =
| show-medals =
| website =
| embed = <!-- "yes" allows infobox embedding -->
}}
References
Parameters
[edit]This template implements all parameters accepted by {{Infobox person}}. See here for a complete list. Common parameters include:
- name — Common name
- image — Image name, if available. Examples: abc.jpg, xpz.png, 123.gif, etc.
- image_size — Size to display image, in px. This parameter should not normally need to be set.
- alt — Alt text for image. See WP:ALT.
- caption — Caption for image, if needed. Include date of photo, if known.
- birth_name — Only use if different from name listed above. Can also use real_name.
- birth_date — Date of birth, use of {{birth date and age}} (if living) or {{birth date}} (if dead) is encouraged
- birth_place — City of birth, with country if different from nationality
- death_date — Date of death, use {{death date and age}} (if birth date is known) or {{death date}} (if birth date unknown).
- death_place — Place of death
- nationality — Nationality, unlinked if the boxer is from a well-known country; do not include a flag icon
- other_names — Other notable names for the person, if different from |name= and |birth_name=. This can include most common nicknames, maiden/married names, etc. Can also use nickname.
- website — Official website only. Use {{URL}} as in example
.com. Do not display www. unless website requires it. - embed — Setting to
yes
allows infobox embedding.
Additional parameters for the boxer infobox:
- weight_class — Currently published weight class. For retired and dead boxers, most commonly listed weight class.
- weight — Listed weight (conversions are automatic but {{convert}} may be used)
- height — Listed height (conversions are automatic but {{convert}} may be used)
- reach — Published reach (conversions are automatic but {{convert}} may be used)
- stance — Stance; use either Orthodox or Southpaw. Can also use style.
- boxrec — id at http://www.boxrec.com/, used in a citation displayed with Boxing record
- boxrec_name — name displayed in citation, if different from name parameter or article name
- total — Total number of fights
- wins — Total number of wins
- KO — Total number of knockouts
- losses — Total number of losses; include a 0 if they are undefeated
- draws — Total number of draws; leave blank if they have not had a draw
- no_contests — Total number of no contests; leave blank if they have not had a no-contest
- medaltemplates — All templates from the medal record infobox except
{{MedalTableTop}}
and{{MedalBottom}}
. Place the medal templates in the order stated in the medal templates documentation, and arrange the competitions alphabetically by name. - show-medals — If
show-medals=no
, the medal table is collapsed. By default, it is expanded.
Example
[edit]Personal information | |
---|---|
Nationality | American |
Born | New York City, New York, U.S. | May 20, 1970
Statistics | |
Weight class | Heavyweight |
Height | 6 ft 6 in (198 cm) |
Reach | 82 in (208 cm) |
Stance | Orthodox |
Boxing record[1] | |
Total fights | 57 |
Wins | 41 |
Wins by KO | 24 |
Losses | 13 |
Draws | 3 |
{{Infobox boxer
| name = Jameel McCline
| image = Jameel McCline vs. Samuel Peter.jpg
| image_size = 250px
| caption = McCline (left) vs. [[Samuel Peter]], 2007
| birth_date = {{Birth date and age|1970|5|20|mf=y}}
| birth_place = [[New York City]], New York, U.S.
| nationality = American
| other_names = Big Time
| weight_class = [[Heavyweight]]
| height = 6 ft 6 in
| reach = 82 in
| stance = [[Orthodox stance|Orthodox]]
| boxrec = 8943
| total = 57
| wins = 41
| KO = 24
| losses = 13
| draws = 3
}}
References
Microformat
[edit]The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
[edit]Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.
To include a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
[edit]hCard uses HTML classes including:
- adr
- agent
- bday
- birthplace
- category
- country-name
- deathdate
- deathplace
- extended-address
- family-name
- fn (required)
- given-name
- honorific-prefix
- honorific-suffix
- label
- locality
- n
- nickname
- note
- org
- role
- url
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.
Tracking category
[edit]- Category:Pages using infobox boxer with unknown parameters (5)
- Category:Pages using infobox boxer with conflicting parameters (1)