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

From blackwiki
Jump to navigation Jump to search
imported>PinkPanda272
(→‎Usage: Example)
imported>PinkPanda272
Line 13: Line 13:
 
}}</nowiki>
 
}}</nowiki>
  
===Example===
 
 
===Example===
 
===Example===
 
Inserting...
 
Inserting...

Revision as of 10:42, 12 May 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}} for individual rows.

Blank Template

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

Example

Inserting...

{{Election winner list start
|title       = Example Election
|area_name   = Constituency
|rep_name    = MP
|result_name = Result
}}}
{{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