Template:US elections imagemap/doc
| This is a documentation subpage for Template:US elections imagemap. It may contain usage information, categories and other content that is not part of the original template page. |
| Related pages |
|---|
Usage
[edit source]This is a template for creating image maps for yearly elections in the United States, particularly Senate and gubernatorial elections. For presidential elections, use Template:United States presidential election imagemap.
To create maps, use the base map File:Blank USA, w territories.svg, and fill it with colors from Wikipedia:WikiProject Elections and Referendums/USA Legend Colors § Seat control.
| Parameter | Usage | Example |
|---|---|---|
| image | Map image | 2018 United States gubernatorial elections results map.svg |
| link-template | Template for links | 2018 STATE gubernatorial election |
| cycle[a] | The election cycle | Gov2 |
| extra-states | Extra states to include[b] | OR;WV[c] |
| extra-lines | Extra raw lines to include[b] | rect 702 391 725 423 [[2020–21 United States Senate special election in Georgia]][c]
|
| state-overrides | Override links for certain states[b] | AZ=2020 United States Senate special election in Arizona |
| excluded-states | States to exclude. Overridden by extra_states[b] |
AK;HI |
Data
[edit source]{{#section-h:Module:US elections imagemap/data/doc|Cycles}}
Examples
[edit source]Simple
[edit source]{{US elections imagemap|image=2018 United States gubernatorial election results.svg|link-template=2018 STATE gubernatorial election|cycle=Gov2WithTerritories}}
Error: Image is invalid or non-existent.
With extra-states
[edit source]{{US elections imagemap|image=2018 United States Senate elections results map.svg|link-template=2018 United States Senate election in STATE|cycle=SenateClass1|extra-states=MNS;MSS|state-overrides=MSS=2018 United States Senate special election in Mississippi;MNS=2018 United States Senate special election in Minnesota}}
Error: Image is invalid or non-existent.