Template:Death date and age/testcases

From blackwiki
< Template:Death date and age
Revision as of 02:56, 25 September 2008 by imported>Pixelface (testing auto category with sandbox template)
Jump to navigation Jump to search

The following test cases use {{Death date and age/sandbox}}:

International format (df=yes)

  • {{Death date and age/sandbox|2011|5|13|1965|12|14|df=yes}}
    • 13 May 2011(2011-05-13) (aged 45)
  • {{Death date and age/sandbox|2008|9|22|1913|4|22|df=yes}}
    • 22 September 2008(2008-09-22) (aged 95)
  • {{Death date and age/sandbox|1985|3|11|1903|11|19|df=yes}}
    • 11 March 1985(1985-03-11) (aged 81)

American format (mf=yes)

  • {{Death date and age/sandbox|2011|5|13|1965|12|14|mf=yes}}
    • May 13, 2011(2011-05-13) (aged 45)
  • {{Death date and age/sandbox|2008|9|22|1913|4|22|mf=yes}}
    • September 22, 2008(2008-09-22) (aged 95)
  • {{Death date and age/sandbox|1985|3|11|1903|11|19|mf=yes}}
    • March 11, 1985(1985-03-11) (aged 81)

Default (International) format (no parameter)

  • {{Death date and age/sandbox|2011|5|13|1965|12|14}}
    • May 13, 2011(2011-05-13) (aged 45)
  • {{Death date and age/sandbox|2008|9|22|1913|4|22}}
    • September 22, 2008(2008-09-22) (aged 95)
  • {{Death date and age/sandbox|1985|3|11|1903|11|19}}
    • March 11, 1985(1985-03-11) (aged 81)

What if both mf and df are set?

  • {{Death date and age/sandbox|2011|5|13|1965|12|14|df=yes|mf=yes}}
    • 13 May 2011(2011-05-13) (aged 45)
  • {{Death date and age/sandbox|2008|9|22|1913|4|22|df=yes|mf=yes}}
    • 22 September 2008(2008-09-22) (aged 95)
  • {{Death date and age/sandbox|1985|3|11|1903|11|19|df=yes|mf=yes}}
    • 11 March 1985(1985-03-11) (aged 81)

Bogus dates

  • {{Death date and age/sandbox|1948|2|31|1858|12|777}}
    • Error: Need valid death date (first date): year, month, day
  • {{Death date and age/sandbox|1973|4|31|1923|11|31}}
    • Error: Need valid death date (first date): year, month, day
  • {{Death date and age/sandbox|1923|4|31|1973|11|31}}
    • Error: Need valid death date (first date): year, month, day

Deaths at age X

  • {{death date and age/sandbox|1955|9|30|1931|2|8}}
    • September 30, 1955(1955-09-30) (aged 24)