Difference between revisions of "Template:Election results (U.S. Presidential)"

From blackwiki
Jump to navigation Jump to search
imported>Andrew20070223
imported>Andrew20070223
Line 43: Line 43:
 
| colspan="1" align="center" |{{{date|}}}  
 
| colspan="1" align="center" |{{{date|}}}  
 
| align="right" bgcolor="#EAECF0"| '''Total voters'''  
 
| align="right" bgcolor="#EAECF0"| '''Total voters'''  
| colspan="2" align="center" |'''Registered''':{{{total1|}}} <br> '''Eligible''':{{{total2|}}}
+
| colspan="2" align="center" |'''Registered''': {{{total1|}}} <br> '''Eligible''': {{{total2|}}}
 
|-
 
|-
 
|align="right" bgcolor="#EAECF0"| '''Turnout %'''  
 
|align="right" bgcolor="#EAECF0"| '''Turnout %'''  
| colspan="1" align="center" |'''Registered''':{{{turnout1|}}}% <br> '''VAP''':{{{turnout2|}}}%
+
| colspan="1" align="center" |'''Registered''': {{{turnout1|}}}% <br> '''VAP''': {{{turnout2|}}}%
 
| align="right" bgcolor="#EAECF0"| '''Turnout Votes'''  
 
| align="right" bgcolor="#EAECF0"| '''Turnout Votes'''  
| colspan="2" align="center" |'''Valid Votes''':{{{count|}}} <br>'''Invalid Votes''':{{{not_count|}}}
+
| colspan="2" align="center" |'''Valid Votes''': {{{count|}}} <br>'''Invalid Votes''': {{{not_count|}}}
 
|}
 
|}
 
</onlyinclude>
 
</onlyinclude>

Revision as of 05:39, 29 June 2020

'
Party Presidential candidate Popular Vote Electoral Vote
Count Percentage
Date Total voters Registered:
Eligible:
Turnout % Registered: %
VAP: %
Turnout Votes Valid Votes:
Invalid Votes:


50px Template documentation[view] [edit] [history] [purge]

Usage

Any parameters left blank or omitted will not be displayed

{{Election results (U.S. Presidential)
|template_name=
|name=
|date=
|total1=
|total2=
|count=
|not_count
|turnout1=
|turnout2=
|image=
|imagesize=
|
|c1_party=
|c1_name=
|c1_color=
|c1_count=
|c1_percentage=
|c1_ev=
|
|c2_party=
|c2_name=
|c2_color=
|c2_count=
|c2_percentage=
|c2_ev=

<!-- Can be extended to 25 candidates maximum in this order -->

|c25_party=
|c25_name=
|c25_color=
|c25_count=
|c25_percentage=
|c25_ev=
}}

Mechnism

The unit that represents the percent (%) does not need to be filled. The template will automatically include it.

  • template_name:Template name (Optional)
  • name:Election name
  • date:Election date
  • total1:Registered voters
  • total1:Eligible voters
  • count:Valid vote
  • not_count: Invalid vote
  • turnout1:Turnout rate by registered voters
  • turnout2:Turnout rate by voting age population (eligible population)
  • image:Election map
  • imagesize:Map size (Optional)
  • cN series:replace "N" with the order that matches with the candidate's order
    • _party:Presidential candidate's party
    • _name:Presidential candidate's name
    • _color:the color of the party that the candidate belongs to
    • _count:votes counted and acquire by the candidate
    • _percentage:counted votes percentage
    • _ev: electoral vote received by the candidate