Template:Birth date and age/testcases

From blackwiki
< Template:Birth date and age
Revision as of 22:08, 20 February 2020 by imported>Zyxw (Update so output of /sandbox template is compared to output of main template. Comment out tests for "ma" parameter that is not implemented in main template or in sandbox.)
Jump to navigation Jump to search

American format (default, no parameter)

{{Birth date and age|2011|5|13}}
  • {{Birth date and age|2011|5|13}} (2011-05-13) May 13, 2011 (age 14)
  • {{Birth date and age/sandbox|2011|5|13}} (2011-05-13) May 13, 2011 (age 14)
{{Birth date and age|2008|9|22}}
  • {{Birth date and age|2008|9|22}} (2008-09-22) September 22, 2008 (age 17)
  • {{Birth date and age/sandbox|2008|9|22}} (2008-09-22) September 22, 2008 (age 17)
{{Birth date and age|1985|3|11}}
  • {{Birth date and age|1985|3|11}} (1985-03-11) March 11, 1985 (age 40)
  • {{Birth date and age/sandbox|1985|3|11}} (1985-03-11) March 11, 1985 (age 40)
{{Birth date and age|1898|12|23}}
  • {{Birth date and age|1898|12|23}} (1898-12-23) December 23, 1898 (age 126)
  • {{Birth date and age/sandbox|1898|12|23}} (1898-12-23) December 23, 1898 (age 126)
{{Birth date and age|1955|1|31}}
  • {{Birth date and age|1955|1|31}} (1955-01-31) January 31, 1955 (age 70)
  • {{Birth date and age/sandbox|1955|1|31}} (1955-01-31) January 31, 1955 (age 70)
{{Birth date and age|1956|2|29}}
  • {{Birth date and age|1956|2|29}} (1956-02-29) February 29, 1956 (age 69)
  • {{Birth date and age/sandbox|1956|2|29}} (1956-02-29) February 29, 1956 (age 69)
{{Birth date and age|1957|3|31}}
  • {{Birth date and age|1957|3|31}} (1957-03-31) March 31, 1957 (age 68)
  • {{Birth date and age/sandbox|1957|3|31}} (1957-03-31) March 31, 1957 (age 68)
{{Birth date and age|1958|4|30}}
  • {{Birth date and age|1958|4|30}} (1958-04-30) April 30, 1958 (age 67)
  • {{Birth date and age/sandbox|1958|4|30}} (1958-04-30) April 30, 1958 (age 67)
{{Birth date and age|1959|5|31}}
  • {{Birth date and age|1959|5|31}} (1959-05-31) May 31, 1959 (age 66)
  • {{Birth date and age/sandbox|1959|5|31}} (1959-05-31) May 31, 1959 (age 66)
{{Birth date and age|1960|6|30}}
  • {{Birth date and age|1960|6|30}} (1960-06-30) June 30, 1960 (age 65)
  • {{Birth date and age/sandbox|1960|6|30}} (1960-06-30) June 30, 1960 (age 65)
{{Birth date and age|1961|7|31}}
  • {{Birth date and age|1961|7|31}} (1961-07-31) July 31, 1961 (age 64)
  • {{Birth date and age/sandbox|1961|7|31}} (1961-07-31) July 31, 1961 (age 64)
{{Birth date and age|1962|8|31}}
  • {{Birth date and age|1962|8|31}} (1962-08-31) August 31, 1962 (age 63)
  • {{Birth date and age/sandbox|1962|8|31}} (1962-08-31) August 31, 1962 (age 63)
{{Birth date and age|1963|9|30}}
  • {{Birth date and age|1963|9|30}} (1963-09-30) September 30, 1963 (age 62)
  • {{Birth date and age/sandbox|1963|9|30}} (1963-09-30) September 30, 1963 (age 62)
{{Birth date and age|1964|10|31}}
  • {{Birth date and age|1964|10|31}} (1964-10-31) October 31, 1964 (age 61)
  • {{Birth date and age/sandbox|1964|10|31}} (1964-10-31) October 31, 1964 (age 61)
{{Birth date and age|1965|11|30}}
  • {{Birth date and age|1965|11|30}} (1965-11-30) November 30, 1965 (age 59)
  • {{Birth date and age/sandbox|1965|11|30}} (1965-11-30) November 30, 1965 (age 59)
{{Birth date and age|1966|12|31}}
  • {{Birth date and age|1966|12|31}} (1966-12-31) December 31, 1966 (age 58)
  • {{Birth date and age/sandbox|1966|12|31}} (1966-12-31) December 31, 1966 (age 58)

International format (df=yes)

{{Birth date and age|2011|5|13|df=yes}}
  • {{Birth date and age|2011|5|13|df=yes}} (2011-05-13) 13 May 2011 (age 14)
  • {{Birth date and age/sandbox|2011|5|13|df=yes}} (2011-05-13) 13 May 2011 (age 14)
{{Birth date and age|2008|9|22|df=yes}}
  • {{Birth date and age|2008|9|22|df=yes}} (2008-09-22) 22 September 2008 (age 17)
  • {{Birth date and age/sandbox|2008|9|22|df=yes}} (2008-09-22) 22 September 2008 (age 17)
{{Birth date and age|1985|3|11|df=yes}}
  • {{Birth date and age|1985|3|11|df=yes}} (1985-03-11) 11 March 1985 (age 40)
  • {{Birth date and age/sandbox|1985|3|11|df=yes}} (1985-03-11) 11 March 1985 (age 40)
{{Birth date and age|1898|12|23|df=yes}}
  • {{Birth date and age|1898|12|23|df=yes}} (1898-12-23) 23 December 1898 (age 126)
  • {{Birth date and age/sandbox|1898|12|23|df=yes}} (1898-12-23) 23 December 1898 (age 126)
{{Birth date and age|1955|1|31|df=yes}}
  • {{Birth date and age|1955|1|31|df=yes}} (1955-01-31) 31 January 1955 (age 70)
  • {{Birth date and age/sandbox|1955|1|31|df=yes}} (1955-01-31) 31 January 1955 (age 70)
{{Birth date and age|1956|2|29|df=yes}}
  • {{Birth date and age|1956|2|29|df=yes}} (1956-02-29) 29 February 1956 (age 69)
  • {{Birth date and age/sandbox|1956|2|29|df=yes}} (1956-02-29) 29 February 1956 (age 69)
{{Birth date and age|1957|3|31|df=yes}}
  • {{Birth date and age|1957|3|31|df=yes}} (1957-03-31) 31 March 1957 (age 68)
  • {{Birth date and age/sandbox|1957|3|31|df=yes}} (1957-03-31) 31 March 1957 (age 68)
{{Birth date and age|1958|4|30|df=yes}}
  • {{Birth date and age|1958|4|30|df=yes}} (1958-04-30) 30 April 1958 (age 67)
  • {{Birth date and age/sandbox|1958|4|30|df=yes}} (1958-04-30) 30 April 1958 (age 67)
{{Birth date and age|1959|5|31|df=yes}}
  • {{Birth date and age|1959|5|31|df=yes}} (1959-05-31) 31 May 1959 (age 66)
  • {{Birth date and age/sandbox|1959|5|31|df=yes}} (1959-05-31) 31 May 1959 (age 66)
{{Birth date and age|1960|6|30|df=yes}}
  • {{Birth date and age|1960|6|30|df=yes}} (1960-06-30) 30 June 1960 (age 65)
  • {{Birth date and age/sandbox|1960|6|30|df=yes}} (1960-06-30) 30 June 1960 (age 65)
{{Birth date and age|1961|7|31|df=yes}}
  • {{Birth date and age|1961|7|31|df=yes}} (1961-07-31) 31 July 1961 (age 64)
  • {{Birth date and age/sandbox|1961|7|31|df=yes}} (1961-07-31) 31 July 1961 (age 64)
{{Birth date and age|1962|8|31|df=yes}}
  • {{Birth date and age|1962|8|31|df=yes}} (1962-08-31) 31 August 1962 (age 63)
  • {{Birth date and age/sandbox|1962|8|31|df=yes}} (1962-08-31) 31 August 1962 (age 63)
{{Birth date and age|1963|9|30|df=yes}}
  • {{Birth date and age|1963|9|30|df=yes}} (1963-09-30) 30 September 1963 (age 62)
  • {{Birth date and age/sandbox|1963|9|30|df=yes}} (1963-09-30) 30 September 1963 (age 62)
{{Birth date and age|1964|10|31|df=yes}}
  • {{Birth date and age|1964|10|31|df=yes}} (1964-10-31) 31 October 1964 (age 61)
  • {{Birth date and age/sandbox|1964|10|31|df=yes}} (1964-10-31) 31 October 1964 (age 61)
{{Birth date and age|1965|11|30|df=yes}}
  • {{Birth date and age|1965|11|30|df=yes}} (1965-11-30) 30 November 1965 (age 59)
  • {{Birth date and age/sandbox|1965|11|30|df=yes}} (1965-11-30) 30 November 1965 (age 59)
{{Birth date and age|1966|12|31|df=yes}}
  • {{Birth date and age|1966|12|31|df=yes}} (1966-12-31) 31 December 1966 (age 58)
  • {{Birth date and age/sandbox|1966|12|31|df=yes}} (1966-12-31) 31 December 1966 (age 58)

Bogus dates

{{Birth date and age|1948|2|31|age}}
  • {{Birth date and age|1948|2|31|age}}Error: Need valid birth date: year, month, day
  • {{Birth date and age/sandbox|1948|2|31|age}}Error: Need valid birth date: year, month, day
{{Birth date and age|1943|4|31|years}}
  • {{Birth date and age|1943|4|31|years}}Error: Need valid birth date: year, month, day
  • {{Birth date and age/sandbox|1943|4|31|years}}Error: Need valid birth date: year, month, day
{{Birth date and age|1953|6|31}}
  • {{Birth date and age|1953|6|31}}Error: Need valid birth date: year, month, day
  • {{Birth date and age/sandbox|1953|6|31}}Error: Need valid birth date: year, month, day
{{Birth date and age|1980|9|31}}
  • {{Birth date and age|1980|9|31}}Error: Need valid birth date: year, month, day
  • {{Birth date and age/sandbox|1980|9|31}}Error: Need valid birth date: year, month, day
{{Birth date and age|1977|11|31}}
  • {{Birth date and age|1977|11|31}}Error: Need valid birth date: year, month, day
  • {{Birth date and age/sandbox|1977|11|31}}Error: Need valid birth date: year, month, day
{{Birth date and age|1994|12|777}}
  • {{Birth date and age|1994|12|777}}Error: Need valid birth date: year, month, day
  • {{Birth date and age/sandbox|1994|12|777}}Error: Need valid birth date: year, month, day
{{Birth date and age|2010|3|7|year}}
  • {{Birth date and age|2010|3|7|year}} (2010-03-07) March 7, 2010 (age 15)
  • {{Birth date and age/sandbox|2010|3|7|year}} (2010-03-07) March 7, 2010 (age 15)
{{Birth date and age|2009|3|7|year}}
  • {{Birth date and age|2009|3|7|year}} (2009-03-07) March 7, 2009 (age 16)
  • {{Birth date and age/sandbox|2009|3|7|year}} (2009-03-07) March 7, 2009 (age 16)
{{Birth date and age|1972|3|7|32}}
  • {{Birth date and age|1972|3|7|32}} (1972-03-07) March 7, 1972 (age 53)
  • {{Birth date and age/sandbox|1972|3|7|32}} (1972-03-07) March 7, 1972 (age 53)
{{Birth date and age|1972|3|7|age 55}}
  • {{Birth date and age|1972|3|7|age 55}} (1972-03-07) March 7, 1972 (age 53)
  • {{Birth date and age/sandbox|1972|3|7|age 55}} (1972-03-07) March 7, 1972 (age 53)