|- |colspan=7 style="border-top:1px solid darkgray;"|{{{1}}}

[നിർമ്മിക്കുക] ഫലകത്തിന്റെ വിവരണം
[തിരുത്തുക] [പുതുക്കുക] ഫലകത്തിന്റെ വിവരണം

The template {{Canadian election result}} is intended to create tables showing the election or by-election results in one riding. It can be used on the pages of the ridings, of the candidates, or on template pages that are transcluded onto both. It works in conjunction with five other templates: {{Canadian election result/top}}, {{Canadian election result/total}}, {{Canadian election result/gain}}, {{Canadian election result/hold}}, and {{Canadian election result/source}}. This template can duplicate the functions of all of the 53 existing federal and provincial CanElec templates.

Begin each table with {{Canadian election result/top}}.

The first thing that needs to be specified is whether this is a federal election, or provincial or territorial.

Use the standard two-letter codes for postal abbreviations or second-level domains of the .ca country-code domain. A table is given at the bottom of this page.

Basic form

Use {{Canadian election result/top|jurisdiction|election}}. The jurisdiction field should be the two-letter code and the election field should be the year.

For example, {{Canadian election result/top|MB|2011}} gives:

2011 Manitoba general election
Party Candidate Votes
With riding name

Use {{Canadian election result/top|jurisdiction|election|riding|riding display}}. The riding display field can be omitted when the riding's article name does not contain disambiguation.

For example, {{Canadian election result/top|CA|2008|Barrie (electoral district)|Barrie}} gives:

2008 Canadian federal election: Barrie
Party Candidate Votes
With extra data columns

Extra columns can be added to provide additional dato. For example, {{Canadian election result/top|CA|2006|Toronto—Danforth|percent=yes|change=yes|expenditures=yes}} gives:

2011 Canadian federal election: Toronto—Danforth
Party Candidate Votes % ±% Expenditures
first unnamed parameter; or jurisdiction=
This is a two-letter code. Valid two-letter codes correspond to the standard postal abbreviations or second-level domains of .ca. Note that for Newfoundland and Labrador elections before 2001, the code is NF rather than NL.
second unnamed parameter or election=
This is the four-digit year for a general election, or some other text (for example a full date) for a by-election.
third unnamed parameter or riding=
This is the full title of a Wikipedia article about a riding. For example: Barrie (electoral district)
Note that Canadian federal ridings often use an em dash naming convention (for example: Brome—Missisquoi). Other jurisdictions may have different conventions; for instance, Quebec provincial ridings use an en dash instead, and only if hyphens already occur elsewhere in the name (eg, Drummond–Bois-Francs, but Brome-Missisquoi).
(optional) fourth unnamed parameter or riding_display=
This is the displayed text for the riding name, if different from the above. For example: Barrie
by=yes
Use for by-elections. When using this, give the full date of the by-election rather than just the year.
reason=
Explain the reason for the by-election. For example, reason=upon the resignation of Jon Doe.
percent=yes
Use this parameter to add a column with the heading "%".
change=yes
Use this parameter to add a column with the heading "∆%".
expenditures=yes
Use this parameter to add a column with the heading "Expenditures".
elected=yes
Use for multi-member ridings that elect multiple members off of one ballot to add a column with the heading "Elected".
1st=yes|percent=yes|final=yes|percent2=yes
Use these parameters to create columns for multi-round elections.
ballot=A or ballot=B or ballot=C
Use one of these parameters for multi-member ridings that run multiple ballots each with a different slate of candidates during each election. It will only change the links in the heading.
collapsed=
The table is by default collapsible. You can set the initial collapsedness as follows: yes, auto, or no. These correspond to initial states of "collapsed", "autocollapse", or none, as documented at Help:Collapsing. For instance, if an article about a riding has a long list of election results from years past, you may want to have the first one display (for the most recent election) but keep the previous election years collapsed.

Use a copy of this template, {{Canadian election result}}, for each row. The basic version of template is {{Canadian election result |jurisdiction |party |candidate |votes}}. The jurisdiction must be the two-letter provincial code or "CA" for federal elections. The party name must match the format of party names in the "input text" column of the master list of parties. The candidate name can be wikilinked if the article exists. The full version of this template is {{Canadian election result |jurisdiction |party |candidate |votes |4th column |5th column |6th column}}. The last three fields are optional, and what should be put in them depends on what headers were used. For multi-member ridings, use elected=yes to add a checkmark in the "Elected" column.

Use a copy of this template, {{Canadian election result/total}}, for each total row (for example, Total valid votes, Total rejected ballots, Total turnout). The full version of this template is {{Canadian election result/total |heading |votes column |4th column |5th column |6th column}}. The last three fields are optional.

See Canadian election result/total documentation for instructions on how to find the data and complete the various total rows.

/gain and /hold templates

തിരുത്തുക

These templates can be used to identify gains and holds for the winning party, together with the swing calculated for the result compared to the previous election. The basic version of template is {{Canadian election result/gain |jurisdiction |gaining party |losing party |swing}} and {{Canadian election result/hold |jurisdiction |party |swing}}, with the jurisdiction and party input in the same way as in {{Canadian election result}}. The /gain template may additionally add the party that the seat was taken from in the third parameter.

Swing calculated using the formula ((∆%₁− ∆%₂) ÷ 2 ) (i.e. Change in winner's percentage compared to previous year minus change in second place percentage divided by two)

For example, {{CANelec/gain |AB |Liberal |PC |+11.20}} produces:

Liberal gain from Progressive Conservative Swing +11.20

/source and /note templates

തിരുത്തുക

These templates can be used to add a row to the bottom of the table. For example: {{Canadian election result/source|All data comes from elections Canada.}}. If the line of text contains an equals sign, as many government links do, name the field source=.

Links to multiple source can be added in an expandable “Source(s)}” section by assigning all the links to the parameter hide= (create separate lines by separating each source with <br />).

For example: {{CANelec/source|hide={{cite web |title=Source 1 |url=http://www.elections.ca/source1 |publisher=[[Elections Canada]]}}<br />{{cite web |title=Source 2 |url=http://www.elections.ca/source2 |accessdate=30 നവംബർ 2024}} }} in a table produces:


Canadian federal election
Party Candidate Votes % ±%
Source(s)
"Source 1". Elections Canada.
"Source 2". Retrieved 30 നവംബർ 2024.

Finish election boxes with the {{end}} template.

Here is an example using the federal riding of Ottawa Centre in the 2011 federal election. The code:

{{Canadian election result/top|CA|2011|Ottawa Centre|percent=yes|change=yes}}
{{CANelec|CA|NDP|[[Paul Dewar]]|33,805|52.11|+12.37}}
{{CANelec|CA|Conservative|Damian Konstantinakos|14,063|21.68|-1.89}}
{{CANelec|CA|Liberal|Scott Bradley|13,049|20.12|-5.90}}
{{CANelec|CA|Green|Jen Hunter|3,262|5.03|-4.89}}
{{CANelec|CA|Marijuana|John Andrew Akpata|326|0.50|-0.09}}
{{CANelec|CA|Independent|Romeo Bellai|210|0.32|–}}
{{CANelec|CA|Communist|Stuart Ryan|109|0.17|–}}
{{CANelec|CA|Marxist-Leninist|Pierre Soublière|44|0.07|-0.08}}
{{Canadian election result/total|Total valid votes/Expense limit|64,868|100.00|–}}
{{Canadian election result/total|Total rejected ballots|267|0.41|0.00}}
{{Canadian election result/total|Turnout|65,135|74.96|+5.85}}
{{Canadian election result/total|Eligible voters|86,898}}
{{CANelec/hold |CA |NDP |+9.14%}}
{{end}}

will produce:

2011 Canadian federal election: Ottawa Centre
Party Candidate Votes % ±%
New Democratic Paul Dewar 33,805 52.11 +12.37
Conservative Damian Konstantinakos 14,063 21.68 -1.89
Liberal Scott Bradley 13,049 20.12 -5.90
Green Jen Hunter 3,262 5.03 -4.89
Marijuana John Andrew Akpata 326 0.50 -0.09
Independent Romeo Bellai 210 0.32
Communist Stuart Ryan 109 0.17
Marxist–Leninist Pierre Soublière 44 0.07 -0.08
Total valid votes/Expense limit 64,868 100.00
Total rejected ballots 267 0.41 0.00
Turnout 65,135 74.96 +5.85
Eligible voters 86,898
New Democratic hold Swing +9.14%


TemplateData (main template)

തിരുത്തുക

This template produces one row in a table of Canadian election results

ഫലകത്തിനുള്ള ചരങ്ങൾ[ടെമ്പ്ലേറ്റ്‌ഡേറ്റ കൈകാര്യം ചെയ്യുക]

ചരംവിവരണംതരംസ്ഥിതി
Jurisdiction1

Use two-letter codes. Canada=CA, Ontario=ON, PEI=PE, etc. For cities, use three-letter codes.

സ്വതേ
വരിആവശ്യമാണ്
Party2

Short-form name of the candidate's political party

സ്വതേ
വരിആവശ്യമാണ്
Candidate3

Name of the candidate. Can be wikilinked.

സ്വതേ
വരിഐച്ഛികം
Votes4

Number of votes won by the candidate.

സ്വതേ
വരിഐച്ഛികം
4th column5

Adds text to the 4th column. Check the table's headings to see what information belongs in this column.

സ്വതേ
വരിഐച്ഛികം
5th column6

Adds text to the 5th column. Check the table's headings to see what information belongs in this column.

സ്വതേ
വരിഐച്ഛികം
6th column7

Adds text to the 6th column. Check the table's headings to see what information belongs in this column.

സ്വതേ
വരിഐച്ഛികം
Electedelected

Used for ridings that elect multiple candidates on one ballot. Write 'yes' to add a checkmark in the last column.

സ്വതേ
വരിഐച്ഛികം
[edit]
Sandbox

{{Canadian election result/top/sandbox}} {{Canadian election result/sandbox}} {{Canadian election result/total/sandbox}} {{Canadian election result/source/sandbox}} {{Canadian election result/note/sandbox}} {{Canadian election result/gain/sandbox}} {{Canadian election result/hold/sandbox}}

Federal

Canadian federal election, 2015
** Preliminary results — Not yet official **
Party Candidate Votes % ±%
New Democratic Linda Duncan 26,093 53.55 +10.97
Conservative Ryan Hastman 19,762 40.55 -1.05
Liberal Matthew Sinclair 1,372 2.82 -6.24
Green Andrew Fehr 1,119 2.30 -4.14
Independent Kyle Murphy 206 0.42
Marxist–Leninist Kevan Hunter 91 0.19 -0.12
Independent Christopher White 87 0.18
Total valid votes/Expense limit 48,730 100.00
Total rejected ballots 124 0.25 +0.04
Turnout 48,854 68.76 +3.3
** Preliminary results — Not yet official **

Editors Note: Don't actually use the preliminary flag prelim= in both the /top & /source sections — One or the other!

Canadian federal by-election, May 13, 2002
The by-election will be held on മേയ് 13, 2002.
Party Candidate Votes % Expenditures
Alliance Stephen Harper 13,200 71.66 $58,959.16
New Democratic Bill Phipps 3,813 20.70 $34,789.77
Green James S. Kohut 660 3.58 $2,750.80
Independent Gordon Barrett 428 2.32 $3,329.34
Christian Heritage Ron Gray 320 1.74 $27,772.78
Total valid votes 18,421 100.00
Total rejected ballots 98
Turnout 18,519 23.05
Eligible voters 80,360
The by-election will be held on മേയ് 13th, 2002.

Editors Note: Don't actually use the on= parameter in both the /top & /source sections — One or the other!

Canadian federal election, 2060
The 2060 general election will be held on ഏപ്രിൽ 1.
Party Candidate Votes % ±%
Progressive Conservative Justin Beiber
Liberal Robin Thicke
New Democratic Michael Bublé
Green Avril Lavigne
Space Invaders Zleb-glork of Xlatzawx
Total valid votes
Total rejected ballots
Turnout
Eligible voters
The 2060 general election will be held on ഏപ്രിൽ 1st.

Editors Note: Don't actually use either the on= or prelim= parameters in both the /top & /source sections — One or the other!

Ontario provincial by-election, February 29, 2011: Ajax—Pickering
Resignation of Bugs Bunny
Party Candidate Votes % ±%
Liberal Joe Dickson 19,606 47.34 -1.74
Progressive Conservative Todd McCarthy 14,718 35.54 +1.19
New Democratic Evan Wiseman 5,952 14.37 +6.28
Green Steven Toman 843 2.04 -5.54
Libertarian Andrew Delis 299 0.72
Total valid votes 41,418 100.0   +2.36
Total rejected ballots 172 0.41 -0.07
Turnout 41,590 44.84 -4.49
Eligible voters 92,745   +12.53
Source(s)
"Summary of Valid Votes Cast for Each Candidate" (PDF). Elections Ontario. October 6, 2011. Retrieved May 9, 2014.
"Statistical Summary" ( Excel Spreadsheet). Elections Ontario. October 1, 2013. Retrieved May 9, 2014.


Oak Ridges—Markham   (transclusions)

Ontario general election, 2014: Oak Ridges—Markham
Party Candidate Votes % ±% Expenditures
Liberal Helena Jaczek 36,782 45.55 +0.74 $92,420.12
Progressive Conservative Farid Wassef 30,259 37.47 +0.23 $173,298.00
New Democratic Miles Krauter 9,355 11.58 −1.55 $4,568.86
Green Emilia Melara 2,791 3.46 +0.98 $0.00
Libertarian Karl Boelling 1,358 1.68 +0.07 $0.00
Trillium Gennady Vilensky 213 0.26 N/A $0.00
Total valid votes 80,755 100.00  
Total rejected, unmarked and declined ballots 1,156 1.43
Turnout 81,911 46.21
Eligible voters 177,255  
Liberal hold Swing +0.26

Editors Note: Only include references with links to external websites in Future election tables (presumably readers want links to candidate information).  Once an election has occurred, remove these links so that only [[wikilinked]] articles are part of the tables (WP:ELNO).

Ontario general election, 2011: Oak Ridges—Markham
Party Candidate Votes % ±% Expenditures
Liberal Helena Jaczek 28,878 44.78 −3.43 $83,066.00
Progressive Conservative Farid Wassef 23,950 37.14 +1.07 $146,606.59
New Democratic Joe Whitfeld 8,548 13.26 +5.33 $11,142.60
Green Trifon Haitas 1,569 2.43 −4.01 $350.00
Libertarian Karl Boelling 1,057 1.64   $213.07
Independent Ruida Lu 484 0.75   $2,766.14
Total valid votes / Expense limit 64,486 100.00 +8.85 $180,834,78
Total rejected, unmarked and declined ballots 395 0.61 −0.13
Turnout 64,881 42.70 −5.07
Eligible voters 151,959   +21.63
Liberal hold Swing −2.25
Ontario general election, 2007: Oak Ridges—Markham
Party Candidate Votes %
Liberal Helena Jaczek 28,564 48.22
Progressive Conservative Phil Bannon 21,367 36.07
New Democratic Janice Hagan 4,698 7.93
Green Attila Nagy 3,815 6.44
Family Coalition Patrick Redmond 455 0.77
Independent Doug Ransom 342 0.58
Total valid votes 59,241 100.0  
Total rejected ballots 444 0.74
Turnout 59,685 47.77
Eligible voters 124,939  
Sources:"Summary of valid votes cast for each candidate – October 10, 2007 General Election" (PDF). Elections Ontario. 2008-08-14. Retrieved 2014-05-23.
"Statistical Summary" (PDF). Elections Ontario. 2008-05-08. Retrieved 2014-05-23.


Ajax—Pickering   (transclusions)

Ontario general election, 2014: Ajax—Pickering
Party Candidate Votes % ±%
Liberal Joe Dickson 26,257 51.06 +3.72
Progressive Conservative Todd McCarthy 14,999 29.17 −6.17
New Democratic Jermaine King 8,274 16.09 +1.72
Green Adam Narraway 1,589 3.09 +1.06
Libertarian Kyle Stewart 301 0.59 −0.13
Total valid votes 51,420 100.0 +23.94
Total rejected, unmarked and declined ballots 580 1.12 +0.71
Turnout 52,000 50.18 +5.38
Eligible voters 103,629   +11.74
Liberal hold Swing +4.95
Ontario general election, 2011: Ajax—Pickering
Party Candidate Votes % ±%
Liberal Joe Dickson 19,606 47.34 −1.74
Progressive Conservative Todd McCarthy 14,718 35.54 +1.19
New Democratic Evan Wiseman 5,952 14.37 +6.28
Green Steven Toman 843 2.04 −5.54
Libertarian Andrew Delis 299 0.72
Total valid votes 41,418 100.0 +2.36
Total rejected, unmarked and declined ballots 172 0.41 −0.07
Turnout 41,590 44.8   −4.5  
Eligible voters 92,745   +12.53
Liberal hold Swing −1.47
Source(s)
Ontario general election, 2007: Ajax—Pickering
Party Candidate Votes %
Liberal Joe Dickson 19,857 49.07
Progressive Conservative Kevin Ashe 13,898 34.35
New Democratic Bala Thavarajasoorier 3,275 8.09
Green Cecile Willert 3,067 7.58
Family Coalition Andrew Carvalho 368 0.91
Total valid votes 40,465 100.0  
Total rejected ballots 197 0.48
Turnout 40,662 49.3  
Eligible voters 82,416  

Main templates

{{Canadian election result/top}} {{Canadian election result}} {{Canadian election result/total}} {{Canadian election result/source}} {{Canadian election result/note}} {{Canadian election result/gain}} {{Canadian election result/hold}}

Federal

2011 Canadian federal election
** Preliminary results — Not yet official **
Party Candidate Votes % ±%
New Democratic Linda Duncan 26,093 53.55 +10.97
Conservative Ryan Hastman 19,762 40.55 -1.05
Liberal Matthew Sinclair 1,372 2.82 -6.24
Green Andrew Fehr 1,119 2.30 -4.14
Independent Kyle Murphy 206 0.42
Marxist–Leninist Kevan Hunter 91 0.19 -0.12
Independent Christopher White 87 0.18
Total valid votes/Expense limit 48,730 100.00
Total rejected ballots 124 0.25 +0.04
Turnout 48,854 68.76 +3.3
** Preliminary results — Not yet official **


Canadian federal by-election, May 13, 2002
The by-election will be held on മേയ് 13, 2002.
Party Candidate Votes % Expenditures
Alliance Stephen Harper 13,200 71.66 $58,959.16
New Democratic Bill Phipps 3,813 20.70 $34,789.77
Green James S. Kohut 660 3.58 $2,750.80
Independent Gordon Barrett 428 2.32 $3,329.34
Christian Heritage Ron Gray 320 1.74 $27,772.78
Total valid votes 18,421 100.00
Total rejected ballots 98
Turnout 18,519 23.05
Electors on the lists 80,360
The by-election will be held on മേയ് 13th, 2002.


2060 Canadian federal election
The 2060 general election will be held on ഏപ്രിൽ 1.
Party Candidate Votes % ±%
Progressive Conservative Justin Beiber
Liberal Robin Thicke
New Democratic Michael Bublé
Green Avril Lavigne
Space Invaders Zleb-glork of Xlatzawx
Total valid votes
Total rejected ballots
Turnout
Eligible voters
The 2060 general election will be held on ഏപ്രിൽ 1st.

Editors Note: Don't actually use either the on= or prelim= parameters in both the /top & /source sections — One or the other!


2011 Ontario general election: Ajax—Pickering
Resignation of Bugs Bunny
Party Candidate Votes % ±%
Liberal Joe Dickson 19,606 47.34 -1.74
Progressive Conservative Todd McCarthy 14,718 35.54 +1.19
New Democratic Evan Wiseman 5,952 14.37 +6.28
Green Steven Toman 843 2.04 -5.54
Libertarian Andrew Delis 299 0.72
Total valid votes 41,418 100.0   +2.36
Total rejected ballots 172 0.41 -0.07
Turnout 41,590 44.8   -4.5  
Eligible voters 92,745   +12.53
Source(s)
"Summary of Valid Votes Cast for Each Candidate" (PDF). Elections Ontario. October 6, 2011. Retrieved May 9, 2014.
"Statistical Summary" ( Excel Spreadsheet). Elections Ontario. October 1, 2013. Retrieved May 9, 2014.


Oak Ridges—Markham   (transclusions)

2014 Ontario general election: Oak Ridges—Markham
Party Candidate Votes % ±% Expenditures
Liberal Helena Jaczek 36,782 45.55 +0.74 $92,420.12
Progressive Conservative Farid Wassef 30,259 37.47 +0.23 $173,298.00
New Democratic Miles Krauter 9,355 11.58 −1.55 $4,568.86
Green Emilia Melara 2,791 3.46 +0.98 $0.00
Libertarian Karl Boelling 1,358 1.68 +0.07 $0.00
Trillium Gennady Vilensky 213 0.26 N/A $0.00
Total valid votes 80,755 100.00  
Total rejected, unmarked and declined ballots 1,156 1.43
Turnout 81,911 46.21
Eligible voters 177,255  
Liberal hold Swing +0.26

Editors Note: Only include references with links to external websites in Future election tables (presumably readers want links to candidate information).  Once an election has occurred, remove these links so that only [[wikilinked]] articles are part of the tables (WP:ELNO).

2011 Ontario general election: Oak Ridges—Markham
Party Candidate Votes % ±% Expenditures
Liberal Helena Jaczek 28,878 44.78 −3.43 $83,066.00
Progressive Conservative Farid Wassef 23,950 37.14 +1.07 $146,606.59
New Democratic Joe Whitfeld 8,548 13.26 +5.33 $11,142.60
Green Trifon Haitas 1,569 2.43 −4.01 $350.00
Libertarian Karl Boelling 1,057 1.64   $213.07
Independent Ruida Lu 484 0.75   $2,766.14
Total valid votes / Expense limit 64,486 100.00 +8.85 $180,834,78
Total rejected, unmarked and declined ballots 395 0.61 −0.13
Turnout 64,881 42.70 −5.07
Eligible voters 151,959   +21.63
Liberal hold Swing −2.25
2007 Ontario general election: Oak Ridges—Markham
Party Candidate Votes %
Liberal Helena Jaczek 28,564 48.22
Progressive Conservative Phil Bannon 21,367 36.07
New Democratic Janice Hagan 4,698 7.93
Green Attila Nagy 3,815 6.44
Family Coalition Patrick Redmond 455 0.77
Independent Doug Ransom 342 0.58
Total valid votes 59,241 100.0  
Total rejected ballots 444 0.74
Turnout 59,685 47.77
Eligible voters 124,939  
Sources:"Summary of valid votes cast for each candidate – October 10, 2007 General Election" (PDF). Elections Ontario. 2008-08-14. Retrieved 2014-05-23.
"Statistical Summary" (PDF). Elections Ontario. 2008-05-08. Retrieved 2014-05-23.


Ajax—Pickering   (transclusions)

2014 Ontario general election: Ajax—Pickering
Party Candidate Votes % ±%
Liberal Joe Dickson 26,257 51.06 +3.72
Progressive Conservative Todd McCarthy 14,999 29.17 −6.17
New Democratic Jermaine King 8,274 16.09 +1.72
Green Adam Narraway 1,589 3.09 +1.06
Libertarian Kyle Stewart 301 0.59 −0.13
Total valid votes 51,420 100.0 +23.94
Total rejected, unmarked and declined ballots 580 1.12 +0.71
Turnout 52,000 50.18 +5.38
Eligible voters 103,629   +11.74
Liberal hold Swing +4.95


2011 Ontario general election: Ajax—Pickering
Party Candidate Votes % ±%
Liberal Joe Dickson 19,606 47.34 −1.74
Progressive Conservative Todd McCarthy 14,718 35.54 +1.19
New Democratic Evan Wiseman 5,952 14.37 +6.28
Green Steven Toman 843 2.04 −5.54
Libertarian Andrew Delis 299 0.72
Total valid votes 41,418 100.0 +2.36
Total rejected, unmarked and declined ballots 172 0.41 −0.07
Turnout 41,590 44.8   −4.5  
Eligible voters 92,745   +12.53
Liberal hold Swing −1.47
Source(s)


2007 Ontario general election: Ajax—Pickering
Party Candidate Votes %
Liberal Joe Dickson 19,857 49.07
Progressive Conservative Kevin Ashe 13,898 34.35
New Democratic Bala Thavarajasoorier 3,275 8.09
Green Cecile Willert 3,067 7.58
Family Coalition Andrew Carvalho 368 0.91
Total valid votes 40,465 100.0  
Total rejected ballots 197 0.48
Turnout 40,662 49.3  
Eligible voters 82,416  

References List
"https://ml.wikipedia.org/w/index.php?title=ഫലകം:Canadian_election_result/source&oldid=3390413" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്