Template:Checkdate/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for Template:Checkdate (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

This template is used to check whether the given parameter is a month. It is useful for templates such as {{Articleissues}} that sort articles into cleanup categories by month.

If the parameter is a month/date/time formatted in the way recognized by PHP's strtotime(), this template returns the month in the format Month Year, where Month is written in full and Year is written in 4 digits.

If the parameter is not a month/date/time, the empty string is returned.

Input Output
{{checkdate|April 2003}} April 2003
{{checkdate|2003 April}} April 2003
{{checkdate|Apr 2003}} April 2003
{{checkdate|April 3 2003}} April 2003
{{checkdate|April 03}} April 2008 (thinks it is April 3 of the current year)
{{checkdate|Garbage^&*text}}