Difference between revisions of "Template:Election winner list begin/doc"

From blackwiki
Jump to navigation Jump to search
imported>PinkPanda272
m (→‎Example: update)
imported>PinkPanda272
(update)
Line 2: Line 2:
  
 
== Usage ==
 
== Usage ==
Creates a summary of elected representatives in a parliamentary/municipal election, where there are multiple wards or constituencies. This template creates the header, use {{tl|Election winner list with party link}} for individual rows.
+
Creates a summary of elected representatives in a parliamentary/municipal election, where there are multiple wards or constituencies. This template creates the header, use {{tl|Election winner list with party link}} or {{tl|Election winner list without party link}} for individual rows.
 
 
===Similar Templates===
 
{|class= "wikitable"
 
|+ Headers
 
! Template
 
! Numbered Subdivisions?
 
|-
 
| '''{{tl|Election winner list start}}''' ||{{tick}}
 
|-
 
| {{tl|Election winner list simple start}} ||{{cross}}
 
|}
 
 
 
{|class= "wikitable"
 
|+ Rows
 
! Template
 
! Numbered Subdivisions?
 
! Party link?
 
|-
 
| {{tl|Election winner list with party link}} ||{{tick}}||{{tick}}
 
|-
 
| {{tl|Election winner list simple with party link}} ||{{cross}}||{{tick}}
 
|-
 
| {{tl|Election winner list without party link}} ||{{tick}}||{{cross}}
 
|-
 
| {{tl|Election winner list simple without party link}} ||{{cross}}||{{cross}}
 
|}
 
  
 
===Blank Template===
 
===Blank Template===

Revision as of 18:15, 5 December 2020

Usage

Creates a summary of elected representatives in a parliamentary/municipal election, where there are multiple wards or constituencies. This template creates the header, use {{Election winner list with party link}} or {{Election winner list without party link}} for individual rows.

Blank Template

{{Election winner list start
|title       =
|area_name   =
|rep_name    =
|result_name =
|area_numbers =
}}

Example

Inserting...

{{Election winner list start
|title       = Example Election
|area_name   = Constituency
|rep_name    = MP
|result_name = Result
|area_numbers = yes
}}}
{{Election winner list with party link
|area_number = 1
|area       = [[Holborn and St Pancras (UK Parliament constituency)|Holborn and St Pancras]]
|rep        = [[Keir Starmer]]
|party      = Labour Party (UK)
|result     = hold
}}
{{End}}

Produces...

Example Election
Constituency MP Result
1 Holborn and St Pancras Keir Starmer Labour hold