Template:Infobox boxer/doc: Difference between revisions
m (add links to modules used in template) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 02:59, 15 February 2024
File:Edit-copy green.svg | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
Warning | This template is used on approximately 5,800 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. |
File:Ambox important.svg | 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. |
File:Ambox warning yellow.svg | 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. |
File:Lua-Logo.svg | 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
{{{name}}} | |||
---|---|---|---|
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|upright=1]] | |||
Born | {{{real_name}}} {{{birth_date}}} {{{birth_place}}} | ||
Died | {{{death_date}}} {{{death_place}}} | ||
Nationality | {{{nationality}}} | ||
Other names | {{{nickname}}} | ||
Statistics | |||
Weight(s) | {{{weight}}} | ||
Height | {{{height}}} | ||
Reach | {{{reach}}} | ||
Stance | {{{style}}} | ||
Boxing record<ref group="">"Boxing record for {{{name}}}". BoxRec.</ref> | |||
Total fights | {{{total}}} | ||
Wins | {{{wins}}} | ||
Wins by KO | {{{KO}}} | ||
Losses | {{{losses}}} | ||
Draws | {{{draws}}} | ||
No contests | {{{no contests}}} | ||
Medal record
| |||
Website | {{{website}}} |
<syntaxhighlight lang="wikitext" style="overflow:auto">
Infobox boxer/doc |
---|
</syntaxhighlight>
References
Parameters
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.
- image_border — set to 1 to add an image border
- alt — Alt text for image. See WP:ALT.
- caption — Caption for image, if needed. Include date of photo, if known.
- real_name — Full name; only use if different from name listed above.
- nickname — Most common nicknames
- nationality — Nationality, unlinked if the boxer is from a well-known country; do not include a flag icon
- birth_name — Name given at birth
- 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
- embed — Setting to
yes
allows infobox embedding.
Parameters specialized to boxers include:
- weight — Currently published weight class. For retired and dead boxers, most commonly listed weight class (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)
- style — Stance; use either Orthodox or Southpaw
- boxrec — id at http://www.boxrec.com/
- 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
Jameel McCline | |
---|---|
File:Jameel McCline vs. Samuel Peter.jpg | |
Born | New York City, New York, U.S. | May 20, 1970
Nationality | American |
Other names | Big Time |
Statistics | |
Weight(s) | Heavyweight |
Height | 6 ft 6 in (198 cm) |
Reach | 82 in (208 cm) |
Stance | Orthodox |
Boxing record<ref group="">"Boxing record for Jameel McCline". BoxRec.</ref> | |
Total fights | 57 |
Wins | 41 |
Wins by KO | 24 |
Losses | 13 |
Draws | 3 |
<syntaxhighlight lang="wikitext" style="overflow:auto">
Jameel McCline | |
---|---|
File:Jameel McCline vs. Samuel Peter.jpg | |
Born | New York City, New York, U.S. | May 20, 1970
Nationality | American |
Other names | Big Time |
Statistics | |
Weight(s) | Heavyweight |
Height | 6 ft 6 in (198 cm) |
Reach | 82 in (208 cm) |
Stance | Orthodox |
Boxing record<ref group="">"Boxing record for Jameel McCline". BoxRec.</ref> | |
Total fights | 57 |
Wins | 41 |
Wins by KO | 24 |
Losses | 13 |
Draws | 3 |
</syntaxhighlight>
References
Microformat
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
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
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
- Category:Pages using infobox boxer with unknown parameters (0)
- Category:Pages using infobox boxer with conflicting parameters (0)
See also