Template talk:Ballots: Difference between revisions

link to style sheet
(Created page with "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 :...")
 
(link to style sheet)
 
(8 intermediate revisions by 2 users not shown)
Line 1:
== Formats ==
Various formats that I've seen:
 
Line 101 ⟶ 102:
100
----
[[Majority]] has class "votesABC" which I don't know what that is:
 
<div class="votesABC">
Line 168 ⟶ 169:
----
 
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.:
 
<pre class="ballotlist">
100: Escher
110: Andre > Nader > Gore
18: Nader > Gore
21: Gore > Nader
6: Gore > Bush
45: Bush > Gore
</pre>
 
with template formatting:
 
{{ballots|
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
— [[User:Psephomancy|Psephomancy]]&nbsp;([[User talk: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? [[User:Kristomun|Kristomun]] ([[User talk:Kristomun|talk]]) 00:19, 23 February 2020 (UTC)
 
:: Possibly with Lua, but I don't know how to use that yet. — [[User:Psephomancy|Psephomancy]]&nbsp;([[User talk: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. — [[User:Psephomancy|Psephomancy]]&nbsp;([[User talk:Psephomancy|talk]]) 00:34, 23 February 2020 (UTC)
 
== It doesn't like equals signs ==
 
{{ballots|
11 A>B>C
5 B>A=C
9 C>B>A
}}
 
{{ballots|
11 A>B>C
5 B>A>C
9 C>B>A
}}
 
The least annoying solution seems to be:
 
{{ballots|1=
11 A>B>C
5 B>A=C
9 C>B>A
}}
 
and this is done automatically by VisualEditor. — [[User:Psephomancy|Psephomancy]]&nbsp;([[User talk:Psephomancy|talk]]) 00:32, 23 February 2020 (UTC)