Jump to content

Template:MMAevent card/doc

From Wikipedia, the free encyclopedia

This template is part of a series of MMA event templates to make it easier to record the results of a MMA event. This particular template is used to create the header row for each card. Multiple cards can exist for a single event so this template can be used multiple times.

Usage

[edit]

This template should be used after the {{MMAevent}} event header with the {{MMAevent bout}} template used for each bout and the {{MMAevent end}} event footer template used to close the table. The template takes parameters for the name of the card and to indicate if the column headings (Weight class, Method, Round, etc.) should be displayed.

{{MMAevent}}
{{MMAevent card|Main event}}
{{MMAevent bout
|Ork weight
|'Ard Enuff
|defeated
|Go Fasta Red
|KO (Ork elbow)
|2
|2:49
|}}
{{MMAevent end|notes=no}}

produces:

Main event
Weight class Method Round Time Notes
Ork weight 'Ard Enuff defeated Go Fasta Red KO (Ork elbow) 2 2:49

Parameters

[edit]
Positional parameter 1 (no name)
Card name, will put the passed text in a header row, centered
Positional parameter 2, named parameter 'header'
header indicator, indicates if the column name header row should be shown. Use header=no if this is not needed such as events with multiple cards, only the first card should have the header row. Anything else, or no parameter passed, will display the header row.

Examples

[edit]

Single card events

[edit]

For events with a single card, you just need to include the event name as the first parameter.

{{MMAevent}}
{{MMAevent card|Main event}}
{{MMAevent bout
|Ork weight
|'Ard Enuff
|def.
|Go Fasta Red
|KO (Ork elbow)
|2
|2:49
|}}
{{MMAevent end|notes=no}}

produces:

Main event
Weight class Method Round Time Notes
Ork weight 'Ard Enuff def. Go Fasta Red KO (Ork elbow) 2 2:49

Multiple card events

[edit]

For multiple cards, the column headings should displayed only with the first card so you will need to pass two parameters. The main card should always be listed first.

{{MMAevent}}
{{MMAevent card|Main event}}
{{MMAevent bout
|Ork weight
|'Ard Enuff
|def.
|Go Fasta Red
|KO (Ork elbow)
|2
|2:49
|}}
{{MMAevent card|Preliminary (Facebook)|header=no}}
{{MMAevent bout
|Featherweight
|Gregor Eisenhorn
|def.
|Gideon Ravenor
|TKO (punch)
|3
|4:45
|}}
{{MMAevent end|notes=no}}

produces:

Main event
Weight class Method Round Time Notes
Ork weight 'Ard Enuff def. Go Fasta Red KO (Ork elbow) 2 2:49
Preliminary (Facebook)
Featherweight Gregor Eisenhorn def. Gideon Ravenor TKO (punch) 3 4:45

Parameters

[edit]

The template has two optional parameters:

Positional parameter 1 (no name)
The name of the card. If nothing is passed, the card name will be blank
header
Indicates if the header row should be added immediately below the card name row. If "no" is passed, the header row is not displayed; otherwise the row is displayed below the card name.

Category:Martial arts templates

See also

[edit]