Difference between revisions of "Template:Decade in US state category"
Jump to navigation
Jump to search
imported>BrownHairedGirl m (Protected "Template:Decade in US state category": Highly visible template: Used in over 1000 category pages, which are wholly dependant on this template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
imported>BrownHairedGirl (now tracking to Category:Errors reported by other category header templates) |
||
| Line 7: | Line 7: | ||
# Not a valid page | # Not a valid page | ||
-->{{Error|ERROR. [[Template:Decade in US state category]] is for use only on pages with a title of the form "Category:YYY0s in Foo", where YYYY0s is a 4-digit decade and "Foo" is the name of a state of the United States.}}<!-- | -->{{Error|ERROR. [[Template:Decade in US state category]] is for use only on pages with a title of the form "Category:YYY0s in Foo", where YYYY0s is a 4-digit decade and "Foo" is the name of a state of the United States.}}<!-- | ||
| − | -->[[Category: | + | -->[[Category:Errors reported by other category header templates]] |
-->|<!-- | -->|<!-- | ||
# A valid page | # A valid page | ||
| Line 18: | Line 18: | ||
# Not a category | # Not a category | ||
-->|{{Error|message=ERROR. [[Template:Decade in US state category]] is for use only on category pages}}<!-- | -->|{{Error|message=ERROR. [[Template:Decade in US state category]] is for use only on category pages}}<!-- | ||
| − | -->[[Category: | + | -->[[Category:Errors reported by other category header templates]]<!-- |
-->}}</includeonly><noinclude> | -->}}</includeonly><noinclude> | ||
<!-- Add categories and interwikis to the /doc subpage, please, not here! --> | <!-- Add categories and interwikis to the /doc subpage, please, not here! --> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 03:18, 2 September 2020
Purpose
This template is intended to be used on decade in US state categories (for example, Category:1930s in Oregon or Category:1970s in Wyoming). It creates a "timeline" style table of links to categories for adjacent years before or after it in the same decade.
Syntax
{{Decade in US state category}}
No parameters are needed, and none are available
Error-checking
The template checks that the page:
- is a category
- has a title of the form "YYY0s 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:
Note that this category is also used by many other category header templates
Template:U.S. state by year category header templates
| The above documentation is transcluded from Template:Decade in US state category/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |