Non-partisan (or no party needed) election box templates

edit

I have added some election box templates for non-partisan elections or elections where all candidates are from the same party, such as U.S. party primaries:

Usage is the same as other election box templates, except minus any party parameters. (The standard {{Election box end}} template should be used in conjunction with these.)

For example:

 {{Election box begin no party
| title=Any State USA Party Primary, 2006
 }}
 {{Election box candidate no party
| candidate  = [[Jane Incumbent]]
| votes      = 1,000
| percentage = 66.7
| change     =
 }}
 {{Election box candidate no party
| candidate  = [[Joe Challenger]]
| votes      = 500
| percentage = 33.3
| change     =
 }}
 {{Election box turnout no party
| votes      = 1,500
| percentage = 100.0
| change     =
 }}
 {{Election box end}}
 

Produces this:

Any State USA Party Primary, 2006
Candidate Votes % ±
Jane Incumbent 1,000 66.7
Joe Challenger 500 33.3
Turnout 1,500 100.0


I have also created another template to use with the above no party templates:

For example:

 {{Election box begin no party
| title=Any State USA Party Primary, 2006
 }}
 {{Election box candidate no party with winner
| winner     = ✓
| candidate  = [[Jane Incumbent]]
| votes      = 1,000
| percentage = 66.7
| change     =
 }}
 {{Election box candidate no party with winner
| winner     =
| candidate  = [[Joe Challenger]]
| votes      = 500
| percentage = 33.3
| change     =
 }}
 {{Election box turnout no party
| votes      = 1,500
| percentage = 100.0
| change     =
 }}
 {{Election box end}}
 

Produces this:

Any State USA Party Primary, 2006
Candidate Votes % ±
Jane Incumbent 1,000 66.7
Joe Challenger 500 33.3
Turnout 1,500 100.0


The winner parameter can be any symbol (or word) you choose. (See Tick (checkmark) for some possibilities.)

I welcome any suggestions or changes. — Bellhalla 15:45, 12 March 2006 (UTC)Reply

There ought to be a version of these without the swing/change column. It's too bad that the original election box template had that column, which seems to be specific to the UK, so that it's been replicated in the various derivative templates, resulting in empty columns all over the place. KCinDC (talk) 16:28, 27 July 2008 (UTC)Reply

Australian templates

edit

I have just created {{Election box candidate AU party}} to use the Australian politics party colours templates listed at Wikipedia:WikiProject Australian politics. This is used instead of {{Election box candidate with party link}}, and should have a short name such as "Labor" or "Liberal" in the party field. Last year I also created {{Election box formal}}, {{Election box informal}}, {{Election box total}} and {{Election box 2pp}} to complete boxes for Australian elections (which have compulsory, preferential voting). JPD (talk) 10:33, 18 October 2006 (UTC)Reply

I have just created {{Election box hold AU party}} and {{Election box gain AU party}} for Australian politics. Frickeg 09:31, 15 June 2007 (UTC)Reply

Inline election boxes

edit

I have added a set of election box style templates for inline usage. These are intended for cases where one wants to present a large number of results without having incredibly long pages generated, such as in U.S. state House of Representatives elections.

The templates are:

Usage is the similar to other election box templates with some changes.

Template Parameters

edit

Use this template once for each table.

Parameters
type: the type of race, such as "District", "Place", "Seat", etc.
change: the previous election to which results are being compared, such as "from 2005", "from last election". The change parameter can be left blank and just Change will appear in the heading.

Use this template once for each race in the table.

Parameters
race: the name or the number of the district, place, or seat
party: as in above templates
incumbent: the current officeholder
status: the current incumbents status, such as "Running", "Retired", etc.
candidates: the number of candidates vying for this office

Use this template in place of {{Election box inline incumbent}} for those elections involving a newly created district or constituency.

Parameters
race: the name or the number of the district, place, or seat
type: the type of seat (e.g. District or Constituency)
candidates: the number of candidates vying for this office

Use this template once for each candidate in a race.

Parameters
The parameters for these are the same as {{election box candidate}} and {{election box candidate with party link}}
New optional shift parameter added to this template. For displaying graphically when a seat changes control from one party to another. Uses the party color shading templates at {{United States political party shading}}. See example below for use.Dcmacnut 18:02, 12 October 2007 (UTC)Reply

Use this template once at the end of each table.

Example

edit

For example:

{{Election box inline begin
|type = Place
|change = from 2005
}}
{{Election box inline incumbent
|race = 1
|party = Republican Party (US)
|incumbent = [[John J. Incumbent]]
|status = Did not run
|candidates = 2
}}
{{Election box inline candidate with party link
| party= Republican Party (US)
| candidate  = [[James T. Nominee]]
| votes      = 1500
| percentage = 75.00
| change     = +35.00
}}
{{Election box inline candidate
| party= Write-In
| candidate  = [[Mary Sue Challenger]]
| votes      = 500
| percentage = 25.00
| change     = +25.00
}}
{{Election box inline incumbent
|race = 2
|party = Democratic Party (US)
|incumbent = [[Jennifer Contender]]
|status = reelected
|candidates = 1
}}
{{Election box inline candidate with party link
| party= Democratic Party (US)
| candidate  = [[Jennifer Contender]]
| votes      = 2,000
| percentage = 100.00
| change     = +0.50
}}
{{election box inline end}}
 

Produces this:

Place Party Incumbent Status Party Candidate Votes % Change from 2005
1 Republican John J. Incumbent Did not run Republican James T. Nominee 1500 75.00 +35.00
Write-In Mary Sue Challenger 500 25.00 +25.00
2 Democratic Jennifer Contender reelected Democratic Jennifer Contender 2,000 100.00 +0.50

I welcome any suggestions or improvements. — Bellhalla 16:08, 18 December 2006 (UTC)Reply

Example displaying party shift:

{{Election box inline begin
|type = Place
|change = from 2005
}}
{{Election box inline incumbent
|race = 1
|party = Republican Party (US)
|incumbent = [[John J. Incumbent]]
|status = Did not run
|candidates = 3
}}
{{Election box inline candidate with party link
| party= Democratic Party (US)
| candidate  = [[Jennifer Contender]]
| votes      = 2,000
| percentage = 63.0
| change     = +0.50
| shift      = Democratic
}}
{{Election box inline candidate with party link
| party = Republican Party (US)
| candidate  = [[James T. Nominee]]
| votes      = 1500
| percentage = 30.00
| change     = -21.00
}}
{{Election box inline candidate
| party= Write-In
| candidate  = [[Mary Sue Challenger]]
| votes      = 500
| percentage = 7.00
| change     =
}}
{{election box inline end}}
 

Produces this:

Place Party Incumbent Status Party Candidate Votes % Change from 2005
1 Republican John J. Incumbent Did not run Democratic Jennifer Contender 2,000 63.00 +14.00
Republican James T. Nominee 1,500 30.00 −21.00
Write-In Mary Sue Challenger 500 7.00 +7.00

New seats

edit

I have just created {{Election box new seat win}} for new constituencies where no information is available on the notional previous holder of the seat. For an example of its usage, see Dunfermline Burghs (UK Parliament constituency)#Election_results. --BrownHairedGirl (talk) • (contribs) 15:18, 5 October 2007 (UTC)Reply