Template talk:Election box/Archive 5

Template-protected edit request on 2 October 2020 for Template:Election box candidate with party link no change
Please revert this edit by. &#8211; MJL &thinsp;‐Talk‐☖ 02:43, 2 October 2020 (UTC)
 * See Hillary Clinton &#8211; MJL &thinsp;‐Talk‐☖ 02:45, 2 October 2020 (UTC)
 * Yes check.svg Done – Jonesey95 (talk) 03:49, 2 October 2020 (UTC)

Template-protected edit request on 6 October 2020 for Template:Election box begin
The ± column's meaning and implied units (voters? percent?) are absolutely opaque to someone unfamiliar with it (e.g. me 😉). It could really use a tooltip/hovertext to explain itself. Here are a couple of options I might suggest, if I've sussed the meaning correctly, and correct me if I'm wrong:


 * Units in tooltip: ± ←  hover!


 * Units up front: ±% ←  hover!

I wrapped the first option in a couple of non-breakable spaces to make it easier to hover over the (on my system) narrow ± character.

Thanks! Felice Enellen (talk) 15:05, 6 October 2020 (UTC)
 * ✅. I have implemented a version of this request, modifying the language a bit to make it clear that the change is in the value, not a percentage change in a percent value (expressing percentage changes can get ambiguous). – Jonesey95 (talk) 15:16, 6 October 2020 (UTC)
 * Oh wow, that was quick, I was over in the sandbox setting up an example for you. Thanks! :) Felice Enellen (talk) 15:17, 6 October 2020 (UTC)

Template-protected edit request on 12 October 2020 for Template:Election box begin
There is no need for the extra css styling to the table captions of Election box begin and Election box begin no change. Using simply  suffices per MOS:DTAB.


 * Current:


 * Proposed:

- Brojam (talk) 04:17, 12 October 2020 (UTC)
 * I created a test case to show this difference at Template:Election box/testcases. – Jonesey95 (talk) 05:02, 12 October 2020 (UTC)

This would be a sensible and welcome change. The current style looks rather goofy on mobile (where wikitables are styled differently). 5910 C (talk) 23:47, 22 January 2021 (UTC)

Turnout
Should the turnout figure include spoiled and rejected ballots? Hairy Dude (talk) 14:29, 20 May 2021 (UTC) Additionally, does the majority percentage mean the size of the majority as a proportion of the winning vote or as a proportion of the turnout? Hairy Dude (talk) 14:43, 20 May 2021 (UTC)

Converting to compact election box
Good evening

A discussion over at Wikipedia_talk:WikiProject_Politics_of_the_United_Kingdom has moved to potentially forcing all election boxes being converted to the compact election box. If this is of interest to you please join in the debate and (somewhat unofficial) consultation. doktorb wordsdeeds 18:03, 13 June 2021 (UTC)

Template-protected edit request on 28 August 2021
These two edits should be reverted:. The width minimum kept the columns lined up when multiple election boxes are stacked, such as at 2020 Colorado House of Representatives election. ― Tartan357  Talk 22:43, 28 August 2021 (UTC)
 * ✅ Elli (talk &#124; contribs) 19:09, 29 August 2021 (UTC)

Accessibility: caption, row headers
Instead of styling the title parameter as a multi-column row above what should be the row with the column headings, please style the table caption in the wikitable-standard way. The column headings can then appear as the proper column headings they are. That is, please change:

to

Also, while you're in there, please add "plainrowheaders" to the table class (i.e. . I hope to get the  template changed to emit   for the row headers, and if successful, people will almost certainly complain about the centered bold labels on each row, and plainrowheaders will avoid that. If  is  changed, well, plainrowheaders will do no harm in the "begin" templates, causing no visible effect. Thanks,&mdash; JohnFromPinckney (talk / edits) 18:01, 11 November 2021 (UTC)
 * I've added the  class. As for the title formatting, while I agree with your proposed changes, please establish a consensus for this alteration before using the  template. These templates have tens of thousands of transclusions, and I think substantially changing how the title looks (styled like table header to regular title) requires at least no opposition.  Tol  (talk &#124; contribs) @ 18:47, 18 November 2021 (UTC)
 * @JohnFromPinckney (courtesy ping) Tol  (talk &#124; contribs) @ 19:03, 18 November 2021 (UTC)

Illinois political parties not formatted
I just noticed recently that Illinois Republican Party and Democratic Party of Illinois were showing up unformatted instead of the usual Republican and Democratic. Not sure if this is the result of a mistake or intentionally done, just wanting to find out.

BWellsOdyssey (talk) 20:26, 30 November 2021 (UTC)
 * Those two articles look OK to me. What is the specific problem? What are you expecting to see that you do not see? If the problem is in a different article, please link to it. We can't read your mind. – Jonesey95 (talk) 00:16, 1 December 2021 (UTC)
 * The 2018 Illinois House of Representatives election article uses both parties in the form a lot and should show the problem. BWellsOdyssey (talk) 19:13, 1 December 2021 (UTC)
 * by editing Module:Political party/I and Module:Political party/D. A link always helps. Thanks. – Jonesey95 (talk) 21:02, 1 December 2021 (UTC)

Shortname templates
As the result of a TfD earlier this year, all the /meta/shortname, color and abbrev templates were merged into a single module. In the process, the contents of much of the shortname templates has been moved into the abbrev field in the module. An RfC on this and its potential impact has been started on the module's talkpage. Input from WikiProject members is welcome. Cheers, Number   5  7  20:08, 4 December 2021 (UTC)

How do I add a reference to an election box?
Greetings and felicitations. I'm unfamiliar with this (family of) template(s) and I don't see a way to include references in them for an entire election. E.g., as I did here for the Czech koruna's historic rates. Is there a way, and if not, would someone please add one? —DocWatson42 (talk) 03:11, 25 December 2021 (UTC)
 * Have you tried putting your ref at the end of the title parameter of election box begin? One way to look for examples of how templates are used is to click on the template, then click on What links here on the left side, then click on a few articles. I did that and found Aberavon (UK Parliament constituency) with my first click. – Jonesey95 (talk) 06:56, 25 December 2021 (UTC)

Template-protected edit request on 28 March 2022
Replace  on line 11 of Template:Election box candidate with party link, with  -MPGuy2824 (talk) 08:52, 28 March 2022 (UTC)
 * A better idea to fix the problem is to use twice:  . 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)
 * Red question icon with gradient background.svg 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 &numsp;- 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)