Template talk:Infobox election

Wikipedia

Make first round field not dependent on primary

Currently the code in Module:Infobox election only shows a "First round" field if the election type is set to primary. Should this check be removed? DimensionalFusion (talk · she/her) 15:49, 2 September 2025 (UTC)

Adding a second map image for general elections

Would make it MUCH easier to insert maps for both presidential and parliamentary results. WeaponizingArchitecture | yell at me 00:53, 5 September 2025 (UTC)

This infobox is often too bloated as it is. Should we be encouraging that by implying we want more maps? We need to stop stuffing everything into the infobox, follow MOS:INFOBOXPURPOSE and remember we’ve got a whole article where we can display things. Bondegezou (talk) 06:12, 5 September 2025 (UTC)

Edit request 29 October 2025

Description of suggested change: Change the "first round" and "swing" fields such that, if inputted, the fields will show regardless of the type of election. Swings can exist in all election types except for primary (presidential, legislative, parliamentary, by-election), and this would have the effect that infoboxes with the presidential and by-election types would now be visible. The "first round" parameter would also be visible in all types, so it would now be visible outside of types set to "primary", same as the final round parameter.


Diff: As performed on sandbox DimensionalFusion (talk · she/her) 13:56, 29 October 2025 (UTC)

I'm not sure the change is necessary for swing; it is already able to be used for by-election articles (e.g. 2025 Caerphilly by-election). Swing is also not generally reported for presidential elections and I think the risk of allowing it to be shown means it will be, when it's probably not appropriate. Number 57 15:56, 29 October 2025 (UTC)
@Number 57 Swing is indeed shown in by-election articles, but not when by-election type is specified in the infobox. In 2025 Caerphilly by-election, the infobox type is parliamentary, not what it "should" be, which is by-election DimensionalFusion (talk · she/her) 10:00, 30 October 2025 (UTC)
 Not done. Please reactivate the request if and when consensus is reached. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:15, 8 December 2025 (UTC)
I see this has been reactivated. Rather than change it so it always appears, why not just change it so it appears for by-elections (as well as parliamentary ones). Number 57 15:08, 20 December 2025 (UTC)

Edit Request 12 November 2025

Description of Suggested Change: Add additional fields to the very bottom of the infobox for outgoing government/cabinet and parties and incoming government/cabinet and parties, and additionally make it optional to have an outgoing field but not an incoming one and vice versa for some of these fields. The issue this is trying to resolve is that the infobox currently allows you to compare the prime minister or the party/coalition/cabinet in power before and after an election, but not each of these things. A change would allow the infobox to adequately represent an incoming or outgoing Prime Minister (or similar), their party, and the government/cabinet/coalition they led. For instance, the 1948 Irish general election infobox currently lists the incoming Taoiseach as:

However in that election Fine Gael came to power with several other parties in the First Inter-Party Government, and they replaced a single-party majority government. In that case, the infobox should be better explaining the outcome of the election in terms of government formation. I think it would be best add 6 fields:

  • outgoing government title
  • incoming government title (these to be in bold similar to the title and posttitle fields)
  • outgoing government
  • incoming government
  • outgoing government parties
  • incoming government parties.

The reason for proposing all three fields is that this would give maximum flexibility for different political systems from different countries where various types of information are considered important. An example of the existing constraint is that the Netherlands elections list only the cabinet and parties involved, but mention nothing about the prime minister. I think it should be possible to do both. Grollum (talk) 13:53, 12 November 2025 (UTC)

Add role="presentation" on a layout table

More specifically, edit the

{{{!}} cellspacing="0" cellpadding="0" style="background:transparent; color: inherit; width:100%;"

line so that it becomes

{{{!}} role="presentation" cellspacing="0" cellpadding="0" style="background:transparent; color: inherit; width:100%;"

sapphaline (talk) 19:43, 9 December 2025 (UTC)

As I have requested before, please do not paste code blobs into the talk page; we have the sandbox and testcases pages for a very good reason. That aside, why does the sandbox have more changes than those mentioned here? --Redrose64 🌹 (talk) 20:55, 10 December 2025 (UTC)
Because I tested them and they appeared to break the template in some use cases, hence I don't want the live template to match the current sandbox version. sapphaline (talk) 12:25, 11 December 2025 (UTC)
Then we can't test it properly. Please make sure the sandbox contains exactly the desired future version, no more and no less. --Redrose64 🌹 (talk) 23:44, 11 December 2025 (UTC)
role="presentation" doesn't affect visual appearance but okay. sapphaline (talk) 09:00, 12 December 2025 (UTC)
 Done * Pppery * it has begun... 23:12, 12 December 2025 (UTC)

Edit request 6 January 2026

Description of suggested change: Removes the requirement for the first_round field to have primary election type, standardising it with the final_round field. Also adds 'by-election' as an allowed type for the swing field along with parliamentary and legislative.

Diff: As performed on sandbox. DimensionalFusion (talk · she/her) 14:13, 6 January 2026 (UTC)

 Done—Please check. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:01, 16 January 2026 (UTC)