Jump to content

Template talk:Election results-STV

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

First attempt to use template[edit]

Here's my first attempt at using the template:

CandidatePartyFirst countSecond countThird count
Votes%Votes%Votes%
Bob KissProgressive2,98133.764,31351.50
Kurt WrightRepublican3,29437.314,06148.50
Andy MontrollDemocrat2,55428.93
Dan SmithIndependent
Total8,829100.008,374100.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)[reply]

The first column doesn't show up because you have used the code votes1_1. It should be just votes1.
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)[reply]
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)[reply]