Difference between revisions of "Template:Election results boxtop"

From Ballotpedia
Jump to: navigation, search
Line 33: Line 33:
 
<onlyinclude>{|class="wikitable" cellspacing="0" cellpadding="5" border="1" style="background:none;" style="width:{{{width|50%}}};"
 
<onlyinclude>{|class="wikitable" cellspacing="0" cellpadding="5" border="1" style="background:none;" style="width:{{{width|50%}}};"
 
{{#if:{{{title|}}}|{{!}}-
 
{{#if:{{{title|}}}|{{!}}-
!colspan="4" style="background-color:#444; color:white;"{{!}} {{{title|}}} }}
+
!colspan="5" style="background-color:#444; color:white;"{{!}} {{{title|}}} }}
 
|-
 
|-
 
| colspan="2" style="text-align:center; background-color:#666; color:white;"|Party
 
| colspan="2" style="text-align:center; background-color:#666; color:white;"|Party

Revision as of 11:54, 16 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=#|}