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

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
imported>Number 57
 
(4 intermediate revisions by 4 users not shown)
Line 7: Line 7:
 
| country          = United Kingdom
 
| country          = United Kingdom
 
| previous_election = [[United Kingdom general election, 2010|2010]]
 
| previous_election = [[United Kingdom general election, 2010|2010]]
| next_election    = [[United Kingdom general election, 2020|2020]]
+
| next_election    = [[United Kingdom general election, 2017|2017]]
 
| election_date    = 7 May 2015
 
| election_date    = 7 May 2015
 
| ongoing          = yes
 
| ongoing          = yes
Line 32: Line 32:
 
| percentage3 = 19.4
 
| percentage3 = 19.4
  
| party4 = UKIP
+
| party4 = UK Independence Party
 
| party_leader4 = [[Nigel Farage]]
 
| party_leader4 = [[Nigel Farage]]
 
| seats4 = 94
 
| seats4 = 94
Line 111: Line 111:
 
| country          = United Kingdom
 
| country          = United Kingdom
 
| previous_election = [[United Kingdom general election, 2010|2010]]
 
| previous_election = [[United Kingdom general election, 2010|2010]]
| next_election    = [[United Kingdom general election, 2020|2020]]
+
| next_election    = [[United Kingdom general election, 2017|2017]]
 
| election_date    = 7 May 2015
 
| election_date    = 7 May 2015
 
| ongoing          = yes
 
| ongoing          = yes
Line 137: Line 137:
 
| percentage3 = 19.4
 
| percentage3 = 19.4
  
| party4 = UKIP
+
| party4 = UK Independence Party
 
| party_leader4 = [[Nigel Farage]]
 
| party_leader4 = [[Nigel Farage]]
 
| seats4 = 94
 
| seats4 = 94
Line 216: Line 216:
 
| country          = United Kingdom
 
| country          = United Kingdom
 
| previous_election = [[United Kingdom general election, 2010|2010]]
 
| previous_election = [[United Kingdom general election, 2010|2010]]
| next_election    = [[United Kingdom general election, 2020|2020]]
+
| next_election    = [[United Kingdom general election, 2017|2017]]
 
| election_date    = 7 May 2015
 
| election_date    = 7 May 2015
 
| ongoing          = no
 
| ongoing          = no
Line 242: Line 242:
 
| percentage3 = 19.4
 
| percentage3 = 19.4
  
| party4 = UKIP
+
| party4 = UK Independence Party
 
| party_leader4 = [[Nigel Farage]]
 
| party_leader4 = [[Nigel Farage]]
 
| seats4 = 94
 
| seats4 = 94
Line 313: Line 313:
 
| before_election = [[David Cameron]]
 
| before_election = [[David Cameron]]
 
| before_party = [[Conservative Party (UK)|Conservative Party]]
 
| before_party = [[Conservative Party (UK)|Conservative Party]]
| after_image = [[File:Ed Miliband 2.jpg|x65px]]
+
| after_image = [[File:Ed Miliband election infobox.jpg|x65px]]
 
| after_election = [[Ed Miliband]]
 
| after_election = [[Ed Miliband]]
 
| after_party = [[Labour Party (UK)|Labour Party]]
 
| after_party = [[Labour Party (UK)|Labour Party]]
Line 324: Line 324:
 
| country          = United Kingdom
 
| country          = United Kingdom
 
| previous_election = [[United Kingdom general election, 2010|2010]]
 
| previous_election = [[United Kingdom general election, 2010|2010]]
| next_election    = [[United Kingdom general election, 2020|2020]]
+
| next_election    = [[United Kingdom general election, 2017|2017]]
 
| election_date    = 7 May 2015
 
| election_date    = 7 May 2015
 
| ongoing          = no
 
| ongoing          = no
Line 352: Line 352:
 
| percentage3 = 19.4
 
| percentage3 = 19.4
  
| party4 = UKIP
+
| party4 = UK Independence Party
 
| party_leader4 = [[Nigel Farage]]
 
| party_leader4 = [[Nigel Farage]]
 
| seats4 = 94
 
| seats4 = 94
Line 423: Line 423:
 
| before_election = [[David Cameron]]
 
| before_election = [[David Cameron]]
 
| before_party = [[Conservative Party (UK)|Conservative Party]]
 
| before_party = [[Conservative Party (UK)|Conservative Party]]
| after_image = [[File:Ed Miliband 2.jpg|x65px]]
+
| after_image = [[File:Ed Miliband election infobox.jpg|x65px]]
 
| after_election = [[Ed Miliband]]
 
| after_election = [[Ed Miliband]]
 
| after_party = [[Labour Party (UK)|Labour Party]]
 
| after_party = [[Labour Party (UK)|Labour Party]]
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
 
| country          = United Kingdom
 
| country          = United Kingdom
 
| previous_election = [[United Kingdom general election, 2010|2010]]
 
| previous_election = [[United Kingdom general election, 2010|2010]]
| next_election    = [[United Kingdom general election, 2020|2020]]
+
| next_election    = [[United Kingdom general election, 2017|2017]]
 
| election_date    = 7 May 2015
 
| election_date    = 7 May 2015
 
| 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 460: Line 518:
 
| before_election = [[David Cameron]]
 
| before_election = [[David Cameron]]
 
| before_party = [[Conservative Party (UK)|Conservative Party]]
 
| before_party = [[Conservative Party (UK)|Conservative Party]]
| after_image = [[File:Ed Miliband 2.jpg|x65px]]
+
| after_image = [[File:Ed Miliband election infobox.jpg|x65px]]
 
| after_election = [[Ed Miliband]]
 
| after_election = [[Ed Miliband]]
 
| after_party = [[Labour Party (UK)|Labour Party]]
 
| after_party = [[Labour Party (UK)|Labour Party]]
 +
}}
 +
}}
 +
}}
 +
 +
===Embedded in infobox election===
 +
{{Infobox election
 +
| election_name = 2018 Mexican general election
 +
| country = Mexico
 +
| election_date = 1 July 2018
 +
 +
| module = {{Infobox election
 +
| embed = yes
 +
| election_name = Presidential election
 +
| turnout = 63.43% ({{increase}} 0.35%)
 +
| previous_election = 2012 Mexican general election
 +
| previous_year = 2012
 +
| next_election = 2024 Mexican general election
 +
| next_year = 2024
 +
 +
| image1 = [[File:Reunión con el Presidente Electo, Andrés Manuel López Obrador 8 (cropped).jpg|center|150x150px]]
 +
| candidate1 = [[Andrés Manuel López Obrador]]
 +
| party1 = National Regeneration Movement
 +
| alliance1 = ''[[Juntos Haremos Historia]]''
 +
| home_state1 = [[Tabasco]]
 +
| popular_vote1 = '''30,113,483'''
 +
| states_carried1 = '''30+[[Mexico City|CDMX]]'''
 +
| percentage1 = '''53.19%'''
 +
| image2 = [[File:Ricardo Anaya (cropped 2).jpg|center|150x150px]]
 +
| candidate2 = [[Ricardo Anaya]]
 +
| party2 = National Action Party (Mexico)
 +
| alliance2 = ''[[Por México al Frente]]''
 +
| home_state2 = [[Querétaro]]
 +
| popular_vote2 = 12,610,120
 +
| percentage2 = 22.28%
 +
| states_carried2 = 1
 +
| image4 = [[File:Mexican Foreign Minister José Antonio Meade (16295258100) (cropped).jpg|center|150x150px]]
 +
| candidate4 = [[José Antonio Meade]]
 +
| party4 = Institutional Revolutionary Party
 +
| alliance4 = ''[[Todos por México]]''
 +
| home_state4 = [[Mexico City]]
 +
| popular_vote4 = 9,289,853
 +
| percentage4 = 16.41%
 +
| image5 = [[File:Reunión con el Gobernador Electo de Nuevo León, Jaime Rodríguez. (cropped).jpg|center|150x150px]]
 +
| candidate5 = [[Jaime Rodríguez Calderón]]
 +
| party5 = Independent politician
 +
| alliance5 = ''None''
 +
| home_state5 = [[Nuevo León]]
 +
| color5 = 7D2181
 +
| popular_vote5 = 2,961,732
 +
| percentage5 = 5.23%
 +
 +
| map_image = File:Mexico general election 2018.svg
 +
| map_size = 350px
 +
| map_caption = States won by López Obrador in red, Anaya in blue.
 +
| title = President
 +
| before_election = [[Enrique Peña Nieto]]
 +
| before_party = Institutional Revolutionary Party
 +
| after_party = National Regeneration Movement
 +
| after_election = [[Andrés Manuel López Obrador]]
 +
 +
| module = {{Infobox legislative election/sandbox
 +
| embed = yes
 +
| election_name = Senate
 +
| previous_election = [[2012 Mexican general election|2012]]
 +
| next_election = [[2024 Mexican general election|2024]]
 +
 +
| party1 = National Regeneration Movement | leader1 = [[Andrés Manuel López Obrador]] | percentage1 = 37.50 | seats1 = 55 | last_election1 = new
 +
| party2 = National Action Party (Mexico) | leader2 = [[Ricardo Anaya]] | percentage2 = 17.59 | seats2 = 23 | last_election2 = 38
 +
| party3 = Institutional Revolutionary Party | leader3 = [[José Antonio Meade]] | percentage3 = 15.90 | seats3 = 13 | last_election3 = 57
 +
| party4 = Party of the Democratic Revolution | leader4 = [[Manuel Granados Covarrubias]] | percentage4 = 5.27 | seats4 = 8 | last_election4 = 23
 +
| party5 = Citizens' Movement (Mexico) | leader5 = [[Dante Delgado Rannauro]] | percentage5 = 4.68 | seats5 = 7 | last_election5 = 1
 +
| party6 = Ecologist Green Party of Mexico | leader6 = {{nowrap|[[Jorge Emilio González Martínez]]}} | percentage6 = 4.46 | seats6 = 7 | last_election6 = 4
 +
| party7 = Labor Party (Mexico) | leader7 = [[Alberto Anaya]] | percentage7 = 3.82 | seats7 = 6 | last_election7 = 4
 +
| party8 = Social Encounter Party | leader8 = [[Hugo Eric Flores Cervantes]] | percentage8 = 2.33 | seats8 = 8 | last_election8 = new
 +
| party9 = New Alliance Party (Mexico) | leader9 = [[Luis Castro Obregón]] | percentage9 = 2.31 | seats9 = 1 | last_election9 = 1
 +
 +
| module = {{Infobox legislative election/sandbox
 +
| embed = yes
 +
 +
| election_name = Chamber of Deputies
 +
| previous_election = [[2015 Mexican legislative election|2015]]
 +
| next_election = [[2021 Mexican legislative election|2021]]
 +
 +
| party1 = National Regeneration Movement | leader1 = [[Andrés Manuel López Obrador]] | percentage1 = 37.25 | seats1 = 189 | last_election1 = 35
 +
| party2 = National Action Party (Mexico) | leader2 = [[Ricardo Anaya]] | percentage2 = 17.93 | seats2 = 83 | last_election2 = 108
 +
| party3 = Institutional Revolutionary Party | leader3 = [[José Antonio Meade]] | percentage3 = 16.54 | seats3 = 45 | last_election3 = 203
 +
| party4 = Party of the Democratic Revolution | leader4 = [[Manuel Granados Covarrubias]] | percentage4 = 5.27 | seats4 = 21 | last_election4 = 56
 +
| party5 = Ecologist Green Party of Mexico | leader5 = {{nowrap|[[Jorge Emilio González Martínez]]}} | percentage5 = 4.79 | seats5 = 16 | last_election5 = 47
 +
| party6 = Citizens' Movement (Mexico) | leader6 = [[Dante Delgado Rannauro]] | percentage6 = 4.41 | seats6 = 27 | last_election6 = 26
 +
| party7 = Labor Party (Mexico) | leader7 = [[Alberto Anaya]] | percentage7 = 3.93 | seats7 = 61 | last_election7 = 6
 +
 +
| map = 2018 Mexican general election - Chamber of Deputies.svg
 +
}}
 +
}}
 +
}}
 
}}
 
}}

Latest revision as of 17:12, 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

Embedded in infobox election

2018 Mexican general election

Template:Succession links
 

 

 
Presidential election
Template:Succession links
Turnout63.43% (Increase 0.35%)
 
Reunión con el Presidente Electo, Andrés Manuel López Obrador 8 (cropped).jpg
Ricardo Anaya (cropped 2).jpg
Candidate Andrés Manuel López Obrador Ricardo Anaya
Party National Regeneration Movement National Action Party (Mexico)
Alliance Juntos Haremos Historia Por México al Frente
Popular vote 30,113,483 12,610,120
Percentage 53.19% 22.28%

 
Mexican Foreign Minister José Antonio Meade (16295258100) (cropped).jpg
Reunión con el Gobernador Electo de Nuevo León, Jaime Rodríguez. (cropped).jpg
Candidate José Antonio Meade Jaime Rodríguez Calderón
Party PRI Independent
Alliance Todos por México None
Popular vote 9,289,853 2,961,732
Percentage 16.41% 5.23%

 

Mexico general election 2018.svg
States won by López Obrador in red, Anaya in blue.

President before election

Enrique Peña Nieto
PRI

Elected President

Andrés Manuel López Obrador
National Regeneration Movement

Senate

Template:Succession links
Party Leader % Seats ±
National Regeneration Movement Script error: No such module "If empty". 37.50 55 Template:PNsign
National Action Party (Mexico) Script error: No such module "If empty". 17.59 23 Template:PNsign
PRI Script error: No such module "If empty". 15.90 13 Template:PNsign
Party of the Democratic Revolution Script error: No such module "If empty". 5.27 8 Template:PNsign
MC Script error: No such module "If empty". 4.68 7 Template:PNsign
Green Script error: No such module "If empty". 4.46 7 Template:PNsign
PT Script error: No such module "If empty". 3.82 6 Template:PNsign
Social Encounter Party Script error: No such module "If empty". 2.33 8 Template:PNsign
New Alliance Party (Mexico) Script error: No such module "If empty". 2.31 1 Template:PNsign
This lists parties that won seats. See the complete results below.
Chamber of Deputies

Template:Succession links
Party Leader % Seats ±
National Regeneration Movement Script error: No such module "If empty". 37.25 189 Template:PNsign
National Action Party (Mexico) Script error: No such module "If empty". 17.93 83 Template:PNsign
PRI Script error: No such module "If empty". 16.54 45 Template:PNsign
Party of the Democratic Revolution Script error: No such module "If empty". 5.27 21 Template:PNsign
Green Script error: No such module "If empty". 4.79 16 Template:PNsign
MC Script error: No such module "If empty". 4.41 27 Template:PNsign
PT Script error: No such module "If empty". 3.93 61 Template:PNsign
This lists parties that won seats. See the complete results below.
2018 Mexican general election - Chamber of Deputies.svg