Difference between revisions of "Template:Check date/doc"

From Nordic Larp Wiki
Jump to navigation Jump to search
en>DixonDBot
m (Migrating 3 interwiki links, now provided by Wikidata on d:Q6870716)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 03:46, 2 January 2019

This template is used to check whether the given parameter is a month. It is useful for templates such as {{Multiple issues}} 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
{{Check date|April 2003}} April 2003
{{Check date|2003 April}} April 2003
{{Check date|Apr 2003}} April 2003
{{Check date|April 3 2003}} April 2003
{{Check date|April 03}} April 2024 (thinks it is April 3 of the current year)
{{Check date|Garbage^&*text}}