This subtemplate is the core template used by {{category U.S. State elections by year}}.
By using a subtemplate it reduces the number of string parserfunction calls.