Difference between revisions of "Template:Election results boxtop"

From Ballotpedia
Jump to: navigation, search
m (Reverted edits by BaileyL (Talk) to last revision by Joshualmeyer)
Line 38: Line 38:
 
| style="text-align:center; background-color:#666; color:white;"|Candidate
 
| style="text-align:center; background-color:#666; color:white;"|Candidate
 
| style="text-align:center; background-color:#666; color:white;"|Vote Percentage
 
| style="text-align:center; background-color:#666; color:white;"|Vote Percentage
 +
| 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:30, 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
#
     Green Party
#
     Republican Party
#
Total Votes {{{Totalvotes}}}