Difference between revisions of "Template:BPL Result"
imported>Leemon2010 |
imported>SocietyBox (db-t3) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#switch: {{{winner|}}} | + | <noinclude>{{db-t3|02:56, 5 May 2013 (UTC)|IPL Result}}</noinclude><includeonly>{{#switch: {{{winner|}}} |
| = style="text-align: center" {{!}} {{#if: {{{match|}}} | [[#match{{{match}}}{{!}}Match {{{match}}}]] }} | | = style="text-align: center" {{!}} {{#if: {{{match|}}} | [[#match{{{match}}}{{!}}Match {{{match}}}]] }} | ||
Revision as of 02:56, 5 May 2013
This Template:Pagetype may meet Wikipedia's criteria for speedy deletion as a template that is not being employed in any useful fashion, and which satisfies one of the following conditions:
This template may be deleted without further notice as it has been tagged for seven days. See CSD T3. If this Template:Pagetype does not meet the criteria for speedy deletion, or you intend to fix it, please remove this notice, but do not remove this notice from pages that you have created yourself. If you created this page and you disagree with the given reason for deletion, you can click the button below and leave a message explaining why you believe it should not be deleted. You can also visit the talk page to check if you have received a response to your message. Note that this Template:Pagetype may be deleted at any time if it unquestionably meets the speedy deletion criteria, or if an explanation posted to the talk page is found to be insufficient.
Note to page author: you have not edited the talk page yet. If you wish to contest this speedy deletion, clicking the button above will allow you to leave a talk page message explaining why you think this Template:Pagetype should not be deleted. If you have already posted to the talk page but this message is still showing up, try purging the page cache. This page was last edited by [[User:Template:REVISIONUSER2|Template:REVISIONUSER2]] Template:Toolbar at 02:56, 5 May 2013 (UTC) (Template:Time ago) |
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}} |