Template:Compact election box/doc

Purpose
A set of templates to produce a table displaying the results of first-past-the-post elections in a more compact format than offered by Election box.

Example
These templates produce results like this:

Usage
...

Simple usage
Blank example with basic parameters

Full usage
Blank example with all parameters

Header parameters
The parameters are used once

Winner parameters
One set of these parameters for each candidate

Candidate parameters
One set of these parameters for each candidate, starting candidate2. Maximum of 25.

Anchors
By default, the template creates two anchors to the results of that election, using the following formats:
 * , all converted to lowercase
 * , all converted to lowercase

So for example, on Bradford West (UK Parliament constituency), the table row for the 1970 general election has the automatically-generated anchors  and. They can be can be linked to as Bradford West (UK Parliament constituency) and Bradford West (UK Parliament constituency)

Custom anchors
In addition to the auto-generated anchors, up to 3 custom anchors may be added using the parameters anchor, anchor2, and anchor3.

For example, on Bradford Central (UK Parliament constituency), the entry for the 1886 by-election has the parameter 1886 unopposed ... which allows a link to Bradford Central (UK Parliament constituency)