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

From blackwiki
Jump to navigation Jump to search
imported>Andrew20070223
 
Line 6: Line 6:
 
! rowspan="2" width=200| Party
 
! rowspan="2" width=200| Party
 
! rowspan="2" width=200| Presidential candidate
 
! rowspan="2" width=200| Presidential candidate
! colspan="2" width=200| Popular Vote
+
! colspan="2" width=200| Popular vote
! rowspan="2" width=75| Electoral Vote
+
! rowspan="2" width=75 | Electoral vote
  
 
|-
 
|-
Line 47: Line 47:
 
|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>

Latest revision as of 01:01, 4 November 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