Jump to content

Template:Canadian election result/pickup and Template:Canadian election result/pickup/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
m Protected "Template:Canadian election result/pickup": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))
 
No edit summary
 
Line 3: Line 3:
|colspan={{{colspan|7}}} style="border-top:1px solid darkgray;{{{style|}}}{{{style2|}}}"|{{Canadian party colour|{{{1|}}}|{{{2|}}}|name}} '''pickup''' new district.
|colspan={{{colspan|7}}} style="border-top:1px solid darkgray;{{{style|}}}{{{style2|}}}"|{{Canadian party colour|{{{1|}}}|{{{2|}}}|name}} '''pickup''' new district.
<noinclude>
<noinclude>
'''Explaination of changes:'''
{{Documentation|Template:Canadian election result/doc}}

Edited template to make the width adaptive to the number of columns used. Changed third line "|colspan={{{colspan|7}}}", previously the number was 2 which spanned the first two columns (Party and Candidate). Changing to 7 enables the template to span the same number of columns as the header row, which is up to seven, similar to [[Template:Canelec/source]].

Tested template on different lengths without issue. Further more the [[Template:CANelec/pickup]] is currently used on 183 pages, of which 24 our talk or duplicates. Low risk of issues with changes.

<noinclude/>


{{CANelec/top|AB|1997|Drumheller-Chinook|percent=yes|change=yes}}
{{CANelec|AB|PC|[[Shirley McClellan]]|6,063|63.48%|&ndash;}}
{{CANelec|AB|Social Credit|Dale Trefz|2,056|21.53%|&ndash;}}
{{CANelec|AB|Liberal|Einar Davison|1,432|14.99%|&ndash;}}
{{CANelec/total|Total|9,551||&ndash;|&ndash;}}
{{CANelec/total|Rejected, Spoiled and Declined|30||&ndash;|&ndash;}}
{{CANelec/total|Eligible electors / Turnout|16,133|59.39%||&ndash;}}
{{Canadian election result/pickup/sandbox|AB|PC}}
{{CANelec/source|hide=Source: {{cite web|url=http://www.abheritage.ca/abpolitics/administration/maps_choice.php?Year=1997&Constit=Drumheller-Chinook| title=Drumheller-Chinook Official Results 1997 Alberta general election | publisher=Alberta Heritage Community Foundation | accessdate=May 21, 2020}}}}
{{end}}

{{Canadian election result/top|AB|2004|Edmonton-Decore|percent=yes}}
{{Canadian election result|AB|Liberal|[[Bill Bonko|Bill Bonko Sr.]]|4,434|44.84}}
{{CANelec|AB|PC|[[Walter Szwender]]|3,007|30.41}}
{{CANelec|AB|NDP|Shirley Barg|1,525|15.42}}
{{CANelec|AB|Alliance|[[Gary Masyk]]|831|8.40}}
{{CANelec|AB|Social Credit|Geoffrey Chevrier|91|0.93}}
{{CANelec/total|Total valid votes|9,888}}
{{CANelec/total|Rejected, spoiled, and declined|78}}
{{CANelec/total|Eligible electors / Turnout|24,735|40.29}}
{{Canadian election result/pickup/sandbox|AB|Liberal}}
{{Canadian election result/source|hide={{cite web|url=http://www.elections.ab.ca/Public%20Website/files/Statements/29.pdf |title=Edmonton-Decore Statement of Official Results 2004 Alberta general election | publisher=Elections Alberta | accessdate=March 30, 2010}}}}
|}


|-
|colspan={{{colspan|7}}} <!--
-->style="border-top:1px solid darkgray;<!--
-->{{#if:{{{on|}}}|text-align:center;background:lemonchiffon;|<!--
-->{{#if:{{{prelim|}}}|text-align:center;}}}}<!--
-->{{{style|}}}"<!--
-->|{{#if:{{{on|}}}|<!--
-->'''''The <!--
-->{{#if:{{{by|}}}|by-|{{#time:Y|{{{on|}}}}} general&nbsp; }}<!--
-->election will be held on <!--
-->{{#time:F j|{{{on|}}}}}{{#switch:{{#time:j|{{{on|}}}}}|1|21|31=st|2|22=nd|3|23=rd|th}}<!--
-->{{#if:{{{by|}}}|, {{#time:Y|{{{on|}}}}}}}.'''''<!--

-->|{{#if:{{{prelim|}}}|<!--
-->{{big|'''''** Preliminary results — Not yet official **'''''}}<!--

-->|{{#if:{{{hide|}}}<!--
-->|{{hidden |header=Source(s) |headerstyle=text-align:left; background-color:#F4FFF4; |content={{{hide}}} }}<!--
-->|{{{source|{{{note|{{{1}}}}}}}}}<!--
End if ‘hide’
-->}}<!--
End if ‘prelim’
-->}}<!--
End if ‘on’
-->}}<!--
</noinclude>
</noinclude>