Template:YYYY beginnings or endings category header
From The Right Wiki
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
File:Ambox warning yellow.svg | 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. |
Warning | This template is used on approximately 4,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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 Green tick
- Category:1123 beginnings Green tick
- Category:2019 beginnings Green tick
- Category:79 endings Green tick
- Category:486 endings Green tick
- Category:2017 endings Green tick
The template detects whether the page is a "beginnings" or "endings" category, and configures the output accordingly.
Usage
{{YYYY beginnings or endings category header}}
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:
- Category:Errors reported by other category header templates (population: 0 pages)
Note that this tracking page is shared with other category header templates)
Errors include:
- The page is not in the category namespace
- The page's title does not take the form "YYYY beginnings" or "YYYY endings"