Difference between revisions of "Template:Boxing record summary"
Jump to navigation
Jump to search
imported>ShakespeareFan00 m (Mismatched bold formatting repaired) |
imported>Koavf |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | {|class="wikitable collapsible {{{state|uncollapsed}}} | + | {|class="wikitable collapsible {{{state|uncollapsed}}}" |
| − | | | + | |+Professional record summary |
| − | |||
| − | |||
|- | |- | ||
|style="background:#F9F9F9;text-align:center"|'''{{#expr:{{{wins|{{#expr:0{{{ko-wins|}}} + 0{{{dec-wins|}}} + 0{{{dq-wins|}}}}}}}} + {{{losses|{{#expr:0{{{ko-losses|}}} + 0{{{dec-losses|}}} + 0{{{dq-losses|}}}}}}}} + 0{{{draws|}}} + 0{{{nc|}}} + 0{{{nws|}}} }} fight{{plural:{{#expr:{{{wins|{{#expr:0{{{ko-wins|}}} + 0{{{dec-wins|}}} + 0{{{dq-wins|}}}}}}}} + {{{losses|{{#expr:0{{{ko-losses|}}} + 0{{{dec-losses|}}} + 0{{{dq-losses|}}}}}}}} + 0{{{draws|}}} + 0{{{nc|}}} + 0{{{nws|}}} }}||s}}''' | |style="background:#F9F9F9;text-align:center"|'''{{#expr:{{{wins|{{#expr:0{{{ko-wins|}}} + 0{{{dec-wins|}}} + 0{{{dq-wins|}}}}}}}} + {{{losses|{{#expr:0{{{ko-losses|}}} + 0{{{dec-losses|}}} + 0{{{dq-losses|}}}}}}}} + 0{{{draws|}}} + 0{{{nc|}}} + 0{{{nws|}}} }} fight{{plural:{{#expr:{{{wins|{{#expr:0{{{ko-wins|}}} + 0{{{dec-wins|}}} + 0{{{dq-wins|}}}}}}}} + {{{losses|{{#expr:0{{{ko-losses|}}} + 0{{{dec-losses|}}} + 0{{{dq-losses|}}}}}}}} + 0{{{draws|}}} + 0{{{nc|}}} + 0{{{nws|}}} }}||s}}''' | ||
Latest revision as of 02:26, 7 May 2020
| 0 fights | 0 wins | 0 losses |
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template takes the following parameters, all of them self-explanatory:
state—takes eithercollapsedoruncollapseddrawsncnwsko-winsko-lossesdec-winsdec-lossesdq-winsdq-losses
- Parameters
{{Boxing record summary
|draws=
|nc=
|nws=
|ko-wins=
|ko-losses=
|dec-wins=
|dec-losses=
|dq-wins=
|dq-losses=
}}
Everything defaults to zero, except for draws, nc, and nws, which default to not showing. Individual types of wins and losses will show only in the presence of either a win or a loss.
- Example for Mike Tyson
{{Boxing record summary
|nc=2
|ko-wins=44
|ko-losses=5
|dec-wins=5
|dq-wins=1
|dq-losses=1
}}
| 58 fights | 50 wins | 6 losses |
| By knockout | align="center" Template:Yes244 | align="center" Template:No25 |
| By decision | align="center" Template:Yes25 | align="center" Template:No20 |
| By disqualification | align="center" Template:Yes21 | align="center" Template:No21 |
| No contests | 2 | |
| The above documentation is transcluded from Template:Boxing record summary/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |