Template:Cricket Result
This template is being considered for merging with Template:Cricket result. Please discuss this matter at this template's entry at templates for discussion to help reach a consensus. |
Usage
[edit]Use this template to format the cells in the results table.
- The parameter
winner
decides the background color of the cell. Possible values arenull
(to indicate that no match is possible, as in when both the column and the row refer to the same team),home
(for matches won by the home team),away
(for matches won by the visitor team),draw
(for drawn matches),tie
(for tied matches) andaban
(for abandoned matches). Mandatory parameter. - The parameter
date
takes the date the match was played or is scheduled to be played. Optional parameter. - The parameter
margin
takes the margin of winning. Mandatory forhome
andaway
winner. Ignored for the others. - The parameter
scorecard
takes the URL of a match scorecard. It makes either the margin (ifwinner
ishome
oraway
) or the result (ifwinner
isdraw
,tie
oraban
) a link to the scorecard. Optional parameter. - The
team
parameter takes the name of the winning team.
Examples
[edit]No match possible |
style="background:#C0C0C0; text-align: center" | || {{Cricket Result|winner = null}} |
Home team wins |
style="background:#CCCCFF; text-align: center" | 12 runs || {{Cricket Result|winner = home | margin = 12 runs}} |
Away team wins |
style="background:#FFCCCC; text-align: center" | Australia |
Drawn match |
style="background:#F0E68C; text-align: center" | Match drawn || {{Cricket Result|winner = draw}} |
Tied match |
style="background:#DDFFDD; text-align: center" | Match tied || {{Cricket Result|winner = tie}} |
Abandoned match |
style="background:#FFDEAD; text-align: center" | Match abandoned || {{Cricket Result|winner = aban}} |
Future match |
style="text-align: center" | 31 Dec || {{Cricket Result|date = 31 Dec}} |
No formatting |
style="text-align: center" | || {{Cricket Result}} |