Template talk:Election box: Difference between revisions
m Archiving 1 discussion(s) to Template talk:Election box/Archive 5) (bot |
→Merged Parties: new section |
||
Line 28: | Line 28: | ||
:The same goes for the <code>swing</code> parameter. <span class="nowrap">—<code>[[User:AlphaMikeOmega|AlphaMikeOmega]]</code> ([[User talk:AlphaMikeOmega|talk]])</span> 18:27, 26 June 2022 (UTC) |
:The same goes for the <code>swing</code> parameter. <span class="nowrap">—<code>[[User:AlphaMikeOmega|AlphaMikeOmega]]</code> ([[User talk:AlphaMikeOmega|talk]])</span> 18:27, 26 June 2022 (UTC) |
||
== Merged Parties == |
|||
If a merged party wins a seat held by one of its constituent parties (I.E. the Liberal Democrats winning a seat that was held by either the Liberal Party of the Social Democratic Party), should you use a election box hold or an election box gain [[User:TheHaloVeteran2|TheHaloVeteran2]] ([[User talk:TheHaloVeteran2|talk]]) 14:34, 28 December 2022 (UTC) |
Revision as of 14:34, 28 December 2022
This is the talk page for discussing improvements to the Election box template. |
|
Archives: 1, 2, 3, 4, 5Auto-archiving period: 28 days ![]() |
![]() | Elections and Referendums Template‑class | ||||||
|
Template-protected edit request on 28 March 2022
![]() | This edit request to Template:Election box candidate with party link has been answered. Set the |answered= oder |ans= parameter to no to reactivate your request. |
Replace {{{votes|}}}
on line 11 of Template:Election box candidate with party link, with {{formatnum:
-MPGuy2824 (talk) 08:52, 28 March 2022 (UTC)
{{replace|{{{votes}}}|,}}
}}
- A better idea to fix the problem is to use {{formatnum}} twice:
{{formatnum:{{formatnum:{{{param|}}}|R}}}}
. NguoiDungKhongDinhDanh 08:29, 30 March 2022 (UTC)- If that works, I'd be OK with it. I just copied the relevant part of the code from Template:Election box winning candidate with party link. -MPGuy2824 (talk) 08:44, 30 March 2022 (UTC)
Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format and provide a reliable source if appropriate. P.I. Ellsworth - ed. put'r there 03:15, 11 April 2022 (UTC)
Adding reference in the "political party" field
Is there a way to do this? Some elections are officially non-partisan but individual candidates are members of political parties, so even though the main "results" source doesn't have their party affiliation, other sources do for each individual candidate. Is there a way to add that reference within the political party box, or would each of those have to be added after the candidate name? Alternatively, would it be better to just not include party links at all in these situations? ThadeusOfNazereth(he/they)Talk to Me! 22:47, 16 May 2022 (UTC)
Request: use negative sign outlined in MOS
It might be worthwhile to preprocess the change
parameter such that when its value uses a generic dash as a negative sign (i.e. it matches the regex pattern [-–—](\s*\d+)
), the dash is replaced with the negative sign suggested in MOS:NEGATIVE (−). Note that I have seen at least one instance of an m-dash used in place of a missing value, so a format test should check for digits after the dash (as does the regex pattern above) to avoid replacing these appropriately used m-dashes. —AlphaMikeOmega
(talk) 18:23, 26 June 2022 (UTC)
- The same goes for the
swing
parameter. —AlphaMikeOmega
(talk) 18:27, 26 June 2022 (UTC)
Merged Parties
If a merged party wins a seat held by one of its constituent parties (I.E. the Liberal Democrats winning a seat that was held by either the Liberal Party of the Social Democratic Party), should you use a election box hold or an election box gain TheHaloVeteran2 (talk) 14:34, 28 December 2022 (UTC)