Open main menu

Template:YEAR/testcases

< Template:YEAR
Revision as of 21:55, 2 December 2018 by en>SMcCandlish (tweak)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Testcases

Sandbox version "Live" version

Special cases:

Errors:

  • {{YEAR|1999}} gives: 1999
  • {{YEAR|1999-12-12}} gives: 1999
  • {{YEAR|January 1999}} gives: 1999
  • {{YEAR|1 January 1999}} gives: 1999
  • {{YEAR|January 1, 1999}} gives: 1999
  • {{YEAR|1-2-1990}} gives: 1990
  • {{YEAR|1/2/1990}} gives: 1990
  • {{YEAR|2239-10-23}} gives: 2239

Special cases:

  • {{YEAR}} gives: 2024
  • {{YEAR|1999-2001}} gives: 1999

Errors:

  • {{YEAR|1-14-1990}} gives: Error
  • {{YEAR|61 January 1999}} gives: Error
  • {{YEAR|1 MyMonth 1999}} gives: Error
  • {{YEAR|on approximately 1999-12-12}} gives: Error
  • {{YEAR|some text which is not a date}} gives: Error