Difference between revisions of "Template:Election results boxtop"

From Ballotpedia
Jump to: navigation, search
Line 18: Line 18:
 
|title=Mythical State Senate
 
|title=Mythical State Senate
 
}}
 
}}
{{Election results box|D|candidatename=#|percentage=#|#}}
+
{{Election results box|D|candidatename=#|percentage=#|}}
 
{{Election results box|R|candidatename=#|percentage=#|winner= {{Approved}}|}}
 
{{Election results box|R|candidatename=#|percentage=#|winner= {{Approved}}|}}
{{Election results box|G|candidatename=#|percentage=#|#}}
+
{{Election results box|G|candidatename=#|percentage=#|}}
 
{{Election results boxbottom|Totalvotes=#|}}
 
{{Election results boxbottom|Totalvotes=#|}}
  
Line 40: Line 40:
 
| style="text-align:center; background-color:#666; color:white;"|Winner
 
| style="text-align:center; background-color:#666; color:white;"|Winner
 
</onlyinclude>
 
</onlyinclude>
{{Election results box|D||candidatename=#|percentage=#|#}}
+
{{Election results box|D||candidatename=#|percentage=#|}}
{{Election results box|G||candidatename=#|percentage=#|#}
+
{{Election results box|G||candidatename=#|percentage=#|}
{{Election results box|R|candidatename=#|percentage=#|#}
+
{{Election results box|R|candidatename=#|percentage=#|}
{{Election results boxbottom|Total votes=#|#}
+
{{Election results boxbottom|Total votes=#|}
 
[[Category:Component templates|{{PAGENAME}}]]
 
[[Category:Component templates|{{PAGENAME}}]]
 
[[Category:Partisan composition templates| {{PAGENAME}}]]
 
[[Category:Partisan composition templates| {{PAGENAME}}]]
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]

Revision as of 13:35, 13 December 2013

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|winner= {{Approved}}|candidatename=#|percentage=#|}}
{{Election results box|G|candidatename=#|percentage=#|}}
{{Election results boxbottom|Totalvotes=#|}}
gives...
Mythical State Senate
Party Candidate Vote Percentage
     Democratic Party
#
     Republican Party Approveda # #
     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=#|}