Difference between revisions of "Template:Infobox legislative election/testcases"

From blackwiki
Jump to navigation Jump to search
imported>CommonsDelinker
(Replacing Ed_Miliband_2.jpg with File:Ed_Miliband_election_infobox.jpg (by CommonsDelinker because: Duplicate: Exact or scaled-down duplicate: c::File:Ed Miliband election infobox.jpg).)
imported>Number 57
(Embedding)
Line 429: Line 429:
  
 
==Custom party colour==
 
==Custom party colour==
 +
{{Testcase table
 +
| election_name    = British general election, 2015
 +
| country          = United Kingdom
 +
| previous_election = [[United Kingdom general election, 2010|2010]]
 +
| next_election    = [[United Kingdom general election, 2017|2017]]
 +
| election_date    = 7 May 2015
 +
| ongoing          = no
 +
| first_election    = yes
 +
 +
| party1 = [[Labour Party (UK)]]
 +
| party_leader1 = [[Ed Miliband]]
 +
| seats1 = 170
 +
| seats1_before = 256
 +
| votes1 =
 +
| percentage1 = 26.1
 +
| percentage1_before = 22.1
 +
| colour1 = pink
 +
 +
| party2 = Green Party of England and Wales
 +
| party_leader2 = [[Natalie Bennett]]
 +
| seats2 = 136
 +
| seats2_before = 1
 +
| votes2 =
 +
| percentage2 = 20.9
 +
| color2 = chartreuse
  
 +
| title = [[Prime Minister of the United Kingdom|Prime Minister]]
 +
| before_image = [[File:David Cameron official.jpg|x65px]]
 +
| before_election = [[David Cameron]]
 +
| before_party = [[Conservative Party (UK)|Conservative Party]]
 +
| after_image = [[File:Ed Miliband election infobox.jpg|x65px]]
 +
| after_election = [[Ed Miliband]]
 +
| after_party = [[Labour Party (UK)|Labour Party]]
 +
}}
 +
 +
==Embedding==
 
{{Testcase table
 
{{Testcase table
 
| election_name    = British general election, 2015
 
| election_name    = British general election, 2015
Line 438: Line 473:
 
| ongoing          = no
 
| ongoing          = no
 
| first_election    = yes
 
| first_election    = yes
 +
 +
| module = {{Infobox legislative election
 +
| embed = yes
 +
| election_name = House of Commons
 +
 +
| party1 = [[Labour Party (UK)]]
 +
| party_leader1 = [[Ed Miliband]]
 +
| seats1 = 170
 +
| seats1_before = 256
 +
| votes1 =
 +
| percentage1 = 26.1
 +
| percentage1_before = 22.1
 +
 +
| party2 = Green Party of England and Wales
 +
| party_leader2 = [[Natalie Bennett]]
 +
| seats2 = 136
 +
| seats2_before = 1
 +
| votes2 =
 +
| percentage2 = 20.9
 +
 +
| module = {{Infobox legislative election
 +
| embed = yes
 +
| election_name = House of Lords
  
 
| party1 = [[Labour Party (UK)]]
 
| party1 = [[Labour Party (UK)]]
Line 463: Line 521:
 
| after_election = [[Ed Miliband]]
 
| after_election = [[Ed Miliband]]
 
| after_party = [[Labour Party (UK)|Labour Party]]
 
| after_party = [[Labour Party (UK)|Labour Party]]
 +
}}
 +
}}
 
}}
 
}}

Revision as of 17:09, 18 September 2020

Ongoing

Template:Testcase table

Ongoing (first)

Template:Testcase table

Finished

Template:Testcase table

Finished (first)

Template:Testcase table

Custom party colour

Template:Testcase table

Embedding

Template:Testcase table