வார்ப்புரு:Canadian election result/top
{| class=&quot;wikitable collapsible {{#switch:{{{collapsed|}}}|yes=collapsed|auto=autocollapse|no=|}}&quot; border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; width:{{#expr:468&lt;!--
 
   Adapt width of table according to columns displayed
 --&gt;{{#if:{{{percent|&lt;noinclude&gt;1&lt;/noinclude&gt;}}}|+43}}
 {{#if:{{{final|}}}|+52}}
 {{#if:{{{percent2|}}}|+43}}
 {{#if:{{{change|&lt;noinclude&gt;1&lt;/noinclude&gt;}}}|+52}}
 {{#if:{{{expenditures|&lt;noinclude&gt;1&lt;/noinclude&gt;}}}|+90}}
 {{#if:{{{elected|}}}|+47}}
 }}px;&quot;
 |- style=&quot;background-color:#E9E9E9&quot;
 ! colspan=&quot;9&quot;|&lt;!--
 
   Put the ‘navbar’ (V•T•E) in table title area
 --&gt;{{#ifexist:Template:&lt;noinclude&gt;Canadian election result/doc&lt;/noinclude&gt;&lt;includeonly&gt;{{#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}}}|}}&lt;/includeonly&gt;|{{navbar|&lt;noinclude&gt;Canadian election result/doc&lt;/noinclude&gt;&lt;includeonly&gt;{{#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}}}|}}&lt;/includeonly&gt;|mini=1|style=float:left;}}}}&lt;!--
 
   Table ‘Title’ (e.g. “Alberta general election, 1955” or “Manitoba provincial by-election, November 21, 2000”)
 --&gt;{{#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}}}}}}}]]}}&lt;!--
 
   Riding name (e.g. [[Cole Harbour-Eastern Passage]]) — Suppress if template transcluded into that article
 --&gt;{{#ifeq:{{PAGENAME}}|{{{riding_link|{{{3}}}}}}||{{#if:{{{riding_link|{{{3|}}}}}}|&amp;#58; {{nowrap|[[{{{riding_link|{{{3}}}}}}{{#if:{{{riding|{{{4|}}}}}}|{{!}}{{{riding|{{{4}}}}}}}}]]}}}}}}&lt;!--
 
   Ballot number (if specified) (e.g. “, ballot A”)
 --&gt;{{#if:{{{ballot|}}}|,&amp;nbsp;ballot {{{ballot}}}}}&lt;!--
 
   Special title line if &quot;reason&quot; for by-election specified (e.g. Resignation of [[Bugs Bunny]])
 --&gt;{{#if:{{{reason|}}}|&lt;br /&gt;{{{reason|}}}}}&lt;!--
 
   Special title line  “The #### election will be held on …” --&gt;
 {{#if:{{{on|}}}|
 {{!}}-
 ! colspan=&quot;9&quot; &lt;!--
 --&gt;style=&quot;text-align:center;background:lemonchiffon;{{{style|}}}&quot;&lt;!--
 --&gt;{{!}}&lt;!--
   --&gt;''The &lt;!--
     --&gt;{{#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&amp;nbsp; |MTL|OTT|TOR|VAN=municipal&amp;nbsp; |=}}}}&lt;!--
     --&gt;election will be held on &lt;!--
   --&gt;{{#time:F j|{{{on|}}}}}&lt;!--
   --&gt;{{#if:{{{by|}}}|, {{#time:Y|{{{on|}}}}}}}.''&lt;!--
 
   Special title line “Preliminary results…” 
 --&gt;|{{#ifeq:{{lc:{{{prelim|no}}}}}|no|&lt;!-- Anything other than “=no” → True — Add the “Preliminary results…” line --&gt;|
 {{!}}-
 ! colspan=&quot;9&quot; &lt;!--
 --&gt;style=&quot;text-align:center;{{{style|}}}&quot;&lt;!--
 --&gt;{{!}}{{big|''** Preliminary results — Not yet official **''}}&lt;!--
   End if &quot;prelim&quot;
 --&gt;}}&lt;!--
   End if &quot;on&quot;
 --&gt;}}&lt;!--
 
   Define table columns   --&gt;
 |- style=&quot;background-color:#E9E9E9&quot;
 ! colspan=&quot;2&quot; width=&quot;210px&quot; |Party
 ! width=&quot;210px&quot; |Candidate
 ! width=&quot;48px&quot;  |{{#if:{{{1st|}}}|Votes&lt;br/&gt;&lt;small&gt;1st&amp;nbsp;count&lt;/small&gt;|Votes}}{{#if:{{{percent|&lt;noinclude&gt;1&lt;/noinclude&gt;}}}|
 !! width=&quot;43px&quot; {{!}}%|}}{{#if:{{{final|}}}|
 !! width=&quot;52px&quot; {{!}}Votes&lt;br/&gt;&lt;small&gt;final&amp;nbsp;count&lt;/small&gt;|}}{{#if:{{{percent2|}}}|
 !! width=&quot;43px&quot; {{!}}%|}}{{#if:{{{change|&lt;noinclude&gt;1&lt;/noinclude&gt;}}}|
 !! width=&quot;52px&quot; {{!}}[[Percentage point|∆%]]|}}{{#if:{{{expenditures|&lt;noinclude&gt;1&lt;/noinclude&gt;}}}|
 !! width=&quot;90px&quot; {{!}}Expenditures|}}{{#if:{{{elected|}}}|
 !! width=&quot;47px&quot; {{!}}Elected|}}&lt;includeonly&gt;&lt;!--
 
 NO CATEGORIES FOR “testcases” &amp; “sandbox” PAGES
 --&gt;{{#switch:{{lc:{{SUBPAGENAME}}}}|textcase|testcases|sandbox=|&lt;!--
 
 NO CATEGORIES FOR “Canadian election result” or its subpages
 --&gt;{{#switch:{{BASEPAGENAME}}|Canadian election result=|&lt;!--
 
 AUTOMATIC CATEGORY PLACEMENT IF FOR A RIDING
 --&gt;{{#if:{{{riding_link|{{{3|}}}}}}&lt;!--
 
 CATEGORY FOR BY-ELECTIONS
 --&gt;|{{#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|}}}}}&lt;!--
 
 YEAR CATEGORY FOR GENERAL ELECTIONS
 --&gt;|{{category handler|template=[[Category:{{#switch:{{{jurisdiction|{{{1}}}}}}|CA=கனடா நடுவண் அரசுத்|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|}}}}}}}&lt;!--
 
 COMPLETE LIST
 --&gt;{{category handler|template=[[Category:Canada election result templates (complete list)]]|nocat={{{nocat|}}}}}}}&lt;!-- Close Switch BASEPAGENAME &amp; SUBPAGENAME --&gt;}}}}&lt;/includeonly&gt;&lt;noinclude&gt;
 |}
 {{documentation}}
 {{Documentation|Template:Canadian election result/doc}}
 {{Canadian election result/testcases}}