Template talk:Gallagher index
Appearance
Votes & Seats
[edit]How about that this template can also calculate the percentages out of the seats and votes?
Template:Election results can this too Braganza (talk) 18:08, 4 June 2023 (UTC)
- @Kermanbob: Braganza (talk) 18:08, 4 June 2023 (UTC)
- @Number 57: since you were involved in the other template Braganza (talk) 13:34, 6 June 2023 (UTC)
- How are you envisaging using this template? Cheers, Number 57 16:46, 6 June 2023 (UTC)
- @Number 57: since you were involved in the other template Braganza (talk) 13:34, 6 June 2023 (UTC)
- {{Election results}}
Party | Votes | % | Seats | |
---|---|---|---|---|
Monegasque National Union | 72,602 | 89.63 | 24 | |
New Ideas for Monaco | 8,401 | 10.37 | 0 | |
Total | 81,003 | 100.00 | 24 |
- How its currently done
Party | Votes (%) | Seats (%) | Difference | Difference squared | |
---|---|---|---|---|---|
Monegasque National Union | 89.63% | 100.00% | 10.37 | 107.5369 | |
New Ideas for Monaco | 10.37% | 0.00% | -10.37 | 107.5369 | |
Total of differences squared | 215.0738 | ||||
Total / 2 | 107.5369 | ||||
Square root of (Total / 2): Gallagher Index result | 10.37 | ||||
The Gallagher Index ranges from 0 to 100. Low indexes (close to 0) are very proportionate, high indexes (20 or greater) are very disproportionate. |
- How I imagine it
Party | Votes (%) | Seats (%) | Difference | Difference squared | |
---|---|---|---|---|---|
Monegasque National Union | 72,602.00% | 24.00% | -72578 | 5267566084 | |
New Ideas for Monaco | 8,401.00% | 0.00% | -8401 | 70576801 | |
Total of differences squared | 5338142885 | ||||
Total / 2 | 2669071442.5 | ||||
Square root of (Total / 2): Gallagher Index result | 51663.06 | ||||
The Gallagher Index ranges from 0 to 100. Low indexes (close to 0) are very proportionate, high indexes (20 or greater) are very disproportionate. |
Maybe with an option were you can decide if you want to use percentages as before or votes like in Election results (like "|type="). Also the "|election=" could remain but should be optional.