Template talk:Election results-STV
Appearance
This template was considered for deletion on 31 July 2024. The result of the discussion was "keep". |
First attempt to use template
[edit]Here's my first attempt at using the template:
Candidate | Party | First count | Second count | Third count | ||||
---|---|---|---|---|---|---|---|---|
Votes | % | Votes | % | Votes | % | |||
Bob Kiss | Progressive | 2,981 | 33.76 | 4,313 | 51.50 | |||
Kurt Wright | Republican | 3,294 | 37.31 | 4,061 | 48.50 | |||
Andy Montroll | Democrat | 2,554 | 28.93 | |||||
Dan Smith | Independent | |||||||
Total | 8,829 | 100.00 | 8,374 | 100.00 | ||||
Source: ? |
For some reason, though, the first column seems to be missing; I'm probably using the template wrong, but I'd like any help I could get :)
(Minor improvement: It would be great if this could automatically calculate the row for the exhausted ballots using the difference.) –Sincerely, A Lime 03:39, 18 May 2024 (UTC)
- The first column doesn't show up because you have used the code
votes1_1
. It should be justvotes1
. - Re exhausted ballots, it is possible to do this, but I think will require quite a bit of code. Cheers, Number 57 16:28, 18 May 2024 (UTC)
- Got it, I can do that, thanks :) Might make sense to alias `votes1_x` to `votes1`, although I don't have any experience with WP templates so I'm not sure how hard that would be.
- Where can I find the code to try and take a crack at adding exhausted ballots myself? –Sincerely, A Lime 17:44, 18 May 2024 (UTC)