قالب:US elections imagemap
| الصفحات ذات الصلة |
|---|
Usage
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 § Notes.
| Parameter | Usage | Example |
|---|---|---|
| image | Map image | 2018 United States gubernatorial elections results map.svg |
| link-template | Template for links | 2018 STATE gubernatorial election |
| cycle[أ] | The election cycle | Gov2 |
| extra-states | Extra states to include[ب] | OR;WV[ت] |
| extra-lines | Extra raw lines to include[ب] | rect 702 391 725 423 [[2020–21 United States Senate special election in Georgia]][ت]
|
| state-overrides | Override links for certain states[ب] | AZ=2020 United States Senate special election in Arizona |
| excluded-states | States to exclude. Overridden by extra_states[ب] |
AK;HI |
Data
وحدة:US elections imagemap/data/doc
Examples
Simple
{{US elections imagemap|image=2018 United States gubernatorial election results.svg|link-template=2018 STATE gubernatorial election|cycle=Gov2WithTerritories}}
خطأ: الصورة غير صحيحة أو غير موجودة
With extra-states
{{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}}
خطأ: الصورة غير صحيحة أو غير موجودة
| The above documentation is transcluded from قالب:US elections imagemap/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. |