This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Creates a category of the form "YYYY nationality television series", where YYY0s is a 4-digit decade and nationality is a valid nationality.
e.g.
- Category:1950s American television series
- Category:1980s Japanese television series
- Category:2010s Chinese television series
Usage
{{Decade nationality television series category}}
No parameters needed.
This adds parent categories including "NN-century Fooian television series", but only if that category exists. Where a country existed for less than a century, this parent is not required to exist; see e.g. Wikipedia:Categories for discussion/Log/2023 November 29#Category:20th-century Yugoslav television series.
Errors
If the template is used on invalid page, an error message is generated and the page is categorised in:
Errors include:
- The page is not in the category namespace
- The page's title does not take the form "YYY0s nationality television series"
- The value of "nationality" does not correspond to a country name. The conversion is made using {{GetCountryNameFromAdjective}}, so the problem may be a glitch in that template's lookup table