# Template talk:Ballots

## Formats[edit | edit source]

Various formats that I've seen:

- 6: A>B
- 1: A>C>H>D>B>G>F>E>L>I>K>J
- 6: C>D
- 3: E>A>C>H>D>B
- 3: E>B>D>C>A
- 2: E>F>G>H>A>B
- 2: E>G>F>H>B>C
- 4: F>D>G>H>A
- 1: F>G>E>H>B>D>C>A>L
- 4: G>B>F>H>C
- 1: H>G>F>E>D>C>B>J>I>K>L>A
- 9: H>G>F>E>D>C>B>L>I>J>K>A
- 10: K>J>I>L>A>B>C>D>E>F>G>H

- 100: Escher
- 110: Andre>Nader>Gore
- 18: Nader>Gore
- 21: Gore>Nader
- 6: Gore>Bush
- 45: Bush>Gore

- 33: A>B>>C
- 22: B>A>>C
- 45: C>>A=B

49 Z 26 Y 25 X>Y 3 X

or

51 A>C 47 B 2 C 5 D

# of voters | Preferences |
---|---|

1 | A > B > C > L |

1 | A > B > L > C |

3 | B > C > A > L |

1 | C > L > A > B |

1 | L > A > B > C |

2 | L > C > A > B |

https://rangevoting.org/SF07HumanRead.txt

67590: GAVINNEWSOM > UNDERVOTES > UNDERVOTES 4236: UNDERVOTES > UNDERVOTES > UNDERVOTES 3998: GAVINNEWSOM > WILMAPANG > UNDERVOTES 3825: HAROLDMHOOGASIAN > UNDERVOTES > UNDERVOTES 2566: GAVINNEWSOM > HAROLDMHOOGASIAN > UNDERVOTES 2539: WILMAPANG > UNDERVOTES > UNDERVOTES 2255: QUINTINMECKE > AHIMSAPORTERSUMCHAI > JOHNRINALDI 1715: GAVINNEWSOM > WILMAPANG > AHIMSAPORTERSUMCHAI 1213: GAVINNEWSOM > HAROLDMHOOGASIAN > WILMAPANG ...

https://rangevoting.org/DublinNorthSorted.txt

800 : M>F>D>A 680 : D>F>M>A 506 : F>M>D>A 486 : M>D>F>A 429 : F>D>M>A 367 : D>M>F>A 343 : J>A 278 : B>A ...

https://rangevoting.org/JLburl09.txt

---the votes--- 840: W 355: K>M 326: K 271: W>H 256: W>M 234: K>M>H 200: M>K 178: M ...

45 A 28 B>C 27 C>B 100

Majority has class "votesABC" which I don't know what that is:

- 31 A > B > C
- 29 B > A > C
- 20 C > B > A
- 20 C > A > B

- 15: A>B>C>D
- 51: A>C>B>D
- 4: D>A>B>C
- 4: D>A>C>B
- 4: D>B>A>C
- 4: D>B>C>A
- 4: D>C>A>B
- 4: D>C>B>A

- 5: A>B>C>D
- 17: A>C>B>D
- 8: D

40 A>B | C (i.e. only C is disapproved) 25 B | A>C 35 C | A>B 100

Do we have a preference?

I think the value of being able to copy and paste into existing ranked ballot calculators is important, and those all have the same format:

http://www.ericgorr.net/condorcet/

12:0>3>2>1 3:1>0>2>3 25:1>2>0>3 21:2>1>0>3 12:3>0>1>2 21:3>0>2>1 6:3>1>0>2

40:3>2 # 40 ballots where Martha is preferred over Sally (and both implicitly over Joe) 9:2>3 # 9 ballots, Sally over Martha (over Joe) 16:2>1 # 16 ballots, Sally over Joe (over Martha) 20:1=2 # 20 ballots, Joe and Sally tied, both preferred over Martha 15:1>2 # 15 ballots, Joe over Sally (over Martha)

http://www.cs.angelo.edu/~rlegrand/rbvote/calc.html

# 1980 American presidential election 45:Reagan>Anderson>Carter 20:Anderson>Carter>Reagan 35:Carter>Anderson>Reagan

So I think the recommended format would be just a pre tag and spaces for formatting and colons for the multipliers, and we should make it as pretty as possible within those confines:

100: Escher 110: Andre > Nader > Gore 18: Nader > Gore 21: Gore > Nader 6: Gore > Bush 45: Bush > Gore

with template formatting:

100: Escher 110: Andre > Nader > Gore 18: Nader > Gore 21: Gore > Nader 6: Gore > Bush 45: Bush > Gore

Though the unordered list with colons can be copied and pasted too:

- 100: Escher
- 110: Andre>Nader>Gore
- 18: Nader>Gore
- 21: Gore>Nader
- 6: Gore>Bush
- 45: Bush>Gore

See also https://github.com/pivot-libre/pivot-libre.github.io/blob/master/bff.md is a file format proposal. See also the comments on it: https://github.com/pivot-libre/pivot-libre.github.io/issues — Psephomancy (talk) 20:27, 22 February 2020 (UTC)

- Would it be possible to automatically add ":" if they're missing (e.g. turn "51 A" into "51: A"), add spaces (e.g. "51:A>B" to "51: A > B" or "51: A>B"), and autoindent/justify the numbers? Kristomun (talk) 00:19, 23 February 2020 (UTC)

- Possibly with Lua, but I don't know how to use that yet. — Psephomancy (talk) 00:33, 23 February 2020 (UTC)

The style sheet is stored in Template:Ballots/styles.css if anyone wants to tweak it. I'm not a web designer. — Psephomancy (talk) 00:34, 23 February 2020 (UTC)

## It doesn't like equals signs[edit | edit source]

{{{1}}}

11 A>B>C 5 B>A>C 9 C>B>A

The least annoying solution seems to be:

11 A>B>C 5 B>A=C 9 C>B>A

and this is done automatically by VisualEditor. — Psephomancy (talk) 00:32, 23 February 2020 (UTC)