Template talk:Canadian election result

{{Ambox |text=This Talk page is centralized for all templates in the {{tl|Canadian election result}} series. {{nowrap|{{tl|Canadian election result/top}}}} {{nowrap|{{tl|Canadian election result}}}}  {{nowrap|{{tl|Canadian election result/total}}}}  {{nowrap|{{tl|Canadian election result/source}}}}  {{nowrap|{{tl|Canadian election result/note}}}}  {{nowrap|{{tl|Canadian election result/hold}}}}  {{nowrap|{{tl|Canadian election result/gain}}}}  {{nowrap|and the {{CANelec…)) equivalents}} |style=background-color:Honeydew;}} {{Permanently protected}} {{Talk header}} {{WPBS|1= {{WikiProject Canada|cangov=yes|ppap=yes}} {{WikiProject Elections and Referendums}} }} {{User:MiszaBot/config }}
 * algo               = old(180d)
 * archive            = Template talk:Canadian election result/Archive %(counter)d
 * counter            = 1
 * maxarchivesize     = 50K
 * archiveheader      = {{Automatic archive navigator}}
 * minthreadstoarchive = 1
 * minthreadsleft     = 4

Template-protected edit request on 10 May 2022
Hello, the Populist Party Ontario (abbreviation "PPO") was officially registered as a provincial party by Elections Ontario just yesterday. So far, six candidates (previously listed to be Independent) have been confirmed to be running under the PPO banner for the 2022 Ontario general election. Can the CANelec list be appended to include this new party? Thanks!! WiiDS (talk) 20:32, 10 May 2022 (UTC)

...anyone? We have 13 candidates now confirmed to be running for the PPO. WiiDS (talk) 18:51, 16 May 2022 (UTC)


 * Hello, it appears that "Populist" has been added to the CANelec list. The Canadian party colour is listed as "PPO". Would it be possible to change the CANelec listing from "Populist" to "PPO" to ensure the consistency? Thanks! WiiDS (talk) 04:17, 17 May 2022 (UTC)
 * Nevermind, it appears to work regardless of whether it's listed as "Populist" or "PPO". Whoever did this, thank you so much!! :) WiiDS (talk) 04:20, 17 May 2022 (UTC)

Template-protected edit request on 19 July 2022
Hi! This template isn't working well with dark mode on the Wikipedia iOS app. The background color of all the rows remains light-colored even on dark mode. Text entered into the candidate, votes, %, %change, and expenditures cells then turn practically invisible on dark mode, as they invert color from black to white.

Could this template be brought into line with the template Template: Election box winning candidate with party link as seen in UK elections like Uxbridge and South Ruislip. The table cells in that template change color properly with light/dark mode. If that's not possible, a quick fix would be to set all regular non-link text in this template to black.

Thank you! Deathying (talk) 20:11, 19 July 2022 (UTC)
 * ❌ please make the changes you want to Template:Canadian election result/sandbox as if you could edit this page yourself. Once done and tested, please reactivate the edit request template above. If this is just a suggestion for someone else to improve the page one day, that is fine - but someone will have to do the work before uninvolved patrollers will be able to promote the changes to production. —  xaosflux  Talk 14:26, 28 July 2022 (UTC)

Template-protected edit request on 4 October 2022
Replace  with. Per TFD, Hover title is to be merged with Tooltip. You can see the change made in Template:Canadian election result/top/sandbox. ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ (talk) 14:44, 4 October 2022 (UTC)
 * ✅ – Jonesey95 (talk) 14:55, 4 October 2022 (UTC)

Attempt to edit /top
Do you remember which pages had errors from my edit of Template:Canadian election result/top? My sandbox test cases all looked fine, so I don't know in what situations the code breaks. —Arctic Gnome (talk • contribs) 15:33, 23 October 2023 (UTC)
 * Look at Template:Canadian election result/top/sandbox. There are two issues to note there.
 * 1) has repeatedly tried to tell you that we do not use curly quotes per MOS:CURLY (diff) – do you have a problem with that?
 * 2) The header says "[ [Error Invalid general election]]:" while the live version which I reverted to Template:Canadian election result/top does not. What caused that change? Does your new version introduce some form of error checking that the previous version did not have? wbm1058 (talk) 15:50, 23 October 2023 (UTC)
 * 1) The 'find' command shows all quotes whether I put normal quotes or curly ones into the search bar. How do you detect these curly quotes? Is the easiest solution to retype all quotes in the template before publishing?
 * 2) All of my test cases looked fine, so I assumed that error was a result of the template not having inputs, and it would be fine in the finished product. Should I fix that by giving the template a placeholder value to use when there is no input? —Arctic Gnome (talk • contribs) 14:53, 24 October 2023 (UTC)
 * re: 1) OK, I see that the curly quotes were apparently first added to the template by Who R you? back in 2014, and you've been trying to make changes to older versions where the curly quotes had not been replaced with straight quotes. I just used the JavaScript Wiki Browser to do that. That tool has a bit of a learning curve, so I'm willing to help by making that edit again as needed in the sandbox, just for the asking. I also noted the need to replace the ellipsis (…) with 3 periods. – wbm1058 (talk) 01:01, 25 October 2023 (UTC)
 * re: 2) One of my patrols is for pages transcluding errors in [//en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Template:Error&namespace=0 main namespace] and a lot of Canadian election-related pages were turning up on that list, which is what brought me here. When a page lands on that list, I expect to see an obvious, big, red, error message stating the problem and giving instructions on how to fix the reported problem. Although I saw one or two pages showing me an error similar to what the sandbox template shows, most did not show obvious errors. The template should be coded to ensure that it doesn't report "false-positive errors", which can be a bit tricky to do. I was trying to find where this error message was coming from and I don't think I'd tracked it down yet. When I reverted you on July 8, I was hoping that you would figure it out, but, I guess I need to do more since we're still stuck here. – wbm1058 (talk) 01:20, 25 October 2023 (UTC)
 * Thanks, I'll try again when I have some free time. I've been trying to minimize the size of the template, but there might be too many moving parts. —Arctic Gnome (talk • contribs) 18:21, 25 October 2023 (UTC)