Template:Election box candidate AU party/doc

These election box templates are for displaying a list of candidates and results for Australian elections contested by parties. They produce tables like this:

Basic
There are six templates used in the example above:


 * Election box begin
 * Election box candidate AU party
 * Election box formal
 * Election box informal
 * Election box turnout
 * Election box end

The begin and end templates start and end a table with appropriate columns and formatting. The candidate template is used once for each candidate and contributes a row to the table. If there is a wikipedia page for the candidate, this should be linked. If the party is listed at Template:Australian politics/party colours, it will use the colour for that party, while Template:Australian politics/name, will return a linked name for that party. This may be different for state elections, such as "liberal sa" or "labor qld". If they are not listed, there is no colour and the party unlinked. Where you want to use a name that is different from the linked party, adding  at the end of the party name will prevent linking or using the party colour, as in the Labor example above.

Using the example above these are :

Preferential Results
One or both of the following templates are commonly used for the results where a form of preferential voting is used:


 * Election box 2pp: Two-party-preferred result, used where the election comes down to a choice between the two major parties, typically in Australia the Liberal/National Coalition and Labor.
 * Election box 2cp: Two-candidate-preferred result, used where one or both major parties is not in the top two. Where the two-party-preferred figures are also available, this may included and is typically placed before the two-candidate-preferred result.

Adding these to the table above would be

Which gives:

Final result
One of the following templates then concludes the results
 * Election box new seat win AU party
 * Election box hold AU party
 * Election box gain AU party
 * Election box member change AU party

If there is a redistribution which changes the notional seat status, adding  clarifies that the hold or gain is notional