Difference between revisions of "Template:Infobox boxer"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Update BoxRec URL and formatting of citation. Tested with /sandbox and example in template documentation.)
imported>Zyxw
m (allow alternative parameter names)
 
Line 9: Line 9:
 
| caption    = {{{caption|}}}
 
| caption    = {{{caption|}}}
  
| header1    = {{#if:{{{real_name|}}}{{{realname|}}}{{{nickname|}}}{{{weight|}}}{{{height|}}}{{{reach|}}}{{{nationality|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{style|}}}|Statistics}}
+
| header1    = {{#if:{{{real_name|}}}{{{realname|}}}{{{nickname|}}}{{{weight_class|}}}{{{weight class|}}}{{{weight|}}}{{{height|}}}{{{reach|}}}{{{nationality|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{style|}}}|Statistics}}
  
 
| label2    = Real name
 
| label2    = Real name
Line 16: Line 16:
 
| class3    = nickname
 
| class3    = nickname
 
| data3      = {{{nickname|}}}
 
| data3      = {{{nickname|}}}
| label4    = <span class="nowrap">Weight(s)</span>
+
| label4     = <span class="nowrap">Weight class</span>
| data4     = {{#if:{{{weight|}}}|{{infobox person/weight|{{{weight}}}}}}}
+
| data4      = {{{weight_class|{{{weight class|}}}}}}
| label5     = Height
+
| label5     = <span class="nowrap">Weight(s)</span>
| data5     = {{#if:{{{height|}}}|{{infobox person/height|{{{height}}}}}}}
+
| data5     = {{#if:{{{weight|}}}|{{Infobox person/weight|{{{weight}}}}}}}
| label6     = Reach
+
| label6     = Height
| data6     = {{#if:{{{reach|}}}|{{infobox person/length|{{{reach}}}}}}}
+
| data6     = {{#if:{{{height|}}}|{{Infobox person/height|{{{height}}}}}}}
| label7     = Nationality
+
| label7     = Reach
| data7     = {{{nationality|}}}
+
| data7     = {{#if:{{{reach|}}}|{{Infobox person/length|{{{reach}}}}}}}
| label8     = Born
+
| label8     = Nationality
| data8     = {{br separated entries|{{{birth_name|}}}|{{{birth_date|}}}|{{{birth_place|}}} }}  
+
| data8     = {{{nationality|}}}
| label9    = Died
+
| label9     = Born
| data9      = {{br separated entries|{{{death_date|}}}|{{{death_place|}}} }}  
+
| data9     = {{br separated entries|{{{birth_name|}}}|{{{birth_date|}}}|{{{birth_place|}}} }}  
| label10   = Stance
+
| label10    = Died
| data10     = {{{style|}}}
+
| data10    = {{br separated entries|{{{death_date|}}}|{{{death_place|}}} }}  
 +
| label11   = Stance
 +
| data11     = {{{stance|{{{style|}}}}}}
  
| header11   = {{#if:{{{total|}}}{{{wins|}}}{{{KO|}}}{{{losses|}}}{{{draws|}}}{{{no contests|}}}|Boxing record{{#if:{{{boxrec|}}}|{{refn|1={{cite web |url=http://boxrec.com/en/boxer/{{{boxrec}}} |title=Boxing record for {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} |publisher=[[BoxRec]]}}}}}}}}
+
| header12   = {{#if:{{{total|}}}{{{wins|}}}{{{KO|}}}{{{losses|}}}{{{draws|}}}{{{no_contests|}}}{{{no contests|}}}|Boxing record{{#if:{{{boxrec|}}}|{{refn|1={{cite web |url=http://boxrec.com/en/boxer/{{{boxrec}}} |title=Boxing record for {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} |publisher=[[BoxRec]]}}}}}}}}
  
| label12   = Total fights
+
| label13   = Total fights
| data12     = {{{total|}}}
+
| data13     = {{{total|}}}
| label13   = Wins
+
| label14   = Wins
| data13     = {{{wins|}}}
+
| data14     = {{{wins|}}}
| label14   = Wins by KO
+
| label15   = Wins by KO
| data14     = {{{KO|}}}
+
| data15     = {{{KO|}}}
| label15   = Losses
+
| label16   = Losses
| data15     = {{{losses|}}}
+
| data16     = {{{losses|}}}
| label16   = Draws
+
| label17   = Draws
| data16     = {{{draws|}}}
+
| data17     = {{{draws|}}}
| label17   = No contests
+
| label18   = No contests
| data17     = {{{no contests|}}}
+
| data18     = {{{no_contests|{{{no contests|}}}}}}
| label18   = Website
+
| label19   = Website
| data18     = {{{url|{{{website|}}}}}}
+
| data19     = {{{website|{{{url|}}}}}}
| header19   = {{Infobox medal templates
+
 
   |medals = {{{medaltemplates|}}}
+
| header20   = {{Infobox medal templates
 +
   |medals = {{{medals|{{{medaltemplates|}}}}}}
 
   |expand = {{#ifeq:{{lc:{{{show-medals}}}}}|no||yes}}
 
   |expand = {{#ifeq:{{lc:{{{show-medals}}}}}|no||yes}}
 
   }}
 
   }}
  
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox boxer with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox boxer]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | birth_date | birth_name | birth_place | boxrec | caption | death_date | death_place | draws | embed | height | image | image_border | image_size | imagesize | KO | losses | medaltemplates | name | nationality | nickname | no contests | reach | real_name | realname | show-medals | style | total | url | website | weight | wins }}<noinclude>{{Documentation}}</noinclude>
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox boxer with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox boxer]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | birth_date | birth_name | birth_place | boxrec | caption | death_date | death_place | draws | embed | height | image | image_border | image_size | imagesize | KO | losses | medals | medaltemplates | name | nationality | nickname | no_contests | no contests | reach | real_name | realname | show-medals | stance | style | total | url | website | weight | weight_class | weight class | wins }}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 03:02, 12 March 2019

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Person infobox header

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

Template:Parameter names example

{{Infobox boxer
| name           = 
| image          = 
| image_size     = 
| image_border   = 
| alt            = 
| caption        = 
| real_name      = 
| nickname       = 
| weight         = 
| height         = <!-- "X ft Y in" or "X cm" (conversions are automatic) -->
| reach          = <!-- "X in" or "X cm" (conversions are automatic) -->
| nationality    = 
| birth_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    = 
| style          = 
| boxrec         = 
| total          = 
| wins           = 
| KO             = 
| losses         = 
| draws          = 
| no contests    = 
| website        = 
| medaltemplates = 
| show-medals    = 
| embed          = <!-- "yes" allows infobox embedding -->
}}

Template:Section references

Parameters

  • 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.
  • nicknameMost common nicknames
  • 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)
  • 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
  • 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.
  • embed — Setting to yes allows infobox embedding.

Example

Template:Parameter names example

{{Infobox boxer
| name        = Jameel McCline
| image       = Jameel McCline vs. Samuel Peter.jpg
| image_size  = 250px
| caption     = McCline (left) vs. [[Samuel Peter]], 2007
| nickname    = Big Time
| weight      = [[Heavyweight]]
| height      = 6 ft 6 in
| reach       = 82 in
| nationality = American
| birth_date  = {{Birth date and age|1970|5|20|mf=y}}
| birth_place = [[New York City]], New York, U.S.
| style       = [[Orthodox stance|Orthodox]]
| boxrec      = 8943
| total       = 57
| wins        = 41
| KO          = 24
| losses      = 13
| draws       = 3
}}

Template:Section references

Microformat

Template:UF-hcard-person

Tracking category

See also