Template talk:Election results
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
|
|
||
This page has archives. Sections older than 180 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Add notes in the "votes" column
editI am currently editing the 1989 Polish parliamentary election article, and the results table has three different columns - one for the constituency seats reserved for independent candidates (which included Solidarity's candidates, since it had no direct nomination rights), one for the constituency seats reserved for PZPR and its satellite parties, and one for the national list (which was reserved entirely for the PZPR bloc). I would like to add a "did not contest" note in italics where the votes column would otherwise go, but the template replaces every text string with 0. Is there a way to add those notes? Glide08 (talk) 22:47, 14 May 2024 (UTC)
I'm editing the same article. In the end we want to make it look something like this:
Alliance | Party | Constituency (contested) | Constituency (reserved) | National list | Totals | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Votes | % | Seats | Votes | % | Seats | Votes | % | Seats | |||||
Patriotic Movement for National Rebirth | |||||||||||||
Polish United Workers' Party | Did not contest | 22,734,348 | 59.26 | 156 | 132,845,385 | 47.19 | 17 | 173 | |||||
United People's Party | 8,865,102 | 23.11 | 67 | 74,921,230 | 26.62 | 9 | 76 | ||||||
Democratic Party | 3,961,124 | 10.32 | 24 | 24,814,903 | 8.82 | 3 | 27 | ||||||
PAX Association | 1,216,681 | 3.17 | 7 | 24,269,761 | 8.62 | 3 | 10 | ||||||
Christian-Social Union | 907,901 | 2.37 | 6 | 16,601,896 | 5.90 | 2 | 8 | ||||||
Polish Catholic-Social Association | 681,199 | 1.78 | 4 | 8,029,911 | 2.85 | 1 | 5 | ||||||
Independents | 6,591,014 | 28.71 | 0 | Did not contest | 0 | ||||||||
Solidarity Citizens' Committee | Independents | 16,369,237 | 71.29 | 161 | 161 | ||||||||
Total | 22,960,251 | 100.00 | 161 | 38,366,355 | 100.00 | 264 | 281,483,086 | 100.00 | 35 | 460 | |||
Total voters | 17,053,171 | 100.00 | |||||||||||
Registered voters/turnout | 27,362,313 | 62.32 |
Add a fourth round
editI was fiddling with the Template in the sandbox, attempting to recreate the results of the 2022 Italian general election results wikitable, but I noticed that there's no option to add a fourth round like the one seen in the table below. I think it would be worthwhile to have that option for elections like the Italian ones where there are more than 3 sources of votes/seats that are independent from each other.
- TBH I think the table below should not be separated into four – the Aosta Valley is a first-past-the-post constituency and should be included in the FPTP column. Number 57 21:33, 18 June 2024 (UTC)
Coalition | Party | Proportional | First-past-the-post | Aosta Valley | Overseas | Total seats | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Votes | % | Seats | Votes | % | Seats | Votes | % | Seats | Votes | % | Seats | |||||
Centre-right | Brothers of Italy | 7,302,517 | 26.00 | 69 | 12,300,244 | 43.79 | 49 | 16,016 | 28.80 | – | 281,949 | 26.00 | 1 | 119 | ||
League | 2,464,005 | 8.77 | 23 | 42 | – | 1 | 66 | |||||||||
Forza Italia | 2,278,217 | 8.11 | 22 | 23 | – | – | 45 | |||||||||
Us Moderates | 255,505 | 0.91 | – | 7 | – | — | — | — | 7 | |||||||
Centre-left | Democratic Party – IDP | 5,356,180 | 19.07 | 57 | 7,337,975 | 26.13 | 8 | — | — | — | 305,759 | 28.20 | 4 | 69 | ||
Greens and Left Alliance | 1,018,669 | 3.63 | 11 | 1 | — | — | — | 52,994 | 4.89 | – | 12 | |||||
More Europe | 793,961 | 2.83 | – | 2 | — | — | — | 29,971 | 2.76 | – | 2 | |||||
Civic Commitment | 169,165 | 0.60 | – | 1 | — | — | — | 11,590 | 1.07 | – | 1 | |||||
Five Star Movement | 4,333,972 | 15.43 | 41 | 4,333,972 | 15.43 | 10 | — | — | — | 93,338 | 8.61 | 1 | 52 | |||
Action – Italia Viva | 2,186,669 | 7.79 | 21 | 2,186,669 | 7.79 | – | — | — | — | 60,499 | 5.58 | – | 21 | |||
South Tyrolean People's Party – PATT | 117,010 | 0.42 | 1 | 117,010 | 0.42 | 2 | — | — | — | — | — | — | 3 | |||
South calls North | 212,685 | 0.76 | – | 212,685 | 0.76 | 1 | — | — | — | — | — | — | 1 | |||
Aosta Valley | — | — | — | — | — | — | 20,763 | 38.63 | 1 | — | — | — | 1 | |||
Associative Movement of Italians Abroad | — | — | — | — | — | — | — | — | — | 141,356 | 13.04 | 1 | 1 | |||
Others | 1,599,227 | 5.68 | – | 1,599,227 | 5.68 | – | 16,967 | 32.57 | – | 106,847 | 9.85 | – | – | |||
Total | 28,087,782 | 100 | 245 | 28,087,782 | 100 | 146 | 53,746 | 100 | 1 | 1,084,303 | 100 | 8 | 400 |
Percentages
editThe template shows the percentages without counting blank votes. This in turn shows wrong results AlexBobCharles (talk) 08:48, 12 July 2024 (UTC)
- Blank votes can be added in cases where they are considered valid votes (such as in Colombian presidential elections). See, for example, here. However, this should only be done when blank votes are deemed to be valid votes (i.e. NOTA). Cheers, Number 57 21:57, 12 July 2024 (UTC)
Night mode: overall statistics barely visible
editLabels of overall statistics are barely visible. This applies to things like the labels of "Valid votes", "Invalid votes", "Blank votes". These labels are set with "background: inherit". The night mode extension applies an #202122 text color of anything with an background color, in the belief that the background color is different than black. In this case though, the background is dark, so the text is barely visible. Snævar (talk) 18:20, 15 July 2024 (UTC)
Can you guys make election results template for Serbian Wikipedia?
editI'll help into making it for Serbian Wikipedia. “Template:Election results” will be “Шаблон:Изборни резултати” (Infobox will be Инфокутија). Votes are “Гласови”, Seats are “Мандати” etc. Hadjnix (talk) 09:05, 19 July 2024 (UTC)
ipct1, ipct2 don't seem to work
editIn 2024 Venezuelan presidential election#Results announced by the CNE and 2024 Venezuelan presidential election#Results announced by the PUD there is currently a big problem of poor sourcing. How can we prevent the template from calculating totals when it's too early?
For the PUD version, I tried inserting ipct1= and ipct2 values, but this didn't override the automatic calculations of percentages, and of writing a total. Feel free to edit my sandbox with User:Boud/sandbox#election results template directly if that's faster than explaining. Boud (talk) 11:35, 30 July 2024 (UTC)
- The ipct1, ipct2 variables work,
but only if the count, not total count, is absent. This is a documentation bug.Still, itwould beis (edit) nice to be able to have the official counts and percentages while blocking the total. Boud (talk) 12:26, 30 July 2024 (UTC)- The doc could maybe still be improved slightly, but the functions are fine. Boud (talk) 12:42, 30 July 2024 (UTC)
- Done Boud (talk) 12:47, 30 July 2024 (UTC)
- The doc could maybe still be improved slightly, but the functions are fine. Boud (talk) 12:42, 30 July 2024 (UTC)