Jump to content

Template:Cricket Result

From Wikipedia, the free encyclopedia


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 are null (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) and aban (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 for home and away winner. Ignored for the others.
  • The parameter scorecard takes the URL of a match scorecard. It makes either the margin (if winner is home or away) or the result (if winner is draw, tie or aban) a link to the scorecard. Optional parameter.
  • The team parameter takes the name of the winning team.

Examples

[edit]
No match possible {{Cricket Result|winner = null}}
Home team wins 12 runs {{Cricket Result|winner = home | margin = 12 runs}}
Away team wins Australia
12 runs
{{Cricket Result|winner = away | margin = 12 runs | team = Australia}}
Drawn match Match drawn {{Cricket Result|winner = draw}}
Tied match Match tied {{Cricket Result|winner = tie}}
Abandoned match Match abandoned {{Cricket Result|winner = aban}}
Future match 31 Dec {{Cricket Result|date = 31 Dec}}
No formatting {{Cricket Result}}