Template:Category U.S. State elections by decade/doc

From English Wikipedia @ Freddythechick

This template is used as a category header for election by decade categories for state elections in the United States.

e.g.

Usage

Just use: <syntaxhighlight lang="wikitext" inline>Lua error in mw.title.lua at line 346: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

</syntaxhighlight>

Both the place and the year are derived automatically, from the category name.

To override place and year, use |place=(place) and |decade=(decade).

Automatic categorization

The template automatically adds the transcluding page to the following categories:

  • [[Category:DECADE elections in the United States by state]], with a sort key of PLACE
  • [[Category:PLACE elections by decade]], with a sort key of YEAR
  • [[Category:DECADE in PLACE]], with a sort key of "Elections"

To suppress categorization, use |nocategories=y.

Tracking categories

See also