Vote button trans.png
April's Project of the Month
It's spring time. It's primary election season!
Click here to find all the information you'll need to cast your ballot.




Difference between revisions of "Template:Election results boxtop"

From Ballotpedia
Jump to: navigation, search
Line 9: Line 9:
 
|title=Mythical AG Election
 
|title=Mythical AG Election
 
}}
 
}}
{{Election results box|D|candidatename=#|percentage=#|winner=#|}}
+
{{Election results box|D|candidatename=#|percentage=#|}}
{{Election results box|R|candidatename=#|percentage=#|winner={{Approved}}|}}
+
{{Election results box|R|candidatename=#|percentage=#|}}
{{Election results box|G|candidatename=#|percentage=#|winner=#|}}
+
{{Election results box|G|candidatename=#|percentage=#|}}
 
{{Election results boxbottom|Totalvotes=#|}}
 
{{Election results boxbottom|Totalvotes=#|}}
 
</pre>
 
</pre>
Line 18: Line 18:
 
|title=Mythical State Senate
 
|title=Mythical State Senate
 
}}
 
}}
{{Election results box|D|candidatename=#|percentage=#|winner=#|}}
+
{{Election results box|D|candidatename=#|percentage=#|}}
{{Election results box|R|candidatename=#|percentage=#|winner={{Approved}}|}}
+
{{Election results box|R|candidatename=#|percentage=#|}}
{{Election results box|G|candidatename=#|percentage=#|winner=#|}}
+
{{Election results box|G|candidatename=#|percentage=#|}}
 
{{Election results boxbottom|Totalvotes=#|}}
 
{{Election results boxbottom|Totalvotes=#|}}
  

Revision as of 15:57, 7 January 2014

Parameters
title = table title header, suggested to use the page with the state election
width = Optional table box width (default is 50%)


Examples
{{Election results boxtop
|title=Mythical AG Election
}}
{{Election results box|D|candidatename=#|percentage=#|}}
{{Election results box|R|candidatename=#|percentage=#|}}
{{Election results box|G|candidatename=#|percentage=#|}}
{{Election results boxbottom|Totalvotes=#|}}
gives...
Mythical State Senate
Party Candidate Vote Percentage
     Democratic Party
#
     Republican Party
#
     Green Party
#
Total Votes #
See also



Template
Party Candidate Vote Percentage Winner
     Democratic Party
#

{{Election results box|G||candidatename=#|percentage=#|} {{Election results box|R|candidatename=#|percentage=#|} {{Election results boxbottom|Total votes=#|}