Difference between revisions of "Template:Infobox legislative election/testcases"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Number 57 (→Embedding: +) |
||
| (5 intermediate revisions by 5 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, | + | | next_election = [[United Kingdom general election, 2017|2017]] |
| election_date = 7 May 2015 | | election_date = 7 May 2015 | ||
| ongoing = yes | | ongoing = yes | ||
| Line 25: | Line 25: | ||
| percentage2 = 20.9 | | percentage2 = 20.9 | ||
| − | | party3 = Liberal Democrats | + | | party3 = Liberal Democrats (UK) |
| party_leader3 = [[Nick Clegg]] | | party_leader3 = [[Nick Clegg]] | ||
| seats3 = 126 | | seats3 = 126 | ||
| Line 32: | Line 32: | ||
| percentage3 = 19.4 | | percentage3 = 19.4 | ||
| − | | party4 = | + | | 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, | + | | next_election = [[United Kingdom general election, 2017|2017]] |
| election_date = 7 May 2015 | | election_date = 7 May 2015 | ||
| ongoing = yes | | ongoing = yes | ||
| Line 130: | Line 130: | ||
| percentage2 = 20.9 | | percentage2 = 20.9 | ||
| − | | party3 = Liberal Democrats | + | | party3 = Liberal Democrats (UK) |
| party_leader3 = [[Nick Clegg]] | | party_leader3 = [[Nick Clegg]] | ||
| seats3 = 126 | | seats3 = 126 | ||
| Line 137: | Line 137: | ||
| percentage3 = 19.4 | | percentage3 = 19.4 | ||
| − | | party4 = | + | | 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, | + | | next_election = [[United Kingdom general election, 2017|2017]] |
| election_date = 7 May 2015 | | election_date = 7 May 2015 | ||
| ongoing = no | | ongoing = no | ||
| Line 235: | Line 235: | ||
| percentage2 = 20.9 | | percentage2 = 20.9 | ||
| − | | party3 = Liberal Democrats | + | | party3 = Liberal Democrats (UK) |
| party_leader3 = [[Nick Clegg]] | | party_leader3 = [[Nick Clegg]] | ||
| seats3 = 126 | | seats3 = 126 | ||
| Line 242: | Line 242: | ||
| percentage3 = 19.4 | | percentage3 = 19.4 | ||
| − | | party4 = | + | | 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 | + | | 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, | + | | next_election = [[United Kingdom general election, 2017|2017]] |
| election_date = 7 May 2015 | | election_date = 7 May 2015 | ||
| ongoing = no | | ongoing = no | ||
| Line 345: | Line 345: | ||
| percentage2 = 20.9 | | percentage2 = 20.9 | ||
| − | | party3 = Liberal Democrats | + | | party3 = Liberal Democrats (UK) |
| party_leader3 = [[Nick Clegg]] | | party_leader3 = [[Nick Clegg]] | ||
| seats3 = 126 | | seats3 = 126 | ||
| Line 352: | Line 352: | ||
| percentage3 = 19.4 | | percentage3 = 19.4 | ||
| − | | party4 = | + | | 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 | + | | 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, | + | | 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 | + | | 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
| This is the template test cases page for the sandbox of Template:Infobox legislative election. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
Ongoing
Ongoing (first)
Finished
Finished (first)
Custom party colour
Embedding
Embedded in infobox election
| Template:Succession links | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||
Presidential election | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Template:Succession links | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Turnout | 63.43% ( | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||
States won by López Obrador in red, Anaya in blue. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
Senate | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Template:Succession links | |||||||||||||||||||||||||||||||||||||||||||||||||||
This lists parties that won seats. See the complete results below. | |||||||||||||||||||||||||||||||||||||||||||||||||||
Chamber of Deputies | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Template:Succession links | |||||||||||||||||||||||||||||||||||||||||||||||||||
This lists parties that won seats. See the complete results below. | |||||||||||||||||||||||||||||||||||||||||||||||||||



