Template:US insular area sports year category
Appearance
(Redirected from Template:SportsYearCatUSinsularArea)
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. |
This template is used to create by-year categories for sports in one of the insular areas of the United States,
e.g. Category:1968 in Puerto Rican sports.
Adds portal box, category explanation, navbox, and parent categories:
Usage
[edit]{{US insular area sports year category}}
No parameters are needed. The template parses the pagename, and extracts from it the year and name of the insular area.
Error-checking
[edit]The template checks that the page:
- is a category
- has a title of the form "YYYY in Fooian sports"
- That "Fooian" is one of:
- Guamanian
- Puerto Rican
- Northern Mariana Islands
- United States Virgin Islands
If any 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: 3 pages)
Note that this tracking page is shared with other category header templates)