Template:Stv-ballot/sandbox
Appearance
This is the template sandbox page for Template:Stv-ballot (diff). |
This is a ballot form for a ballot using the single transferable vote and instant run-off method of voting.
Usage
[edit]A sample ballot can be cast as follows:
* {{stv-ballot|A=2|B=3|C=1|sign=~~~~}}
This would produce the following output:
- C A B Jimbo Wales (talk) 00:01, 1 April 2009 (UTC)
The same ballot could be cast as follows:
* {{stv-ballot|C=1|A=2|B=3|sign=~~~~}}
Up to 26 options can be ranked using the template (A to Z). Options must be stated as capital letters e.g. A=1 not a=1. There is no requirement to rank all options. There is no intelligent checking of ballots for errors except that if a user leaves blank the a signature field the ballot will produce a warning.
The explicit sign parameter is required for signatures that contain equal-to signs (for example as part of HTML markup). Otherwise, the same ballot could be cast as follows:
* {{stv-ballot|C=1|A=2|B=3|~~~~}}