Changes
m
Changed protection level for "Template:Canadian election result/top": high-risk template with 4000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
{| class="wikitable collapsible {{#switch:{{{collapsed|}}}|yes=collapsed|auto=autocollapse|no=|}}" border="1" cellpadding="4" cellspacing="0" style="background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; width:{{#expr:573<!--
Adapt width of table according to columns displayed
-->{{#if:{{{percent|<noinclude>1</noinclude>}}}|+43}}
{{#if:{{{final|}}}|+52}}
{{#if:{{{percent2|}}}|+43}}
{{#if:{{{change|<noinclude>1</noinclude>}}}|+52}}
{{#if:{{{expenditures|<noinclude>1</noinclude>}}}|+90}}
{{#if:{{{elected|}}}|+47}}
}}px;"
|- style="background-color:#E9E9E9"
! colspan="9"|<!--
Put the ‘navbar’ (V•T•E) in table title area
-->{{#ifexist:Template:<noinclude>Canadian election result/doc</noinclude><includeonly>{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta provincial|BC=British Columbia provincial|MB=Manitoba provincial|NB=New Brunswick provincial|NF=Newfoundland provincial|NL=Newfoundland and Labrador provincial|NS=Nova Scotia provincial|NT=Northwest Territories territorial|NU=Nunavut territorial|ON=Ontario provincial|PE=Prince Edward Island provincial|QC=Quebec provincial|SK=Saskatchewan provincial|YK|YT=Yukon territorial|MTL=Montreal municipal|OTT=Ottawa municipal|TOR=Toronto municipal|VAN=Vancouver municipal|}} {{#ifeq:{{{by}}}|yes|by-|}}election, {{{election|{{{2}}}}}}/{{{riding|{{{4|{{{3}}}}}}}}}{{#if:{{{ballot|}}}|, ballot {{{ballot}}}|}}</includeonly>|{{navbar|<noinclude>Canadian election result/doc</noinclude><includeonly>{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta provincial|BC=British Columbia provincial|MB=Manitoba provincial|NB=New Brunswick provincial|NF=Newfoundland provincial|NL=Newfoundland and Labrador provincial|NS=Nova Scotia provincial|NT=Northwest Territories territorial|NU=Nunavut territorial|ON=Ontario provincial|PE=Prince Edward Island provincial|QC=Quebec provincial|SK=Saskatchewan provincial|YK|YT=Yukon territorial|MTL=Montreal municipal|OTT=Ottawa municipal|TOR=Toronto municipal|VAN=Vancouver municipal|}} {{#ifeq:{{{by}}}|yes|by-|}}election, {{{election|{{{2}}}}}}/{{{riding|{{{4|{{{3}}}}}}}}}{{#if:{{{ballot|}}}|, ballot {{{ballot}}}|}}</includeonly>|mini=1|style=float:left;}}}}<!--
Table ‘Title’ (e.g. “Alberta general election, 1955” or “Manitoba provincial by-election, November 21, 2000”)
-->{{#ifeq:{{{by}}}|yes|{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta provincial|BC=British Columbia provincial|MB=Manitoba provincial|NB=New Brunswick provincial|NF=Newfoundland provincial|NL=Newfoundland and Labrador provincial|NS=Nova Scotia provincial|NT=Northwest Territories territorial|NU=Nunavut territorial|ON=Ontario provincial|PE=Prince Edward Island provincial|QC=Quebec provincial|SK=Saskatchewan provincial|YK|YT=Yukon territorial|MTL=Montreal municipal|VAN=Vancouver municipal|}} by-election, {{#if:{{{by-link|}}}|[[{{{by-link}}}|{{{election|{{{2}}}}}}]]|{{{election|{{{2}}}}}}}}|[[{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta general|BC=British Columbia general|MB=Manitoba general|NB=New Brunswick general|NF=Newfoundland general|NL=Newfoundland and Labrador general|NS=Nova Scotia general|NT=Northwest Territories general|NU=Nunavut general|ON=Ontario general|PE=Prince Edward Island general|QC=Quebec general|SK=Saskatchewan general|YK|YT=Yukon general|MTL=Montreal municipal|OTT=Ottawa municipal|TOR=Toronto municipal|VAN=Vancouver municipal|{{{jurisdiction|{{{1}}}}}}}} election{{#if:{{{election|}}}|, {{{election}}}|{{#if:{{{2|}}}|, {{{2}}}}}}}]]}}<!--
Riding name (e.g. [[Cole Harbour-Eastern Passage]]) — Suppress if template transcluded into that article
-->{{#ifeq:{{PAGENAME}}|{{{riding_link|{{{3}}}}}}||{{#if:{{{riding_link|{{{3|}}}}}}|: {{nowrap|[[{{{riding_link|{{{3}}}}}}{{#if:{{{riding|{{{4|}}}}}}|{{!}}{{{riding|{{{4}}}}}}}}]]}}}}}}<!--
Ballot number (if specified) (e.g. “, ballot A”)
-->{{#if:{{{ballot|}}}|, ballot {{{ballot}}}}}<!--
Special title line if "reason" for by-election specified (e.g. Resignation of [[Bugs Bunny]])
-->{{#if:{{{reason|}}}|<br />{{{reason|}}}}}<!--
Special title line “The #### election will be held on …” -->
{{#if:{{{on|}}}|
{{!}}-
! colspan="9" <!--
-->style="text-align:center;background:lemonchiffon;{{{style|}}}"<!--
-->{{!}}<!--
-->''The <!--
-->{{#if:{{{by|}}}|by-|{{{election|{{{2}}}}}} {{#switch:{{{jurisdiction|{{{1}}}}}}||CA|AB|BC|MB|NB|NF|NL|NS|NT|NU|ON|PE|QC|SK|YK|YT=general |MTL|OTT|TOR|VAN=municipal |=}}}}<!--
-->election will be held on <!--
-->{{#time:F j|{{{on|}}}}}<!--
-->{{#if:{{{by|}}}|, {{#time:Y|{{{on|}}}}}}}.''<!--
Special title line “Preliminary results…”
-->|{{#ifeq:{{lc:{{{prelim|no}}}}}|no|<!-- Anything other than “=no” → True — Add the “Preliminary results…” line -->|
{{!}}-
! colspan="9" <!--
-->style="text-align:center;{{{style|}}}"<!--
-->{{!}}{{big|''** Preliminary results — Not yet official **''}}<!--
End if "prelim"
-->}}<!--
End if "on"
-->}}<!--
Define table columns -->
|- style="background-color:#E9E9E9"
! colspan="2" width="275px" |Party
! width="250px" |Candidate
! width="48px" |{{#if:{{{1st|}}}|Votes<br/><small>1st count</small>|Votes}}{{#if:{{{percent|<noinclude>1</noinclude>}}}|
!! width="43px" {{!}}%|}}{{#if:{{{final|}}}|
!! width="52px" {{!}}Votes<br/><small>final count</small>|}}{{#if:{{{percent2|}}}|
!! width="43px" {{!}}%|}}{{#if:{{{change|<noinclude>1</noinclude>}}}|
!! width="52px" {{!}}±%|}}{{#if:{{{expenditures|<noinclude>1</noinclude>}}}|
!! width="90px" {{!}}Expenditures|}}{{#if:{{{elected|}}}|
!! width="47px" {{!}}Elected|}}<includeonly><!--
NO CATEGORIES FOR “testcases” & “sandbox” PAGES
-->{{#switch:{{lc:{{SUBPAGENAME}}}}|textcase|testcases|sandbox=|<!--
NO CATEGORIES FOR “Canadian election result” or its subpages
-->{{#switch:{{BASEPAGENAME}}|Canadian election result=|<!--
AUTOMATIC CATEGORY PLACEMENT IF FOR A RIDING
-->{{#if:{{{riding_link|{{{3|}}}}}}<!--
CATEGORY FOR BY-ELECTIONS
-->|{{#ifeq:{{{by}}}|yes|{{category handler|template=[[Category:{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta provincial|BC=British Columbia provincial|MB=Manitoba provincial|NB=New Brunswick provincial|NF|NL=Newfoundland and Labrador provincial|NS=Nova Scotia provincial|NT=Northwest Territories territorial|NU=Nunavut territorial|ON=Ontario provincial|PE=Prince Edward Island provincial|QC=Quebec provincial|SK=Saskatchewan provincial|YK|YT=Yukon territorial|MTL=Montreal municipal|OTT=Ottawa municipal|TOR=Toronto municipal|VAN=Vancouver municipal|}} by-election results by riding]]|nocat={{{nocat|}}}}}<!--
YEAR CATEGORY FOR GENERAL ELECTIONS
-->|{{category handler|template=[[Category:{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta general|BC=British Columbia general|MB=Manitoba general|NB=New Brunswick general|NF|NL=Newfoundland and Labrador general|NS=Nova Scotia general|NT=Northwest Territories general|NU=Nunavut general|ON=Ontario general|PE=Prince Edward Island general|QC=Quebec general|SK=Saskatchewan general|YK|YT=Yukon general|MTL=Montreal municipal|OTT=Ottawa municipal|TOR=Toronto municipal|VAN=Vancouver municipal|}} election, {{{election|{{{2}}}}}} results by riding]]|nocat={{{nocat|}}}}}}}<!--
COMPLETE LIST
-->{{category handler|template=[[Category:Canada election result templates (complete list)]]|nocat={{{nocat|}}}}}}}<!-- Close Switch BASEPAGENAME & SUBPAGENAME -->}}}}</includeonly><noinclude>
|}
{{documentation}}
{{Documentation|Template:Canadian election result/doc}}
{{Canadian election result/testcases}}
</noinclude>
Adapt width of table according to columns displayed
-->{{#if:{{{percent|<noinclude>1</noinclude>}}}|+43}}
{{#if:{{{final|}}}|+52}}
{{#if:{{{percent2|}}}|+43}}
{{#if:{{{change|<noinclude>1</noinclude>}}}|+52}}
{{#if:{{{expenditures|<noinclude>1</noinclude>}}}|+90}}
{{#if:{{{elected|}}}|+47}}
}}px;"
|- style="background-color:#E9E9E9"
! colspan="9"|<!--
Put the ‘navbar’ (V•T•E) in table title area
-->{{#ifexist:Template:<noinclude>Canadian election result/doc</noinclude><includeonly>{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta provincial|BC=British Columbia provincial|MB=Manitoba provincial|NB=New Brunswick provincial|NF=Newfoundland provincial|NL=Newfoundland and Labrador provincial|NS=Nova Scotia provincial|NT=Northwest Territories territorial|NU=Nunavut territorial|ON=Ontario provincial|PE=Prince Edward Island provincial|QC=Quebec provincial|SK=Saskatchewan provincial|YK|YT=Yukon territorial|MTL=Montreal municipal|OTT=Ottawa municipal|TOR=Toronto municipal|VAN=Vancouver municipal|}} {{#ifeq:{{{by}}}|yes|by-|}}election, {{{election|{{{2}}}}}}/{{{riding|{{{4|{{{3}}}}}}}}}{{#if:{{{ballot|}}}|, ballot {{{ballot}}}|}}</includeonly>|{{navbar|<noinclude>Canadian election result/doc</noinclude><includeonly>{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta provincial|BC=British Columbia provincial|MB=Manitoba provincial|NB=New Brunswick provincial|NF=Newfoundland provincial|NL=Newfoundland and Labrador provincial|NS=Nova Scotia provincial|NT=Northwest Territories territorial|NU=Nunavut territorial|ON=Ontario provincial|PE=Prince Edward Island provincial|QC=Quebec provincial|SK=Saskatchewan provincial|YK|YT=Yukon territorial|MTL=Montreal municipal|OTT=Ottawa municipal|TOR=Toronto municipal|VAN=Vancouver municipal|}} {{#ifeq:{{{by}}}|yes|by-|}}election, {{{election|{{{2}}}}}}/{{{riding|{{{4|{{{3}}}}}}}}}{{#if:{{{ballot|}}}|, ballot {{{ballot}}}|}}</includeonly>|mini=1|style=float:left;}}}}<!--
Table ‘Title’ (e.g. “Alberta general election, 1955” or “Manitoba provincial by-election, November 21, 2000”)
-->{{#ifeq:{{{by}}}|yes|{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta provincial|BC=British Columbia provincial|MB=Manitoba provincial|NB=New Brunswick provincial|NF=Newfoundland provincial|NL=Newfoundland and Labrador provincial|NS=Nova Scotia provincial|NT=Northwest Territories territorial|NU=Nunavut territorial|ON=Ontario provincial|PE=Prince Edward Island provincial|QC=Quebec provincial|SK=Saskatchewan provincial|YK|YT=Yukon territorial|MTL=Montreal municipal|VAN=Vancouver municipal|}} by-election, {{#if:{{{by-link|}}}|[[{{{by-link}}}|{{{election|{{{2}}}}}}]]|{{{election|{{{2}}}}}}}}|[[{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta general|BC=British Columbia general|MB=Manitoba general|NB=New Brunswick general|NF=Newfoundland general|NL=Newfoundland and Labrador general|NS=Nova Scotia general|NT=Northwest Territories general|NU=Nunavut general|ON=Ontario general|PE=Prince Edward Island general|QC=Quebec general|SK=Saskatchewan general|YK|YT=Yukon general|MTL=Montreal municipal|OTT=Ottawa municipal|TOR=Toronto municipal|VAN=Vancouver municipal|{{{jurisdiction|{{{1}}}}}}}} election{{#if:{{{election|}}}|, {{{election}}}|{{#if:{{{2|}}}|, {{{2}}}}}}}]]}}<!--
Riding name (e.g. [[Cole Harbour-Eastern Passage]]) — Suppress if template transcluded into that article
-->{{#ifeq:{{PAGENAME}}|{{{riding_link|{{{3}}}}}}||{{#if:{{{riding_link|{{{3|}}}}}}|: {{nowrap|[[{{{riding_link|{{{3}}}}}}{{#if:{{{riding|{{{4|}}}}}}|{{!}}{{{riding|{{{4}}}}}}}}]]}}}}}}<!--
Ballot number (if specified) (e.g. “, ballot A”)
-->{{#if:{{{ballot|}}}|, ballot {{{ballot}}}}}<!--
Special title line if "reason" for by-election specified (e.g. Resignation of [[Bugs Bunny]])
-->{{#if:{{{reason|}}}|<br />{{{reason|}}}}}<!--
Special title line “The #### election will be held on …” -->
{{#if:{{{on|}}}|
{{!}}-
! colspan="9" <!--
-->style="text-align:center;background:lemonchiffon;{{{style|}}}"<!--
-->{{!}}<!--
-->''The <!--
-->{{#if:{{{by|}}}|by-|{{{election|{{{2}}}}}} {{#switch:{{{jurisdiction|{{{1}}}}}}||CA|AB|BC|MB|NB|NF|NL|NS|NT|NU|ON|PE|QC|SK|YK|YT=general |MTL|OTT|TOR|VAN=municipal |=}}}}<!--
-->election will be held on <!--
-->{{#time:F j|{{{on|}}}}}<!--
-->{{#if:{{{by|}}}|, {{#time:Y|{{{on|}}}}}}}.''<!--
Special title line “Preliminary results…”
-->|{{#ifeq:{{lc:{{{prelim|no}}}}}|no|<!-- Anything other than “=no” → True — Add the “Preliminary results…” line -->|
{{!}}-
! colspan="9" <!--
-->style="text-align:center;{{{style|}}}"<!--
-->{{!}}{{big|''** Preliminary results — Not yet official **''}}<!--
End if "prelim"
-->}}<!--
End if "on"
-->}}<!--
Define table columns -->
|- style="background-color:#E9E9E9"
! colspan="2" width="275px" |Party
! width="250px" |Candidate
! width="48px" |{{#if:{{{1st|}}}|Votes<br/><small>1st count</small>|Votes}}{{#if:{{{percent|<noinclude>1</noinclude>}}}|
!! width="43px" {{!}}%|}}{{#if:{{{final|}}}|
!! width="52px" {{!}}Votes<br/><small>final count</small>|}}{{#if:{{{percent2|}}}|
!! width="43px" {{!}}%|}}{{#if:{{{change|<noinclude>1</noinclude>}}}|
!! width="52px" {{!}}±%|}}{{#if:{{{expenditures|<noinclude>1</noinclude>}}}|
!! width="90px" {{!}}Expenditures|}}{{#if:{{{elected|}}}|
!! width="47px" {{!}}Elected|}}<includeonly><!--
NO CATEGORIES FOR “testcases” & “sandbox” PAGES
-->{{#switch:{{lc:{{SUBPAGENAME}}}}|textcase|testcases|sandbox=|<!--
NO CATEGORIES FOR “Canadian election result” or its subpages
-->{{#switch:{{BASEPAGENAME}}|Canadian election result=|<!--
AUTOMATIC CATEGORY PLACEMENT IF FOR A RIDING
-->{{#if:{{{riding_link|{{{3|}}}}}}<!--
CATEGORY FOR BY-ELECTIONS
-->|{{#ifeq:{{{by}}}|yes|{{category handler|template=[[Category:{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta provincial|BC=British Columbia provincial|MB=Manitoba provincial|NB=New Brunswick provincial|NF|NL=Newfoundland and Labrador provincial|NS=Nova Scotia provincial|NT=Northwest Territories territorial|NU=Nunavut territorial|ON=Ontario provincial|PE=Prince Edward Island provincial|QC=Quebec provincial|SK=Saskatchewan provincial|YK|YT=Yukon territorial|MTL=Montreal municipal|OTT=Ottawa municipal|TOR=Toronto municipal|VAN=Vancouver municipal|}} by-election results by riding]]|nocat={{{nocat|}}}}}<!--
YEAR CATEGORY FOR GENERAL ELECTIONS
-->|{{category handler|template=[[Category:{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=Canadian federal|AB=Alberta general|BC=British Columbia general|MB=Manitoba general|NB=New Brunswick general|NF|NL=Newfoundland and Labrador general|NS=Nova Scotia general|NT=Northwest Territories general|NU=Nunavut general|ON=Ontario general|PE=Prince Edward Island general|QC=Quebec general|SK=Saskatchewan general|YK|YT=Yukon general|MTL=Montreal municipal|OTT=Ottawa municipal|TOR=Toronto municipal|VAN=Vancouver municipal|}} election, {{{election|{{{2}}}}}} results by riding]]|nocat={{{nocat|}}}}}}}<!--
COMPLETE LIST
-->{{category handler|template=[[Category:Canada election result templates (complete list)]]|nocat={{{nocat|}}}}}}}<!-- Close Switch BASEPAGENAME & SUBPAGENAME -->}}}}</includeonly><noinclude>
|}
{{documentation}}
{{Documentation|Template:Canadian election result/doc}}
{{Canadian election result/testcases}}
</noinclude>