Difference between revisions of "Template:CanElec1-by"
Jump to navigation
Jump to search
Template documentation
imported>Dl2000 (widen Party and Candidate columns (e.g. Co-operative Commonwealth in Party column broke 170px)) |
imported>Primefac m (Protected "Template:CanElec1-by": semi-protection of high-usage templates to combat systematic vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite))) |
||
| (10 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
{| border="1" cellpadding="4" cellspacing="0" style="background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;" | {| border="1" cellpadding="4" cellspacing="0" style="background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;" | ||
|- style="background-color:#E9E9E9" | |- style="background-color:#E9E9E9" | ||
| − | + | |align=center colspan="6"|'''By-election on {{{1}}}''' | |
| + | {{#if: {{{2|}}} | {{{2}}} }} | ||
|- style="background-color:#E9E9E9" | |- style="background-color:#E9E9E9" | ||
| − | ! colspan="2" style="width: | + | ! colspan="2" style="width: 220px"|Party |
! style="width: 185px"|Candidate | ! style="width: 185px"|Candidate | ||
! style="width: 60px"|Votes | ! style="width: 60px"|Votes | ||
| + | <noinclude> | ||
| + | |} | ||
| + | |||
| + | {{documentation|content= | ||
| + | |||
| + | This template creates the heading for a CanElec1 byelection table. | ||
| + | |||
| + | Usage: | ||
| + | :<nowiki>{{CanElec1-by|1 July 1867|reason}}</nowiki> | ||
| + | |||
| + | Where the first parameter is the date of the by-election (1 July 1867 in this example). | ||
| + | |||
| + | The second optional parameter specifies the reason for by-election, or other descriptive summary text. | ||
| + | |||
| + | For general elections, use the <nowiki>{{CanElec1}}</nowiki> template for header. | ||
| + | |||
| + | For each row (candidate/party/votes), use the <nowiki>{{CanElec1Row}}</nowiki> template. | ||
| + | |||
| + | }} | ||
| + | |||
| + | [[Category:Canada election result templates]] | ||
| + | </noinclude> | ||
Latest revision as of 00:28, 19 January 2018
| By-election on {{{1}}} | |||||
| Party | Candidate | Votes | |||
|---|---|---|---|---|---|
This template creates the heading for a CanElec1 byelection table.
Usage:
- {{CanElec1-by|1 July 1867|reason}}
Where the first parameter is the date of the by-election (1 July 1867 in this example).
The second optional parameter specifies the reason for by-election, or other descriptive summary text.
For general elections, use the {{CanElec1}} template for header.
For each row (candidate/party/votes), use the {{CanElec1Row}} template.
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |