Difference between revisions of "Template:Election box ranked choice begin/testcases"

From blackwiki
Jump to navigation Jump to search
imported>DCary
(correction)
imported>GoldRingChip
 
Line 7: Line 7:
 
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>/sandbox | title=Alcatraz mayor, 1935 }}</nowiki><br /><br /><nowiki>
 
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>/sandbox | title=Alcatraz mayor, 1935 }}</nowiki><br /><br /><nowiki>
 
{{Election box ranked choice candidate with party link </nowiki><br /><nowiki>
 
{{Election box ranked choice candidate with party link </nowiki><br /><nowiki>
| party = Republican Party (United States) | candidate = [[Aaron Adimsan]] </nowiki><br /><nowiki>
+
| party = Republican Party (US) | candidate = [[Aaron Adimsan]] </nowiki><br /><nowiki>
 
| maxround=2 | maxvotes=1120 | maxvotespercent=56.00 | r1votes=750 | fullwidthvotes=1200 </nowiki><br /><nowiki>
 
| maxround=2 | maxvotes=1120 | maxvotespercent=56.00 | r1votes=750 | fullwidthvotes=1200 </nowiki><br /><nowiki>
 
}} </nowiki><br /><br /><nowiki>
 
}} </nowiki><br /><br /><nowiki>
Line 15: Line 15:
 
{{{{BASEPAGENAME}}/sandbox | title=Alcatraz mayor, 1935 }}
 
{{{{BASEPAGENAME}}/sandbox | title=Alcatraz mayor, 1935 }}
 
{{Election box ranked choice candidate with party link/sandbox  
 
{{Election box ranked choice candidate with party link/sandbox  
| party = Republican Party (United States) | candidate = [[Aaron Adimsan]]  
+
| party = Republican Party (US) | candidate = [[Aaron Adimsan]]  
 
| maxround=2 | maxvotes=1120 | maxvotespercent=56.00 | r1votes=750 | fullwidthvotes=1200  
 
| maxround=2 | maxvotes=1120 | maxvotespercent=56.00 | r1votes=750 | fullwidthvotes=1200  
 
}}
 
}}
Line 24: Line 24:
 
{{{{BASEPAGENAME}}/sandbox | title=Alcatraz mayor, 1935 }}
 
{{{{BASEPAGENAME}}/sandbox | title=Alcatraz mayor, 1935 }}
 
{{Election box ranked choice candidate with party link/sandbox  
 
{{Election box ranked choice candidate with party link/sandbox  
| party = Republican Party (United States) | candidate = [[Aaron Adimsan]]  
+
| party = Republican Party (US) | candidate = [[Aaron Adimsan]]  
 
| maxround=2 | maxvotes=1,120 | maxvotespercent=56.00 | r1voteswidth=25.00ex | transfervoteswidth=12.33ex  
 
| maxround=2 | maxvotes=1,120 | maxvotespercent=56.00 | r1voteswidth=25.00ex | transfervoteswidth=12.33ex  
 
}}
 
}}
Line 33: Line 33:
 
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | title=Alcatraz mayor, 1935 }}</nowiki><br /><br /><nowiki>
 
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki> | title=Alcatraz mayor, 1935 }}</nowiki><br /><br /><nowiki>
 
{{Election box candidate ranked choice with party link </nowiki><br /><nowiki>
 
{{Election box candidate ranked choice with party link </nowiki><br /><nowiki>
| party = Republican Party (United States) | candidate = [[Aaron Adimsan]] </nowiki><br /><nowiki>
+
| party = Republican Party (US) | candidate = [[Aaron Adimsan]] </nowiki><br /><nowiki>
 
| maxround=2 | maxvotes=1,120 | maxvotespercent=56.00 | r1voteswidth=25.00ex | transfervoteswidth=12.33ex </nowiki><br /><nowiki>
 
| maxround=2 | maxvotes=1,120 | maxvotespercent=56.00 | r1voteswidth=25.00ex | transfervoteswidth=12.33ex </nowiki><br /><nowiki>
 
}} </nowiki><br /><br /><nowiki>
 
}} </nowiki><br /><br /><nowiki>
Line 41: Line 41:
 
{{ {{BASEPAGENAME}} | title=Alcatraz mayor, 1935 }}
 
{{ {{BASEPAGENAME}} | title=Alcatraz mayor, 1935 }}
 
{{Election box candidate ranked choice with party link/sandbox  
 
{{Election box candidate ranked choice with party link/sandbox  
| party = Republican Party (United States) | candidate = [[Aaron Adimsan]]  
+
| party = Republican Party (US) | candidate = [[Aaron Adimsan]]  
 
| maxround=2 | maxvotes=1,120 | maxvotespercent=56.00 | r1voteswidth=25.00ex | transfervoteswidth=12.33ex  
 
| maxround=2 | maxvotes=1,120 | maxvotespercent=56.00 | r1voteswidth=25.00ex | transfervoteswidth=12.33ex  
 
}}
 
}}
Line 52: Line 52:
 
}}
 
}}
 
{{Template:Election box ranked choice candidate with party link/sandbox
 
{{Template:Election box ranked choice candidate with party link/sandbox
| party = Democratic Party (United States)
+
| party = Democratic Party (US)
 
| candidate = [[Ed Lee (politician)|Ed Lee]] ([[incumbent]])
 
| candidate = [[Ed Lee (politician)|Ed Lee]] ([[incumbent]])
 
| maxround=12 | maxvotes=84457 | maxvotespercent=59.64 | r1votes=59775 | fullwidthvotes=85000
 
| maxround=12 | maxvotes=84457 | maxvotespercent=59.64 | r1votes=59775 | fullwidthvotes=85000
 
}}
 
}}
 
{{Template:Election box ranked choice candidate with party link/sandbox
 
{{Template:Election box ranked choice candidate with party link/sandbox
| party = Democratic Party (United States)
+
| party = Democratic Party (US)
 
| candidate = [[John Avalos]]
 
| candidate = [[John Avalos]]
 
| maxround=12 | maxvotes=57160 | maxvotespercent=40.36 | r1votes=37445 | fullwidthvotes=85000
 
| maxround=12 | maxvotes=57160 | maxvotespercent=40.36 | r1votes=37445 | fullwidthvotes=85000
Line 67: Line 67:
 
}}
 
}}
 
{{Template:Election box ranked choice candidate with party link/sandbox
 
{{Template:Election box ranked choice candidate with party link/sandbox
| party = Republican Party (United States)
+
| party = Republican Party (US)
 
| candidate = Wilma Pang
 
| candidate = Wilma Pang
 
| maxround=3 | maxvotes=469 | maxvotespercent=0.24 | r1votes=444 | fullwidthvotes=85000
 
| maxround=3 | maxvotes=469 | maxvotespercent=0.24 | r1votes=444 | fullwidthvotes=85000
Line 88: Line 88:
 
}}
 
}}
 
{{Template:Election box ranked choice candidate with party link/sandbox
 
{{Template:Election box ranked choice candidate with party link/sandbox
| party = Democratic Party (United States)
+
| party = Democratic Party (US)
 
| candidate = [[Ed Lee (politician)|Ed Lee]] ([[incumbent]])
 
| candidate = [[Ed Lee (politician)|Ed Lee]] ([[incumbent]])
 
| maxround=12 | maxvotes=84,457 | maxvotespercent=59.64 | r1voteswidth=28.13ex | transfervoteswidth=11.61ex  
 
| maxround=12 | maxvotes=84,457 | maxvotespercent=59.64 | r1voteswidth=28.13ex | transfervoteswidth=11.61ex  
 
}}
 
}}
 
{{Template:Election box ranked choice candidate with party link/sandbox
 
{{Template:Election box ranked choice candidate with party link/sandbox
| party = Democratic Party (United States)
+
| party = Democratic Party (US)
 
| candidate = [[John Avalos]]
 
| candidate = [[John Avalos]]
 
| maxround=12 | maxvotes=57,160 | maxvotespercent=40.36 | r1voteswidth=17.62ex | transfervoteswidth=9.28ex  
 
| maxround=12 | maxvotes=57,160 | maxvotespercent=40.36 | r1voteswidth=17.62ex | transfervoteswidth=9.28ex  
Line 103: Line 103:
 
}}
 
}}
 
{{Template:Election box ranked choice candidate with party link/sandbox
 
{{Template:Election box ranked choice candidate with party link/sandbox
| party = Republican Party (United States)
+
| party = Republican Party (US)
 
| candidate = Wilma Pang
 
| candidate = Wilma Pang
 
| maxround=3 | maxvotes=469 | maxvotespercent=0.24 | r1voteswidth=0.21ex | transfervoteswidth=0.01ex  
 
| maxround=3 | maxvotes=469 | maxvotespercent=0.24 | r1voteswidth=0.21ex | transfervoteswidth=0.01ex  
Line 124: Line 124:
 
}}
 
}}
 
{{Template:Election box candidate ranked choice with party link
 
{{Template:Election box candidate ranked choice with party link
| party = Democratic Party (United States)
+
| party = Democratic Party (US)
 
| candidate = [[Ed Lee (politician)|Ed Lee]] ([[incumbent]])
 
| candidate = [[Ed Lee (politician)|Ed Lee]] ([[incumbent]])
 
| maxround=12 | maxvotes=84,457 | maxvotespercent=59.64 | r1voteswidth=28.13ex | transfervoteswidth=11.61ex  
 
| maxround=12 | maxvotes=84,457 | maxvotespercent=59.64 | r1voteswidth=28.13ex | transfervoteswidth=11.61ex  
 
}}
 
}}
 
{{Template:Election box candidate ranked choice with party link
 
{{Template:Election box candidate ranked choice with party link
| party = Democratic Party (United States)
+
| party = Democratic Party (US)
 
| candidate = [[John Avalos]]
 
| candidate = [[John Avalos]]
 
| maxround=12 | maxvotes=57,160 | maxvotespercent=40.36 | r1voteswidth=17.62ex | transfervoteswidth=9.28ex  
 
| maxround=12 | maxvotes=57,160 | maxvotespercent=40.36 | r1voteswidth=17.62ex | transfervoteswidth=9.28ex  
Line 139: Line 139:
 
}}
 
}}
 
{{Template:Election box candidate ranked choice with party link
 
{{Template:Election box candidate ranked choice with party link
| party = Republican Party (United States)
+
| party = Republican Party (US)
 
| candidate = Wilma Pang
 
| candidate = Wilma Pang
 
| maxround=3 | maxvotes=469 | maxvotespercent=0.24 | r1voteswidth=0.21ex | transfervoteswidth=0.01ex  
 
| maxround=3 | maxvotes=469 | maxvotespercent=0.24 | r1voteswidth=0.21ex | transfervoteswidth=0.01ex  

Latest revision as of 13:17, 3 September 2019

Basic

Testing sandbox version

With new parameters:

{{Election box ranked choice begin/sandbox | title=Alcatraz mayor, 1935 }}

{{Election box ranked choice candidate with party link
| party = Republican Party (US) | candidate = [[Aaron Adimsan]]
| maxround=2 | maxvotes=1120 | maxvotespercent=56.00 | r1votes=750 | fullwidthvotes=1200
}}

{{Election box ranked choice end}}

Alcatraz mayor, 1935
Party Candidate
Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
 First Round Votes  Transfer Votes 
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Aaron Adimsan 2 1,120 56.00%

With old parameters:

Alcatraz mayor, 1935
Party Candidate
Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
 First Round Votes  Transfer Votes 
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Aaron Adimsan 2 1,120 56.00%

Testing main template

{{Election box ranked choice begin | title=Alcatraz mayor, 1935 }}

{{Election box candidate ranked choice with party link
| party = Republican Party (US) | candidate = [[Aaron Adimsan]]
| maxround=2 | maxvotes=1,120 | maxvotespercent=56.00 | r1voteswidth=25.00ex | transfervoteswidth=12.33ex
}}

{{Election box ranked choice end}}

Alcatraz mayor, 1935
Party Candidate Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
First Round VotesTransfer Votes
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Aaron Adimsan 2 1,120 56.00%

Extract of article example

Testing sandbox version with new parameters

San Francisco mayoral election, 2011[1]
Party Candidate
Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
 First Round Votes  Transfer Votes 
style="background-color: Template:Political party color; width: 2px;" | Democratic Ed Lee (incumbent) 12 84,457 59.64%
style="background-color: Template:Political party color; width: 2px;" | Democratic John Avalos 12 57,160 40.36%
Independent Tony Hall 6 7,896 4.14%
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Wilma Pang 3 469 0.24%
style="background-color: Template:Unknown/meta/color; width: 2px;" | (unknown) Emil Lawrence 2 397 0.20%
Independent Write-in 1 38 0.02%

Testing sandbox version with old parameters

San Francisco mayoral election, 2011[2]
Party Candidate
Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
 First Round Votes  Transfer Votes 
style="background-color: Template:Political party color; width: 2px;" | Democratic Ed Lee (incumbent) 12 84,457 59.64%
style="background-color: Template:Political party color; width: 2px;" | Democratic John Avalos 12 57,160 40.36%
Independent Tony Hall 6 7,896 4.14%
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Wilma Pang 3 469 0.24%
style="background-color: Template:Unknown/meta/color; width: 2px;" | (unknown) Emil Lawrence 2 397 0.20%
Independent Write-in 1 38 0.02%

Testing main template

San Francisco mayoral election, 2011[3]
Party Candidate Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
First Round VotesTransfer Votes
style="background-color: Template:Political party color; width: 2px;" | Democratic Ed Lee (incumbent) 12 84,457 59.64%
style="background-color: Template:Political party color; width: 2px;" | Democratic John Avalos 12 57,160 40.36%
Independent Tony Hall 6 7,896 4.14%
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Wilma Pang 3 469 0.24%
style="background-color: Template:Unknown/meta/color; width: 2px;" | (unknown) Emil Lawrence 2 397 0.20%
Independent Write-in 1 38 0.02%

Reference List