Template:US state sports year category
Appearance
This template is used on approximately 6,600 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. |
A category hatnote for categories for the by-year sub-sub-categories of Category:Sports in the United States by state and year, e.g. Category:1965 in sports in Washington (state).
Adds portal box, category explanation, navbox, and the following parent categories:
- Category:YYYY in American sports by state
- Category:YYY0s in sports in STATE
- Category:YYYY in STATE
- Category:Sports in STATE by year
- For Hawaii only, Category:YYYY in Oceanian sport
Usage
{{US state sports year category}}
No parameters are needed. The template parses the pagename, and extracts from it the year and name of the state.
Error-checking
The template checks that the page:
- is a category
- has a title of the form "YYYY in sports in Foo"
If either of those conditions is not met, an error message is displayed and no other output is generated, but the page is added to a tracking category:
- Category:Errors reported by other category header templates (population: 1 pages)
Note that this tracking page is shared with other category header templates)