Template talk:Election box/Archive 5

edit

Please revert this edit by Jonesey95. –MJLTalk 02:43, 2 October 2020 (UTC)Reply

See Hillary Clinton#2016 presidential electionMJLTalk 02:45, 2 October 2020 (UTC)Reply
  DoneJonesey95 (talk) 03:49, 2 October 2020 (UTC)Reply

Template-protected edit request on 6 October 2020 for Template:Election box begin

edit

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!
{{H:title|Percent change since last election| ± }}
  • Units up front: ±%  ←  hover!
{{H:title|Change since last election|±%}}

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)Reply

  Done. 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)Reply
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)Reply

Template-protected edit request on 12 October 2020 for Template:Election box begin

edit

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:
|+ style="background-color:#f2f2f2;margin-bottom:-1px;border:1px solid #aaa;padding:.2em .4em" | {{{title}}}
Proposed:
|+ {{{title}}}

- Brojam (talk) 04:17, 12 October 2020 (UTC)Reply

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

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)Reply

Turnout

edit

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)Reply

Converting to compact election box

edit

Good evening

A discussion over at Wikipedia_talk:WikiProject_Politics_of_the_United_Kingdom#Coalition_Liberals/Coalition_Conservatives 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)Reply

Template-protected edit request on 28 August 2021

edit

These two edits should be reverted: [1] [2]. The width minimum kept the columns lined up when multiple election boxes are stacked, such as at 2020 Colorado House of Representatives election#Detailed results. ― Tartan357 Talk 22:43, 28 August 2021 (UTC)Reply

  Done Elli (talk | contribs) 19:09, 29 August 2021 (UTC)Reply

Accessibility: caption, row headers

edit

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:

|+ style="background-color:#f2f2f2;margin-bottom:-1px;border:1px solid #aaa;padding:.2em .4em" | {{{title}}}

to

|+ {{{title}}}

Also, while you're in there, please add "plainrowheaders" to the table class (i.e. {| class="wikitable plainrowheaders". I hope to get the {{Election box candidate}} template changed to emit ! scope="row" 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 {{Election box candidate}} is not changed, well, plainrowheaders will do no harm in the "begin" templates, causing no visible effect. Thanks,— JohnFromPinckney (talk / edits) 18:01, 11 November 2021 (UTC)Reply

  Partly done: I've added the plainrowheaders class. As for the title formatting, while I agree with your proposed changes, please establish a consensus for this alteration before using the {{edit template-protected}} 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 | contribs) @ 18:47, 18 November 2021 (UTC)Reply
@JohnFromPinckney (courtesy ping) Tol (talk | contribs) @ 19:03, 18 November 2021 (UTC)Reply

Illinois political parties not formatted

edit

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)Reply

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)Reply
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)Reply
  Fixed by editing Module:Political party/I and Module:Political party/D. A link always helps. Thanks. – Jonesey95 (talk) 21:02, 1 December 2021 (UTC)Reply

Shortname templates

edit

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 57 20:08, 4 December 2021 (UTC)Reply

How do I add a reference to an election box?

edit

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)Reply

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)Reply

Template-protected edit request on 28 March 2022

edit

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

edit

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

Merged Parties

edit

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

Hold i think
Benawu2 (talk) 21:49, 26 January 2023 (UTC)Reply

Manually adding color?

edit

Im trying to make an election box where one candidate ran as both a Republican and a Democrat, however there is no option to put a party link down along with the proper color. I have been trying to manually add the color #6004A4 but I can't find any way to do so. Could someone help point me in the right direction? Scu ba (talk) 16:55, 26 January 2023 (UTC)Reply

Well I made the article. 2013 Allentown mayoral election. If anyone would be willing to look at that election box and see what I did wrong that would be helpful. Scu ba (talk) 23:53, 26 January 2023 (UTC)Reply