Template:YYYY beginnings or endings category header/doc

Creates a category of the form "YYYY beginnings" or "YYYY endings", where YYYY is a 2-, 3- or 4-digit year.

e.g.


 * Category:95 beginnings ✅
 * Category:1123 beginnings ✅
 * Category:2019 beginnings ✅


 * Category:79 endings ✅
 * Category:486 endings ✅
 * Category:2017 endings ✅

The template detects whether the page is a "beginnings" or "endings" category, and configures the output accordingly.

Usage
No parameters needed.

Errors
If this template is used on an invalid page, then an error message is displayed, and the page is categorised in a tracking category: Note that this tracking page is shared with other category header templates)
 * Category:Errors reported by other category header templates (population: pages)

Errors include:


 * The page is not in the category namespace
 * The page's title does not take the form "YYYY beginnings" or "YYYY endings"