Template talk:Canadian election result
Add topicThis Talk page is centralized for all templates in the {{Canadian election result}} series. {{Canadian election result/top}} {{Canadian election result}} {{Canadian election result/total}} {{Canadian election result/source}} {{Canadian election result/note}} {{Canadian election result/hold}} {{Canadian election result/gain}} and the {{CANelec…)) equivalents |
| Template:Canadian election result is indefinitely protected from editing as it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify a template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
| This is the talk page for discussing improvements to the Canadian election result template. |
|
| Archives: 1Auto-archiving period: 6 months |
| This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||
| |||||||||||||||||||||
seeking guidance
[edit]Can someone explain why Template:2017 Vancouver municipal by-election/City Council had to be moved to Template:2017 Vancouver municipal by-elections/City Council (with the s tacked on to "by-election") to work properly when transcluded into 2017 Vancouver municipal by-election?
When the template was at Template:2017 Vancouver municipal by-election/City Council and was transcluded using:
{{2017 Vancouver municipal by-election/City Council}}
it failed to generate the v/t/e links in the table. Using the plural "by-electionS" seems to have fixed the issue but I'd love to know why since the article title does not have the s. —Joeyconnick (talk) 05:23, 17 March 2025 (UTC)
- The /top template code has this code to build the navbar: Don't ask me why. – Jonesey95 (talk) 13:40, 19 March 2025 (UTC)
{{#ifeq:{{{by}}}|yes|by-|}}election{{#ifeq:{{{by}}}|yes|s|}}}}
- Thanks for your response! I'm not a template editor... any chance we can fix this? Basically every time this template is transcluded, it should always generate v/t/e links. There's no case where those should ever fail to be present.
- The same problem is present 4 times in 2018 Vancouver municipal election, as well. —Joeyconnick (talk) 02:58, 27 March 2025 (UTC)
Edit request 2 May 2025
[edit]This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Please add dark mode compatible design tokens to the following subpages. Current styling forces static white background with black text.
Thanks ⇌ Synpath 20:28, 2 May 2025 (UTC)
- Synpath, is there a testcases page where I can see the difference in output? – Jonesey95 (talk) 20:50, 2 May 2025 (UTC)
- Yes, see Template:Canadian election result/testcases. ⇌ Synpath 20:53, 2 May 2025 (UTC)
- Thanks. An improvement. I have implemented the change for the /total template. For Template:Canadian election result/gain, it looks like there are too many changes from the live template to the sandbox. Can you please sync the live template to the sandbox and then apply only the changes that you want in this revision? Same request with Canadian election result/hold. – Jonesey95 (talk) 21:42, 2 May 2025 (UTC)
- I missed that they weren't identical, and I didn't know ComparePages existed, very useful. The diff after syncing for /gain is Special:Diff/1288480154 and for /hold Special:Diff/1288480259/1288480628. ⇌ Synpath 22:52, 2 May 2025 (UTC)
- Thanks.
Done. – Jonesey95 (talk) 12:22, 3 May 2025 (UTC)
- Thanks.
- I missed that they weren't identical, and I didn't know ComparePages existed, very useful. The diff after syncing for /gain is Special:Diff/1288480154 and for /hold Special:Diff/1288480259/1288480628. ⇌ Synpath 22:52, 2 May 2025 (UTC)
- Thanks. An improvement. I have implemented the change for the /total template. For Template:Canadian election result/gain, it looks like there are too many changes from the live template to the sandbox. Can you please sync the live template to the sandbox and then apply only the changes that you want in this revision? Same request with Canadian election result/hold. – Jonesey95 (talk) 21:42, 2 May 2025 (UTC)
- Yes, see Template:Canadian election result/testcases. ⇌ Synpath 20:53, 2 May 2025 (UTC)
Explain or link "notional hold"
[edit]It was hard to find an explanation online for "notional hold/gain" described by this template. Could we have it link to Notional election results for clarity? (Also, that article could probably use a Canada-specific section, especially if this is used by Canadian media and wikipedia articles about Canadian elections.) Rxtreme (talk) 23:16, 1 April 2026 (UTC)
- Good idea. I've added a link to Notional election results in the template.-- Earl Andrew - talk 14:54, 2 April 2026 (UTC)
Edit request 30 July 2026
[edit]This edit request to Template:Canadian election result/top has been answered. Set the |answered= parameter to no to reactivate your request. |
Description of suggested change:
Add a parameter to {{Canadian election result/top}} that adds the text (or before) to the "The #### election will be held on" text when the on parameter is set to yes, for elections where the writ has not yet been issued. The text would display: "The #### election will be held on or before"
Diff:
| − | ''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|}}}}}}}.'' | + | ''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 {{#if:{{{pending|}}}|or before }} <!--
-->{{#time:F j|{{{on|}}}}}<!--
-->{{#if:{{{by|}}}|, {{#time:Y|{{{on|}}}}}}}.'' |
RedBlueGreen93 23:03, 30 July 2026 (UTC)
Completed. P.I. Ellsworth , ed. – welcome! – 17:07, 31 July 2026 (UTC)
- Template-Class Canada-related pages
- NA-importance Canada-related pages
- Template-Class Governments of Canada pages
- NA-importance Governments of Canada pages
- Template-Class Political parties and politicians in Canada pages
- NA-importance Political parties and politicians in Canada pages
- All WikiProject Canada pages
- Template-Class Elections and Referendums pages
- WikiProject Elections and Referendums articles

