Template:Win-loss record
Usage
changeRequired 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
changeAll 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
changeCode | 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 templates
change- {{WDL}}
- {{Winning percentage}}