Template:Win-loss record

From Ava Zinn Wiki
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[edit]

{{Win-loss record|w=|l=|d=|otl=}}

This template is for use with abbreviated lists of wins and losses, and optionally draws and/or overtime losses, for sports teams (their 'win-loss record'). It generates a short numeric format, but provides a tooltip popup which explains the notation.

Parameters[edit]

All four 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

Examples[edit]

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

See also[edit]