Template:Check date
外表
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.
| 輸入 | 輸出 |
|---|---|
| {{Check date|April 2003}} | 4月 2003 |
| {{Check date|2003 April}} | 4月 2003 |
| {{Check date|Apr 2003}} | 4月 2003 |
| {{Check date|April 3 2003}} | 4月 2003 |
| {{Check date|April 03}} | 4月 2026 (thinks it is April 3 of the current year) |
| {{Check date|Garbage^&*text}} |
| 上面嘅解係穿透包含咗自Template:Check date/doc。 (改 | 史) 編者可以響呢個模嘅沙盤 (開 | 鏡)同埋試例 (開)版度試驗佢。 請加個類到個/doc嘅細版度。 呢個模嘅細版。 |