Difference between revisions of "Template:BPL Result"
Jump to navigation
Jump to search
imported>Mkdw (phase out of 2013_Bangladesh_Premier_League#Results; still being used) |
imported>Leemon2010 (+) |
||
| Line 12: | Line 12: | ||
| away = style="background:#FFCCCC; text-align: center" {{!}} {{#if: {{{team|}}} | {{{team}}}<br/>}}{{#if: {{{match|}}} | [[#match{{{match}}}{{!}}{{{margin}}}]] | {{{margin}}} }} | | away = style="background:#FFCCCC; text-align: center" {{!}} {{#if: {{{team|}}} | {{{team}}}<br/>}}{{#if: {{{match|}}} | [[#match{{{match}}}{{!}}{{{margin}}}]] | {{{margin}}} }} | ||
| − | | aban = style="background:#FFDEAD; text-align: center" {{!}} {{#if: {{{match|}}} | Abandoned<br/>[[#match{{{match}}}{{!}}No result]] | Match abandoned }} | + | | aban = style="background:#FFDEAD; text-align: center" {{!}} {{#if: {{{match|}}} | {{#if: {{{margin|}}} | | Abandoned<br/>}}[[#match{{{match}}}{{!}}{{#if: {{{margin|}}} | {{{margin}}} |No result}}]] | {{{margin|Match abandoned}}} }} |
| test = style="background:#7B68EE; text-align: center" {{!}} [[#match{{{match}}}{{!}}Test target]]<!--FOR TESTING PURPOSES ONLY, DO NOT USE IN ARTICLES--> | | test = style="background:#7B68EE; text-align: center" {{!}} [[#match{{{match}}}{{!}}Test target]]<!--FOR TESTING PURPOSES ONLY, DO NOT USE IN ARTICLES--> | ||
| Line 18: | Line 18: | ||
| default = style="background:#C0C0C0; text-align: center" {{!}} | | default = style="background:#C0C0C0; text-align: center" {{!}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
| + | |||
==Usage== | ==Usage== | ||
Revision as of 15:00, 20 May 2013
Usage
Use this template to format the cells in the results table.
- The parameter
winnerdecides 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
margintakes the margin of winning. Mandatory forhomeandawaywinner. Ignored for the others. - The parameter
matchtakes the sequence number of the match and makes either the margin (ifwinnerishomeoraway) or the result (ifwinnerisdraw,tieoraban) an internal link that links to the match details. Optional parameter. - The
teamparameter lists the name of the winning team.
Examples
| No match possible | {{BPL Result|winner = null}} | |
| Home team wins | 12 runs | {{BPL Result|winner = home | match=12 | margin = 12 runs}} |
| Away team wins | Dhaka 12 runs |
{{BPL Result|winner = away | margin = 12 runs | team = Dhaka}} |
| Drawn match | Match drawn | {{BPL Result|winner = draw | match = 20}} |
| Tied match | Match tied | {{BPL Result|winner = tie}} |
| Abandoned match | Match abandoned | {{BPL Result|winner = aban}} |
| No formatting | {{BPL Result}} |