Edge Rewrite
Jump to content

Template:Win-loss record/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Required parameters: {{Win-loss record|w=|l=}}

Optional parameters: {{Win-loss record|d=|otl=|t=|nr=|a=|sd=|=p}}

Inverting l–d to d–l: {{Win-loss record|wdl=yes|w=|d=|l=}}

This template is for use with abbreviated lists of wins and losses in sporting articles (the 'win–loss record'). It optionally supports draws, ties, overtime losses and/or no results, as well as absences, playoff bouts and/or sumo draws. The output is a standardised short numeric format, with a tooltip pop-up that explains the notation.

Parameters

[edit]

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

Special parameters for various sports:

Special parameters in use for sumo wrestling:

Examples

[edit]
Code Result
{{Win-loss record|w=1|l=0}} 1–0
{{Win-loss record|w=2|l=1}} 2–1
{{Win-loss record|w=4|l=7|d=0}} 4–7–0
{{Win-loss record|wdl=yes|w=4|d=0|l=7}} 4–0–7
{{Win-loss record|w=1|l=1|d=1}} 1–1–1
{{Win-loss record|wdl=yes|w=1|d=1|l=1}} 1–1–1
{{Win-loss record|w=1|l=3|d=2}} 1–8–2
{{Win-loss record|w=6|l=8|otl=1}} 6–8–1
{{Win-loss record|w=6|l=8|d=2|otl=1}} 6–8–2–1
{{Win-loss record|w=45|l=67|d=31|t=2}} 45–67–31–2
{{Win-loss record|w=98|l=56|t=1|nr=4}} 98–56–1–4
{{Win-loss record|w=0|l=0|a=15}} 0–0–15
{{Win-loss record|w=7|l=3|sd=1}} 7–3–1△
{{Win-loss record|w=2|l=2|a=1|sd=2}} 2–2–1–2△
{{Win-loss record|w=12|l=2|a=1|p=1}} 12–2–1–P
{{Win-loss record|w=11|l=4|p=3}} 11–4–PPP

See also

[edit]