Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases.
On 1987 Chicago mayoral election, 1989 Chicago mayoral special election, 1991 Chicago mayoral election, and 1995 Chicago mayoral election, the Republican candidates, which weren't included before due to getting less than 5% of the vote and coming in third, were added to the infobox with the argument that there is longer the same consensus support that there once was to always employing a 5% cutoff. This is what Wikipedia:Five percent rule says on the matter "Several RFCs have established that third-party candidates must poll over five percent to be included in an infobox. The only exception is if only one candidate polls over five percent, in which case the second-place finisher may be included if determined appropriate by local consensus. This does not strictly apply to parliamentary elections, where other criteria may be used to include candidates if deemed appropriate." It doesn't indicate that opinions have changed, but there seems to be a bit of ambiguity, as it's not a third party that received less than 5% and didn't come in second. Should it be included or not? 2601:249:9301:D570:CC73:8E4F:4E6B:AB1B (talk) 01:05, 28 November 2024 (UTC)[reply]
I'm trying to figure out the best way to do this so I'm asking here: how do I use the leader field in elections? Unlike many parliamentary or presidential systems, the leader of a local political party within the context of UK council elections is usually decided after the election whereas in national elections it is decided before.
I'll give an example: for the 1981 Greater London Council election the article lists Andrew McIntosh as the leader of the Labour Party because he was the group leader before the election, but he was only leader until 24 hours after the election took place, when the Labour councillors elected a new group leader. So who do I list as the leader? DimensionalFusion (talk · she/her) 12:09, 5 March 2025 (UTC)[reply]
"The "leader" of each party is the person leading the party through that election
The by-election example given in the documentation (Template:Infobox election#By-election) could do with some updating, because it is noticeably sloppy: there's unnecessary explanatory text shoved into the top (not following how the parameter is supposed to be used), there's a boundary map (not a results map) in the infobox; Galloway's image is in landscape, throwing off the balance; and it doesn't abide by the 5% rule, either. This isn't just me nitpicking: boundary maps in the infobox are common for UK by-election articles (and only UK by-election articles), stubbornly reappearing despite efforts to get rid of them (full disclosure: by me), and I can't help but wonder one appearing in this example is part of the reason why.
The actual 2012 Bradford West by-election page shows a much cleaner infobox with none of these issues. Could an admin have that version ported over here? — Kawnhr (talk) 21:25, 11 March 2025 (UTC)[reply]
We should replace the parameter "ongoing" with better parameter. Election system is not the same in every countries. Also there can be unique results and aftermath the infobox needs to be updated on. So, I propose to replace "ongoing" with a new parameter named "status".
In status parameter, we can choose from several options – "ongoing", "completed", "cancelled", "annulled", "scheduled", "proposed" and "suspended". For example, if we put "cancelled" on the paramter then the date section will show the text "Cancelled" with the scheduled date with bracket (or we can omit the date as the election is cancelled).
We can also replace "date" with "start date" and "end date" as some election events are long and I think we should mention the complete date. For example, writing start and end date will show "START – END" in the date part of the infobox.
I believe adding these things are not so complex and will help readers to understand election topics more in Wikipedia. Mehedi Abedin 02:24, 26 March 2025 (UTC)[reply]
Got to be a way of fixing the text sandwiching because of massive width. We have thousands of pages that are an accessibility nightmare at 800px. We should ensure infoboxes are sized correctly so they don't push text unnecessarily so those with visual problems can still read the lead prose text. Moxy🍁 07:56, 17 April 2025 (UTC)[reply]
|upright=1.35
|upright=1.2
I have made a change in the sandbox to display the candidate images at a smaller size when there are three or more candidates. You can see the results at Template:Infobox election/testcases. As an example, on my screen, this 1997 election infobox goes from 490px wide to 390px wide. I believe that this change complies with the spirit of WP:IMGSIZELEAD, which suggests limiting lead images to 300px wide. The combined width of the three images is limited to 330px at the most, and usually renders at less than 300px.
I expect that this change may be controversial, since it significantly shrinks the size of many candidate images. I have not moved the code to the main template. We should probably seek wider comment if we wish to make this change.
Note that this does not affect pages using {{CSS image crop}}, as noted above. – Jonesey95 (talk) 18:50, 19 April 2025 (UTC)[reply]
|answered=
Could the template be edited to add a parameter for the first and final round, 2021 New York City Democratic mayoral primary has an example of how it is currently used, with 1data templates that are unnecessarily complicated and often not used on pages that they would be beneficial for. Yoblyblob (Talk) :) 21:13, 3 May 2025 (UTC)[reply]