Jump to content

Template talk:Election box: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
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

WikiProject iconElections and Referendums Template‑class
WikiProject iconThis template is within the scope of WikiProject Elections and Referendums, an ongoing effort to improve the quality of, expand upon and create new articles relating to elections, electoral reform and other aspects of democratic decision-making. For more information, visit our project page.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Template-protected edit request on 28 March 2022

Replace {{{votes|}}} on line 11 of Template:Election box candidate with party link, with {{formatnum:{{replace|{{{votes}}}|,}}}} -MPGuy2824 (talk) 08:52, 28 March 2022 (UTC)[reply]

A better idea to fix the problem is to use {{formatnum}} twice: {{formatnum:{{formatnum:{{{param|}}}|R}}}}. NguoiDungKhongDinhDanh 08:29, 30 March 2022 (UTC)[reply]
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)[reply]
 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)[reply]

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)[reply]

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)[reply]

The same goes for the swing parameter. AlphaMikeOmega (talk) 18:27, 26 June 2022 (UTC)[reply]

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)[reply]