Difference between revisions of "Template:Infobox legislative election/testcases"
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
| 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: |