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

From blackwiki
Jump to navigation Jump to search
imported>PinkPanda272
(→‎Usage: Example)
imported>PinkPanda272
(→‎Usage: Example)
Line 7: Line 7:
 
  <nowiki>
 
  <nowiki>
 
{{Election winner list start
 
{{Election winner list start
|title     =
+
|title       =
|area_name =
+
|area_name   =
|rep_name   =
+
|rep_name   =
 +
|result_name =
 
}}</nowiki>
 
}}</nowiki>
  
 +
===Example===
 
===Example===
 
===Example===
 
Inserting...
 
Inserting...
 
  <nowiki>
 
  <nowiki>
 
{{Election winner list start
 
{{Election winner list start
|title     = 2020 Martian general election
+
|title       = Example Election
|area_name = Constituency
+
|area_name   = Constituency
|rep_name   = Senator
+
|rep_name   = MP
}}</nowiki>
+
|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}}
 +
</nowiki>
  
 
Produces...
 
Produces...
 
{{Election winner list start
 
{{Election winner list start
|title     = 2020 Martian general election
+
|title       = Example Election
|area_name = Constituency
+
|area_name   = Constituency
|rep_name   = Senator
+
|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}}
 +
 +
<includeonly>{{sandbox other||[[Category:Election and referendum infobox templates]]
 +
}}</includeonly>
  
 
<includeonly>{{Sandbox other||[[Category:Election and referendum infobox templates]]
 
<includeonly>{{Sandbox other||[[Category:Election and referendum infobox templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 07:15, 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

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