Template:Year television series debuts or endings category/doc

Creates a category of the form "YYYY television series debuts" or "YYYY television series endings", where YYYY is a 4-digit year.

The template detects whether it is being used on a "debuts" or "endings" category, and adjusts its output to suit.

e.g.
 * Category:1984 television series debuts ✅
 * Category:1993 television series endings ✅

It is not for use on other types of categories, e.g.


 * Category:2000s Lebanese television series debuts ❌
 * Category:1970s Venezuelan television series endings ❌

Usage
No parameters needed

Errors
If the template is used on an invalid page, an error message is generated and the page is categorised in:
 * Category: (population: )

Errors include:


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