Difference between revisions of "Template:Election box ranked choice first round ballots/testcases"

From blackwiki
Jump to navigation Jump to search
imported>DCary
(restore new format values)
imported>DCary
(base uses new format now)
Line 33: Line 33:
 
=== Testing main template ===
 
=== Testing main template ===
  
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | title = San Francisco mayoral election, 2011
+
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | title = San Francisco mayoral election, 2011 | format=new
| contvotes = 194,418 | contvotespercent = 98.6 | overvotes = 820 | overvotespercent = 0.42
+
| contvotes = 194418 | overvotes = 820 | undervotes = 2004 | contestballots = 197242 | registeredvoters = 464380
| undervotes = 2,004 | undervotespercent = 1.02 | contestballots = 197,242 | contestballotspercent = 100.00
 
| registeredvoters = <ref>http://www.sfelections.org/results/20111108/</ref>464,380
 
| contestturnoutpercent = 42.47
 
 
}}</nowiki></code>
 
}}</nowiki></code>
  
{{ {{BASEPAGENAME}} | title = San Francisco mayoral election, 2011
+
{{ {{BASEPAGENAME}} | title = San Francisco mayoral election, 2011 | format=new
| contvotes = 194,418 | contvotespercent = 98.6 | overvotes = 820 | overvotespercent = 0.42
+
| contvotes = 194418 | overvotes = 820 | undervotes = 2004 | contestballots = 197242 | registeredvoters = 464380
| undervotes = 2,004 | undervotespercent = 1.02 | contestballots = 197,242 | contestballotspercent = 100.00
 
| registeredvoters = <ref>http://www.sfelections.org/results/20111108/</ref>464,380
 
| contestturnoutpercent = 42.47
 
 
}}
 
}}
  
 
{{reflist}}
 
{{reflist}}

Revision as of 10:13, 9 December 2011

Basic test case

Testing sandbox version, new format

{{Election box ranked choice first round ballots/sandbox | title = San Francisco mayoral election, 2011 | format=new | contvotes = 194418 | overvotes = 820 | undervotes = 2004 | contestballots = 197242 | registeredvoters = 464380 }}

San Francisco mayoral election, 2011
First Round Ballot Summary
  Count
Share of
Contest
Ballots
Continuing Votes 194,418 Template:Rndpad%
Over Votes 820 Template:Rndpad%
Under Votes 2,004 Template:Rndpad%
Contest Ballots 197,242 Template:Rndpad%
Registered Voters 464,380
Contest Turnout Template:Rndpad%


Testing sandbox version, old format

{{Election box ranked choice first round ballots/sandbox | title = San Francisco mayoral election, 2011 | contvotes = 194,418 | contvotespercent = 98.6 | overvotes = 820 | overvotespercent = 0.42 | undervotes = 2,004 | undervotespercent = 1.02 | contestballots = 197,242 | contestballotspercent = 100.00 | registeredvoters = <ref>http://www.sfelections.org/results/20111108/</ref>464,380 | contestturnoutpercent = 42.47 }}

San Francisco mayoral election, 2011
First Round Ballot Summary
  Count
Share of
Contest
Ballots
Continuing Votes 194,418 Template:Rndpad%
Over Votes 820 Template:Rndpad%
Under Votes 2,004 Template:Rndpad%
Contest Ballots 197,242 Template:Rndpad%
Registered Voters [1]464,380
Contest Turnout Template:Rndpad%

Testing main template

{{Election box ranked choice first round ballots | title = San Francisco mayoral election, 2011 | format=new | contvotes = 194418 | overvotes = 820 | undervotes = 2004 | contestballots = 197242 | registeredvoters = 464380 }}

San Francisco mayoral election, 2011
First Round Ballot Summary
Count Share of
Contest
Ballots
Continuing Votes 194,418 Template:Rndpad%
Over Votes 820 Template:Rndpad%
Under Votes 2,004 Template:Rndpad%
Contest Ballots 197,242 Template:Rndpad%
Registered Voters 464,380
Contest Turnout Template:Rndpad%