Template:Infobox election/doc

Fields
*Non-optional fields. &dagger; only displayed if the election is ongoing. &Dagger; only displayed if the election has finished.

Layout
The template can display up to six parties or Nominees at the same time, three on the top row and three on the bottom row. If only four are needed, use the first two on the top and bottom lines. This is done by only using the numbers 1, 2, 4 and 5 on the fields that require a number.

Difference between Legislative and Parliamentary
All the fields that work for Legislative will also work for Parliamentary. The only difference between the two is the titles above the images.

Colour
The template uses the party fields to display the party colour in the background of the images and some text. To turn this function off, input: | party_colour=no To override the colour for party1 or nominee1, input: | colour1=[HEX OF COLOUR MINUS #] The hex number must be entered without the hash for the field to work. The number (colour1) can be changed up to six for different parties or Nominees. The fields work with both spellings of the word 'colour'.

Microformat
Note: If no date is entered, then the microformat is not emitted.

Ongoing Presidential

 * Please DO NOT add this infobox to United States presidential election, 2008. It is only here as an example.

Ongoing Legislative or Parliamentary
es:Plantilla:Elecciones en Estados Unidos