Difference between revisions of "Template:CanElec1-by"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(add cat)
Line 1: Line 1:
 +
{| border="1" cellpadding="4" cellspacing="0" style="background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;"
 +
|- style="background-color:#E9E9E9"
 +
|align=center colspan="6"|'''By-election on {{{1}}}'''
 +
{{#if: {{{2|}}} | {{{2}}} }}
 +
|- style="background-color:#E9E9E9"
 +
! colspan="2" style="width: 220px"|Party
 +
! style="width: 185px"|Candidate
 +
! style="width: 60px"|Votes
 
<noinclude>
 
<noinclude>
 +
|}
 +
 +
{{documentation|content=
 +
 
This template creates the heading for a CanElec1 byelection table.
 
This template creates the heading for a CanElec1 byelection table.
  
Line 13: Line 25:
 
For each row (candidate/party/votes), use the <nowiki>{{CanElec1Row}}</nowiki> template.
 
For each row (candidate/party/votes), use the <nowiki>{{CanElec1Row}}</nowiki> template.
  
</noinclude>
+
}}
{| border="1" cellpadding="4" cellspacing="0" style="background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;"
+
 
|- style="background-color:#E9E9E9"
 
|align=center colspan="6"|'''By-election on {{{1}}}'''
 
{{#if: {{{2|}}} | {{{2}}} }}
 
|- style="background-color:#E9E9E9"
 
! colspan="2" style="width: 220px"|Party
 
! style="width: 185px"|Candidate
 
! style="width: 60px"|Votes
 
<noinclude>
 
 
[[Category:Canada politics and government templates]]
 
[[Category:Canada politics and government templates]]
 
</noinclude>
 
</noinclude>

Revision as of 05:49, 9 December 2011

By-election on {{{1}}}
Party Candidate Votes
Template documentation

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.