Difference between revisions of "Template:Election table/doc"

From blackwiki
Jump to navigation Jump to search
imported>Lightmouse
(Units/dates/other using AWB)
imported>Jeandré du Toit
(colors)
Line 8: Line 8:
 
{| align="right" style="margin:0 0 1em 2em;"
 
{| align="right" style="margin:0 0 1em 2em;"
 
|<small><pre>{{electiontable|Table template pagename}}
 
|<small><pre>{{electiontable|Table template pagename}}
'''Summary of [[Mars|Martian]] election results, [[2005]]'''
+
'''Summary of [[Mars|Martian]] election results,
 +
2020'''
 
|-style="background:#E9E9E9;"
 
|-style="background:#E9E9E9;"
! align="left"|Parties
+
!colspan="2" align="left"|Parties
! Votes
+
!Votes
! %
+
!%
! +/-
+
!+/-
! Seats
+
!Seats
! +/-
+
!+/-
 
|-
 
|-
| align="left"|The Green Party
+
|bgcolor="#ff0000"|
| 123,456
+
|align="left"|The red party
| 79.2
+
|6042
| -8.3
+
|45.40
| 53
+
| -4.41
| -8
+
|23
 +
| -2
 
|-
 
|-
| align="left"|The Red Party
+
|bgcolor="#00ff00"|
| 23,697
+
|align="left"|The green party
| 15.2
+
|5678
| +6.6
+
|42.67
| 10
+
| +1.23
| +4
+
|21
 +
|0
 
|-
 
|-
| align="left"|The Sun-Followers' Party
+
|bgcolor="#0000ff"|
| 8,730
+
|align="left"|Free Mars
| 5.6
+
|345
| +1.7
+
|2.59
| 4
+
| +2.59
| +4
+
|1
 +
| +1
 +
|-
 +
|bgcolor="#eeeeee"|
 +
|align="left"|None of the above (unfilled seats)
 +
|1242
 +
|9.33
 +
| +.59
 +
|5
 +
| +1
 
|-style="background:#E9E9E9;"
 
|-style="background:#E9E9E9;"
! align="left"|Total
+
!colspan="2" align="left"|Total
! 155,883
+
!13307
! align="center" colspan="2"|100%
+
!align="center" colspan="2"|100%
! align="center" colspan="2"|67
+
!align="center" colspan="2"|50
 
|}</pre></small>
 
|}</pre></small>
 
|}
 
|}
  
{{electiontable|Table template pagename}}'''Summary of [[Mars|Martian]] election results, 2005'''
+
{{electiontable|Table template pagename}}'''Summary of [[Mars|Martian]] election results, 2020'''
 
|-style="background:#E9E9E9;"
 
|-style="background:#E9E9E9;"
! align="left"|Parties
+
!colspan="2" align="left"|Parties
! Votes
+
!Votes
! %
+
!%
! +/-
+
!+/-
! Seats
+
!Seats
! +/-
+
!+/-
 +
|-
 +
|bgcolor="#ff0000"|
 +
|align="left"|The red party
 +
|6042
 +
|45.40
 +
| -4.41
 +
|23
 +
| -2
 
|-
 
|-
| align="left"|The Green Party
+
|bgcolor="#00ff00"|
| 123,456
+
|align="left"|The green party
| 79.2
+
|5678
| -8.3
+
|42.67
| 53
+
| +1.23
| -8
+
|21
 +
|0
 
|-
 
|-
| align="left"|The Red Party
+
|bgcolor="#0000ff"|
| 23,697
+
|align="left"|Free Mars
| 15.2
+
|345
| +6.6
+
|2.59
| 10
+
| +2.59
| +4
+
|1
 +
| +1
 
|-
 
|-
| align="left"|The Sun-Followers' Party
+
|bgcolor="#eeeeee"|
| 8,730
+
|align="left"|None of the above (unfilled seats)
| 5.6
+
|1242
| +1.7
+
|9.33
| 4
+
| +.59
| +4
+
|5
 +
| +1
 
|-style="background:#E9E9E9;"
 
|-style="background:#E9E9E9;"
! align="left"|Total
+
!colspan="2" align="left"|Total
! 155,883
+
!13307
! align="center" colspan="2"|100%
+
!align="center" colspan="2"|100%
! align="center" colspan="2"|67
+
!align="center" colspan="2"|50
 
|}
 
|}
  

Revision as of 13:30, 25 April 2009

Template:Mergefrom

Usage

This template marks the beginning of a table and defines borders, margins, background colours, and text alignment within the table. (Default alignment is "right", others must be specified.) Table rows and cells are written as usual, and the table is closed with "|}"

For example, to have a table as shown below, include the code shown to the right:

{{electiontable|Table template pagename}}
'''Summary of [[Mars|Martian]] election results,
2020'''
|-style="background:#E9E9E9;"
!colspan="2" align="left"|Parties
!Votes
!%
!+/-
!Seats
!+/-
|-
|bgcolor="#ff0000"|
|align="left"|The red party
|6042
|45.40
| -4.41
|23
| -2
|-
|bgcolor="#00ff00"|
|align="left"|The green party
|5678
|42.67
| +1.23
|21
|0
|-
|bgcolor="#0000ff"|
|align="left"|Free Mars
|345
|2.59
| +2.59
|1
| +1
|-
|bgcolor="#eeeeee"|
|align="left"|None of the above (unfilled seats)
|1242
|9.33
| +.59
|5
| +1
|-style="background:#E9E9E9;"
!colspan="2" align="left"|Total
!13307
!align="center" colspan="2"|100%
!align="center" colspan="2"|50
|}
[{{fullurl:Template:Transclude|action=edit}} e] • [[|d]] Summary of Martian election results, 2020
Parties Votes % +/- Seats +/-
The red party 6042 45.40 -4.41 23 -2
The green party 5678 42.67 +1.23 21 0
Free Mars 345 2.59 +2.59 1 +1
None of the above (unfilled seats) 1242 9.33 +.59 5 +1
Total 13307 100% 50