Difference between revisions of "Template:Category U.S. State elections by year"
Jump to navigation
Jump to search
imported>GoldRingChip |
imported>BrownHairedGirl (add tracking categories) |
||
| Line 3: | Line 3: | ||
| year = {{{year|{{Str left|{{PAGENAME}}|4}}}}} | | year = {{{year|{{Str left|{{PAGENAME}}|4}}}}} | ||
| nocategories = {{{nocategories|}}} | | nocategories = {{{nocategories|}}} | ||
| − | }}</includeonly><noinclude> | + | }}<!-- |
| + | # Track use of place and year parameters | ||
| + | -->{{#if: {{{place|}}}|[[Category:Template Category U.S. State elections by year with place parameter]]}}<!-- | ||
| + | -->{{#if: {{{year|}}}|[[Category:Template Category U.S. State elections by year with year parameter]]}}<!-- | ||
| + | --></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 01:30, 16 March 2020
| This template is used on approximately 6,900 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.
Transclusion count updated automatically (see documentation). |
This template is used as a category header for election by year categories for state elections in the United States.
e.g.
Usage
Just use: {{Category U.S. State elections by year}}
Both the place and the year are derived automatically, from the category name.
To override place and year, use |place=(place) and |year=(year).
Automatic categorization
The template automatically adds the transcluding page to the following categories:
- [[Category:YEAR elections in the United States by state]], with a sort key of PLACE
- [[Category:PLACE elections by year]], with a sort key of YEAR
- [[Category:YEAR in PLACE]], with a sort key of "Elections"
To suppress categorization, use |nocategories=y.
| The above documentation is transcluded from Template:Category U.S. State elections by year/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |