Template:YMDcat

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Error: Invalid time.

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:YMDcat/doc.

This template is created for YYYY-MM-DD categories (ex. "Category:2014-01-01") to add appropriate categories.

Usage

{{YMDcat |year (except last digit)= |year (last digit)= |month= |day= }}

Examples:

Template parameters

ParameterDescriptionDefaultStatus
year (except last digit)
1
yearYear number (except last digit); 1-3 digit(s)emptyrequired
year (last digit)
2
yearYear number (last digit); 1 digitemptyrequired
month
3
monthMonth number; 1 or 2 digit(s).

{{YMDcat|201|4|07|2}} ... Not recommended, but this also will function.
emptyrequired
day
4
dayDay number; 1 or 2 digit(s).

{{YMDcat|201|4|7|02}} ... Not recommended, but this also will function.
emptyrequired

Additional information

The template is intended to be used in the following namespaces: the Template namespace

The template is intended to be used by the following user groups: all users