Template talk:Ballots: Difference between revisions

link to style sheet
No edit summary
(link to style sheet)
 
(6 intermediate revisions by 2 users not shown)
Line 1:
== Formats ==
Various formats that I've seen:
 
Line 178 ⟶ 179:
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:
Line 190 ⟶ 202:
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)