Template:US state sports decade category
Appearance
This template is used on many 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. |
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. |
A category header for categories for the by-decade sub-sub-categories of Category:Sports in the United States by state and decade, e.g. Category:1940s in sports in Maine.
Adds portal box, category explanation, navbox, and the following parent categories:
- Category:YYY0s in American sports by state
- Category:YYY0s in STATE
- Category:Sports in STATE by decade
- For Hawaii only, Category:YYY0s in Oceanian sport
Usage
{{US state sports decade 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 "YYY0s 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: 2 pages)
Note that this tracking page is shared with other category header templates)