This is a documentation subpage for Template:Cricket result. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
editUse this template to format the cells in the results table.
- The parameter
|winner=
decides the background color of the cell. Possible values are|winner=null
(to indicate that no match is possible, as in when both the column and the row refer to the same team),|winner=home
(for matches won by the home team),|winner=away
(for matches won by the visitor team),|winner=draw
(for drawn matches),|winner=tie
(for tied matches) and|winner=aban
(for abandoned matches). Mandatory parameter. - The parameter
|margin=
takes the margin of winning. Mandatory for|winner=home
and|winner=away
winner. Ignored for the others. - The parameter
|match=
takes the sequence number of the match and makes either the margin (if|winner=home
or|winner=away
) or the result (if|winner=draw
,|winner=tie
or|winner=aban
) an internal link that links to the match details. Optional parameter. - The
|team=
parameter lists the name of the winning team.
Examples
editNo match possible |
style="background:#C0C0C0; text-align: center" | || |
Home team wins |
style="background:#CCCCFF; text-align: center" | 12 runs || |
Away team wins |
style="background:#FFCCCC; text-align: center" | Australia |
Drawn match |
style="background:#F0E68C; text-align: center" | Match drawn || |
Tied match |
style="background:#DDFFDD; text-align: center" | Match tied || |
Abandoned match |
style="background:#FFDEAD; text-align: center" | Match abandoned || |
No formatting |
style="text-align: center" | || |