Template:Birth date and age/testcases
Appearance
This is the template test cases page for the sandbox of Template:Birth date and age. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
American format (default, no parameter)
[edit]{{Birth date and age|2011|5|13}}
{{Birth date and age|2011|5|13}}
→ May 13, 2011{{Birth date and age/sandbox|2011|5|13}}
→ May 13, 2011
{{Birth date and age|2008|9|22}}
{{Birth date and age|2008|9|22}}
→ September 22, 2008{{Birth date and age/sandbox|2008|9|22}}
→ September 22, 2008
{{Birth date and age|1985|3|11}}
{{Birth date and age|1985|3|11}}
→ March 11, 1985{{Birth date and age/sandbox|1985|3|11}}
→ March 11, 1985
{{Birth date and age|1898|12|23}}
{{Birth date and age|1898|12|23}}
→ December 23, 1898{{Birth date and age/sandbox|1898|12|23}}
→ December 23, 1898
{{Birth date and age|1955|1|31}}
{{Birth date and age|1955|1|31}}
→ January 31, 1955{{Birth date and age/sandbox|1955|1|31}}
→ January 31, 1955
{{Birth date and age|1956|2|29}}
{{Birth date and age|1956|2|29}}
→ February 29, 1956{{Birth date and age/sandbox|1956|2|29}}
→ February 29, 1956
{{Birth date and age|1957|3|31}}
{{Birth date and age|1957|3|31}}
→ March 31, 1957{{Birth date and age/sandbox|1957|3|31}}
→ March 31, 1957
{{Birth date and age|1958|4|30}}
{{Birth date and age|1958|4|30}}
→ April 30, 1958{{Birth date and age/sandbox|1958|4|30}}
→ April 30, 1958
{{Birth date and age|1959|5|31}}
{{Birth date and age|1959|5|31}}
→ May 31, 1959{{Birth date and age/sandbox|1959|5|31}}
→ May 31, 1959
{{Birth date and age|1960|6|30}}
{{Birth date and age|1960|6|30}}
→ June 30, 1960{{Birth date and age/sandbox|1960|6|30}}
→ June 30, 1960
{{Birth date and age|1961|7|31}}
{{Birth date and age|1961|7|31}}
→ July 31, 1961{{Birth date and age/sandbox|1961|7|31}}
→ July 31, 1961
{{Birth date and age|1962|8|31}}
{{Birth date and age|1962|8|31}}
→ August 31, 1962{{Birth date and age/sandbox|1962|8|31}}
→ August 31, 1962
{{Birth date and age|1963|9|30}}
{{Birth date and age|1963|9|30}}
→ September 30, 1963{{Birth date and age/sandbox|1963|9|30}}
→ September 30, 1963
{{Birth date and age|1964|10|31}}
{{Birth date and age|1964|10|31}}
→ October 31, 1964{{Birth date and age/sandbox|1964|10|31}}
→ October 31, 1964
{{Birth date and age|1965|11|30}}
{{Birth date and age|1965|11|30}}
→ November 30, 1965{{Birth date and age/sandbox|1965|11|30}}
→ November 30, 1965
{{Birth date and age|1966|12|31}}
{{Birth date and age|1966|12|31}}
→ December 31, 1966{{Birth date and age/sandbox|1966|12|31}}
→ December 31, 1966
International format (df=yes)
[edit]{{Birth date and age|2011|5|13|df=yes}}
{{Birth date and age|2011|5|13|df=yes}}
→ 13 May 2011{{Birth date and age/sandbox|2011|5|13|df=yes}}
→ 13 May 2011
{{Birth date and age|2008|9|22|df=yes}}
{{Birth date and age|2008|9|22|df=yes}}
→ 22 September 2008{{Birth date and age/sandbox|2008|9|22|df=yes}}
→ 22 September 2008
{{Birth date and age|1985|3|11|df=yes}}
{{Birth date and age|1985|3|11|df=yes}}
→ 11 March 1985{{Birth date and age/sandbox|1985|3|11|df=yes}}
→ 11 March 1985
{{Birth date and age|1898|12|23|df=yes}}
{{Birth date and age|1898|12|23|df=yes}}
→ 23 December 1898{{Birth date and age/sandbox|1898|12|23|df=yes}}
→ 23 December 1898
{{Birth date and age|1955|1|31|df=yes}}
{{Birth date and age|1955|1|31|df=yes}}
→ 31 January 1955{{Birth date and age/sandbox|1955|1|31|df=yes}}
→ 31 January 1955
{{Birth date and age|1956|2|29|df=yes}}
{{Birth date and age|1956|2|29|df=yes}}
→ 29 February 1956{{Birth date and age/sandbox|1956|2|29|df=yes}}
→ 29 February 1956
{{Birth date and age|1957|3|31|df=yes}}
{{Birth date and age|1957|3|31|df=yes}}
→ 31 March 1957{{Birth date and age/sandbox|1957|3|31|df=yes}}
→ 31 March 1957
{{Birth date and age|1958|4|30|df=yes}}
{{Birth date and age|1958|4|30|df=yes}}
→ 30 April 1958{{Birth date and age/sandbox|1958|4|30|df=yes}}
→ 30 April 1958
{{Birth date and age|1959|5|31|df=yes}}
{{Birth date and age|1959|5|31|df=yes}}
→ 31 May 1959{{Birth date and age/sandbox|1959|5|31|df=yes}}
→ 31 May 1959
{{Birth date and age|1960|6|30|df=yes}}
{{Birth date and age|1960|6|30|df=yes}}
→ 30 June 1960{{Birth date and age/sandbox|1960|6|30|df=yes}}
→ 30 June 1960
{{Birth date and age|1961|7|31|df=yes}}
{{Birth date and age|1961|7|31|df=yes}}
→ 31 July 1961{{Birth date and age/sandbox|1961|7|31|df=yes}}
→ 31 July 1961
{{Birth date and age|1962|8|31|df=yes}}
{{Birth date and age|1962|8|31|df=yes}}
→ 31 August 1962{{Birth date and age/sandbox|1962|8|31|df=yes}}
→ 31 August 1962
{{Birth date and age|1963|9|30|df=yes}}
{{Birth date and age|1963|9|30|df=yes}}
→ 30 September 1963{{Birth date and age/sandbox|1963|9|30|df=yes}}
→ 30 September 1963
{{Birth date and age|1964|10|31|df=yes}}
{{Birth date and age|1964|10|31|df=yes}}
→ 31 October 1964{{Birth date and age/sandbox|1964|10|31|df=yes}}
→ 31 October 1964
{{Birth date and age|1965|11|30|df=yes}}
{{Birth date and age|1965|11|30|df=yes}}
→ 30 November 1965{{Birth date and age/sandbox|1965|11|30|df=yes}}
→ 30 November 1965
{{Birth date and age|1966|12|31|df=yes}}
{{Birth date and age|1966|12|31|df=yes}}
→ 31 December 1966{{Birth date and age/sandbox|1966|12|31|df=yes}}
→ 31 December 1966
Bogus dates
[edit]{{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}}
→ March 7, 2010{{Birth date and age/sandbox|2010|3|7|year}}
→ March 7, 2010
{{Birth date and age|2009|3|7|year}}
{{Birth date and age|2009|3|7|year}}
→ March 7, 2009{{Birth date and age/sandbox|2009|3|7|year}}
→ March 7, 2009
{{Birth date and age|1972|3|7|32}}
{{Birth date and age|1972|3|7|32}}
→ March 7, 1972{{Birth date and age/sandbox|1972|3|7|32}}
→ March 7, 1972
{{Birth date and age|1972|3|7|age 55}}
{{Birth date and age|1972|3|7|age 55}}
→ March 7, 1972{{Birth date and age/sandbox|1972|3|7|age 55}}
→ March 7, 1972
{{Birth date and age|2011|5|13|df}}
{{Birth date and age|2011|5|13|df}}
→ May 13, 2011{{Birth date and age/sandbox|2011|5|13|df}}
→ May 13, 2011
Negative cases
[edit]{{Birth date and age|2008|9|22|mf=no}}
{{Birth date and age|2008|9|22|mf=no}}
→ September 22, 2008{{Birth date and age/sandbox|2008|9|22|mf=no}}
→ September 22, 2008
{{Birth date and age|1985|3|11|df=no}}
{{Birth date and age|1985|3|11|df=no}}
→ 11 March 1985{{Birth date and age/sandbox|1985|3|11|df=no}}
→ 11 March 1985
{{Birth date and age|1898|12|23|df=}}
{{Birth date and age|1898|12|23|df=}}
→ December 23, 1898{{Birth date and age/sandbox|1898|12|23|df=}}
→ December 23, 1898
Wikidata tracking
[edit]Tested with preview of /sandbox in Wikipedia articles.
No category added:
- article with date of birth (P569) in Wikidata: Gimena Accardi
- article without instance of (P31) human (Q5) in Wikidata: Russo brothers
- page not in article namespace: Template:No such name
Category added:
- article without date of birth (P569) in Wikidata: Maria Abbey
- article without item in Wikidata: No such name