Template:Win-loss record
Usage
Required parameters only:
{{Win-loss record|w=|l=}}
All optional parameters:
{{Win-loss record|w=|l=|d=|otl=|t=|nr=}}
This template is for use with abbreviated lists of wins and losses in sporting articles (the 'win-loss record'). It optionally supports draws, ties and/or overtime losses. The output is a standardised short numeric format, with a tooltip pop-up that explains the notation.
Parameters
All parameters correctly handle plurals (1 win, 2 wins etc.).
- w - the number of wins
- l - the number of losses
- d - the number of draws
- otl - the number of overtime losses
- t - the number of ties (for use in sports, such as cricket, where draws and ties are different results)
- nr - the number of no result outcomes
Examples
Code | Result |
---|---|
{{Win-loss record|w=1|l=0}} | 1–0 |
{{Win-loss record|w=3|l=1}} | 3–1 |
{{Win-loss record|w=2|l=3|d=0}} | 2–3–0 |
{{Win-loss record|w=1|l=1|d=1}} | 1–1–1 |
{{Win-loss record|w=1|l=3|d=2}} | 1–3–2 |
{{Win-loss record|w=1|l=3|d=2|otl=1}} | 1–3–2–1 |
{{Win-loss record|w=1|l=3|otl=2}} | 1–3–2 |
{{Win-loss record|w=345|l=267|d=301|t=2}} | 345–267–301–2 |
{{Win-loss record|w=47|l=36|t=1|nr=4}} | 47–36–1–4 |
Related pages
- {{WDL}}
- {{Winning percentage}}
The above documentation is transcluded from Template:Win-loss record/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |