Template:YEAR/testcases

From Nordic Larp Wiki
Jump to navigation Jump to search

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