Template:Decade television series debuts or endings category/doc

Creates a category of the form "YYY0s television series debuts" or "YYY0s television series endings", where YYY0s is a 4-digit decade (e.g. "1930s") The template detects whether it is being used on a "debuts" or "endings" category, and adjusts its output to suit.

e.g.
 * Category:1960s television series debuts ✅
 * Category:1940s television series endings ✅

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


 * Category:2020s television series ❌
 * Category:2003 Lebanese television series debuts ❌
 * Category:1981 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 "YYY0s television series debuts" or "YYY0s television series endings"