• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Stv-ballot/sandbox

  • Language
  • Watch
  • View source
< Template:Stv-ballot
__EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Stv-ballot (diff).
Template documentation[view] [edit] [history] [purge]

This is a ballot form for a ballot using the single transferable vote and instant run-off method of voting.

Usage

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|~~~~}}

See also

  • Single transferable vote
The above documentation is transcluded from Template:Stv-ballot/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Stv-ballot/sandbox&oldid=5334242"
Last edited on 9 October 2011, at 19:57

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 9 October 2011, at 19:57.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop