Templat:Check date/doc
Penampilan
![]() | Ini ialah sublaman pendokumenan untuk Templat:Check date. Ia mempunyai maklumat penggunaan, kategori dan kandungan lain yang bukan sebahagian daripada laman templat templat laman. |
Templatini digunakan untuk memeriksa samada parameter diberi adalah sebulan. Ia amat berguna bagi templat-templat seperti {{Multiple issues}} yang menyusun artikel ke dalam kategori dirapikan mengikut bulan.
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 2025 (thinks it is April 3 of the current year) |
{{Check date|Garbage^&*text}} |