Template:Canadian election result/pickup and Template:Canadian election result/pickup/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
fix text color in dark mode; this generally works but may cause problems, in which case revert or try specifying a color |
Caddyshack01 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
|- style="background-color:white |
|- style="background-color:white" |
||
| style=" |
| style="background:#{{Canadian party colour/colour|{{{1}}}|{{{2}}}}}; border-top:1px solid darkgray;{{{style|}}}{{{style1|}}}"| |
||
|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:''' |
|||
⚫ | |||
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%|–}} |
|||
{{CANelec|AB|Social Credit|Dale Trefz|2,056|21.53%|–}} |
|||
{{CANelec|AB|Liberal|Einar Davison|1,432|14.99%|–}} |
|||
{{CANelec/total|Total|9,551||–|–}} |
|||
{{CANelec/total|Rejected, Spoiled and Declined|30||–|–}} |
|||
{{CANelec/total|Eligible electors / Turnout|16,133|59.39%||–}} |
|||
⚫ | |||
{{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 }}<!-- |
|||
-->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> |