Template:Infobox election: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
(porting current wikipedia version)
Line 21: Line 21:
   |{{#invoke:InfoboxImage|InfoboxImage|image={{{flag_image|}}}|size=50px|alt=|link=}}<hr />
   |{{#invoke:InfoboxImage|InfoboxImage|image={{{flag_image|}}}|size=50px|alt=|link=}}<hr />
   |{{#if:{{{country|}}}
   |{{#if:{{{country|}}}
     |{{#if:{{{flag_year|}}}|{{team flag|{{{country}}}|flag|{{{flag_year|}}}|size=50px}}
     |{{flagdeco|{{{country}}}|variant={{{flag_year|}}}|size=50px|noredlink={{main other||yes}}}}<hr />
    |{{team flag|{{{country}}}|flag|size=50px}}
  }}
  }}<hr />
}}
  }}
  }}
| subheader2 =  {{#if:{{{previous_year|}}}{{{election_date|}}}{{{next_year|}}}|  
| subheader2 =  {{#if:{{{previous_year|}}}{{{election_date|}}}{{{next_year|}}}|  
Line 66: Line 64:


| label5 = Votes&nbsp;counted
| label5 = Votes&nbsp;counted
| data5 = {{#if:{{{votes_counted|}}}|{{center|{{Percentage bar|{{{votes_counted}}}|{{{votes_counted}}}%|1BCE0E}}}}{{small|as of '''{{{last_update}}} {{{time_zone}}}''' }}}}
| data5 = {{#if:{{{votes_counted|}}}|{{center|{{Percentage bar|{{{votes_counted}}}|{{{votes_counted}}}%|1BCE0E}}}}as of '''{{{last_update}}} {{{time_zone}}}''' }}


| label6 = Reporting
| label6 = Reporting
| data6 = {{#if:{{{reporting|}}}|{{center|{{Percentage bar|{{{reporting}}}|{{{reporting}}}%|1BCE0E}}}}{{small|as of '''{{{last_update}}} {{{time_zone}}}''' }}}}
| data6 = {{#if:{{{reporting|}}}|{{center|{{Percentage bar|{{{reporting}}}|{{{reporting}}}%|1BCE0E}}}}as of '''{{{last_update}}} {{{time_zone}}}''' }}


| label7 = Declared
| label7 = Declared
| data7 = {{#if:{{{declared|}}}|{{center|{{Percentage bar|{{{declared}}}|{{{declared}}}%|1BCE0E}}}}{{small|as of '''{{{last_update}}} {{{time_zone}}}''' }}}}
| data7 = {{#if:{{{declared|}}}|{{center|{{Percentage bar|{{{declared}}}|{{{declared}}}%|1BCE0E}}}}as of '''{{{last_update}}} {{{time_zone}}}''' }}


| data10 =  <nowiki />
| data10 =  <nowiki />
Line 471: Line 469:
| 5blank = {{{5blank|}}}| 5data1 = {{{5data7|}}}| 5data2 = {{{5data8|}}}| 5data3 = {{{5data9|}}}
| 5blank = {{{5blank|}}}| 5data1 = {{{5data7|}}}| 5data2 = {{{5data8|}}}| 5data3 = {{{5data9|}}}
| 6blank = {{{6blank|}}}| 6data1 = {{{6data7|}}}| 6data2 = {{{6data8|}}}| 6data3 = {{{6data9|}}}
| 6blank = {{{6blank|}}}| 6data1 = {{{6data7|}}}| 6data2 = {{{6data8|}}}| 6data3 = {{{6data9|}}}
}}
{{!}}-
{{Infobox election/row
| type = {{{type|}}}
| divider = <hr />
| ongoing = {{{ongoing|no}}}
| col3 = {{#if:{{{color12|}}}{{{colour12|}}}{{{image12|}}}{{{nominee12|}}}{{{candidate12|}}}{{{leader12|}}}{{{party12|}}}{{{alliance12|}}}{{{home_state12|}}}{{{running_mate12|}}}{{{electoral_vote12|}}}{{{delegate_count12|}}}{{{states_carried12|}}}{{{leader_since12|}}}{{{leaders_seat12|}}}{{{last_election12|}}}{{{seats_before12|}}}{{{seats_needed12|}}}{{{seats12|}}}{{{seats_after12|}}}{{{seat_change12|}}}{{{popular_vote12|}}}{{{percentage12|}}}{{{counties_won12|}}}{{{counties_threshold12|}}}{{{swing12|}}}{{{poll1_nominee12|}}}{{{poll1_candidate12|}}}{{{poll2_nominee12|}}}{{{poll2_candidate12|}}}{{{poll3_nominee12|}}}{{{poll3_candidate12|}}}{{{poll4_nominee12|}}}{{{poll4_candidate12|}}}{{{poll5_nominee12|}}}{{{poll5_candidate12|}}}{{{poll1_party12|}}}{{{poll2_party12|}}}{{{poll3_party12|}}}{{{poll4_party12|}}}{{{poll5_party12|}}}{{{1data12|}}}{{{2data12|}}}{{{3data12|}}}{{{4data12|}}}{{{5data12|}}}{{{6data12|}}}|yes}}
| header1 = {{#switch:{{#expr:{{#if:{{{party3|}}}|1|0}}+{{#if:{{{party6|}}}|1|0}}}}|0=Fifth party|1=Sixth party|2=Seventh party}}
| header2 = {{#switch:{{#expr:{{#if:{{{party3|}}}|1|0}}+{{#if:{{{party6|}}}|1|0}}}}|0=Sixth party|1=Seventh party|2=Eighth party}}
| header3 = {{#switch:{{#expr:{{#if:{{{party3|}}}|1|0}}+{{#if:{{{party6|}}}|1|0}}}}|0=Seventh party|1=Eighth party|2=Ninth party}}
| party_color = {{if empty| {{{party_colour|}}} | {{{party_color|}}} | yes }}
| color1 = {{if empty| {{{color10|}}} | {{{colour10|}}} }}
| color2 = {{if empty| {{{color11|}}} | {{{colour11|}}} }}
| color3 = {{if empty| {{{color12|}}} | {{{colour12|}}} }}
| image_size = {{{image_size|}}}
| image_upright = {{{image_upright|}}}
| image1 = {{{image10|}}}
| image1_size = {{{image10_size|}}}
| image1_upright = {{{image10_upright|}}}
| image2 = {{{image11|}}}
| image2_size = {{{image11_size|}}}
| image2_upright = {{{image11_upright|}}}
| image3 = {{{image12|}}}
| image3_size = {{{image12_size|}}}
| image3_upright = {{{image12_upright|}}}
| nominee1 = {{{nominee10|}}}
| nominee2 = {{{nominee11|}}}
| nominee3 = {{{nominee12|}}}
| candidate1 = {{{candidate10|}}}
| candidate2 = {{{candidate11|}}}
| candidate3 = {{{candidate12|}}}
| leader1 = {{{leader10|}}}
| leader2 = {{{leader11|}}}
| leader3 = {{{leader12|}}}
| party_name = {{{party_name}}}
| party1 = {{{party10|}}}
| party2 = {{{party11|}}}
| party3 = {{{party12|}}}
| alliance_name = {{{alliance_name}}}
| alliance1 = {{{alliance10|}}}
| alliance2 = {{{alliance11|}}}
| alliance3 = {{{alliance12|}}}
| home_state1 = {{{home_state10|}}}
| home_state2 = {{{home_state11|}}}
| home_state3 = {{{home_state12|}}}
| running_mate1 = {{{running_mate10|}}}
| running_mate2 = {{{running_mate11|}}}
| running_mate3 = {{{running_mate12|}}}
| college_voted = {{{college_voted|}}}
| electoral_vote1 = {{{electoral_vote10|}}}
| electoral_vote2 = {{{electoral_vote11|}}}
| electoral_vote3 = {{{electoral_vote12|}}}
| delegate_count1 = {{{delegate_count10|}}}
| delegate_count2 = {{{delegate_count11|}}}
| delegate_count3 = {{{delegate_count12|}}}
| states_carried1 = {{{states_carried10|}}}
| states_carried2 = {{{states_carried11|}}}
| states_carried3 = {{{states_carried12|}}}
| leader_since1 = {{{leader_since10|}}}
| leader_since2 = {{{leader_since11|}}}
| leader_since3 = {{{leader_since12|}}}
| leaders_seat1 = {{{leaders_seat10|}}}
| leaders_seat2 = {{{leaders_seat11|}}}
| leaders_seat3 = {{{leaders_seat12|}}}
| last_election1 = {{{last_election10|}}}
| last_election2 = {{{last_election11|}}}
| last_election3 = {{{last_election12|}}}
| seats_before1 = {{{seats_before10|}}}
| seats_before2 = {{{seats_before11|}}}
| seats_before3 = {{{seats_before12|}}}
| seats_needed1 = {{{seats_needed10|}}}
| seats_needed2 = {{{seats_needed11|}}}
| seats_needed3 = {{{seats_needed12|}}}
| seats1 = {{{seats10|}}}
| seats2 = {{{seats11|}}}
| seats3 = {{{seats12|}}}
| seats_after1 = {{{seats_after10|}}}
| seats_after2 = {{{seats_after11|}}}
| seats_after3 = {{{seats_after12|}}}
| seat_change1 = {{{seat_change10|}}}
| seat_change2 = {{{seat_change11|}}}
| seat_change3 = {{{seat_change12|}}}
| vote_type = {{{vote_type|Popular}}}
| popular_vote1 = {{{popular_vote10|}}}
| popular_vote2 = {{{popular_vote11|}}}
| popular_vote3 = {{{popular_vote12|}}}
| percentage1 = {{{percentage10|}}}
| percentage2 = {{{percentage11|}}}
| percentage3 = {{{percentage12|}}}
| swing1 = {{{swing10|}}}
| swing2 = {{{swing11|}}}
| swing3 = {{{swing12|}}}
| opinion_polls = {{{opinion_polls|}}}
| poll1_date = {{if empty|{{{poll1_date3|}}}|{{{poll1_date|}}}}}
| poll1_source = {{if empty|{{{poll1_source3|}}}|{{{poll1_source|}}}}}
| poll1_person1 = {{if empty|{{{poll1_nominee10|}}}|{{{poll1_candidate10|}}}}}
| poll1_person2 = {{if empty|{{{poll1_nominee11|}}}|{{{poll1_candidate11|}}}}}
| poll1_person3 = {{if empty|{{{poll1_nominee12|}}}|{{{poll1_candidate12|}}}}}
| poll2_date = {{if empty|{{{poll2_date3|}}}|{{{poll2_date|}}}}}
| poll2_source = {{if empty|{{{poll2_source3|}}}|{{{poll2_source|}}}}}
| poll2_person1 = {{if empty|{{{poll2_nominee10|}}}|{{{poll2_candidate10|}}}}}
| poll2_person2 = {{if empty|{{{poll2_nominee11|}}}|{{{poll2_candidate11|}}}}}
| poll2_person3 = {{if empty|{{{poll2_nominee12|}}}|{{{poll2_candidate12|}}}}}
| poll3_date = {{if empty|{{{poll3_date3|}}}|{{{poll3_date|}}}}}
| poll3_source = {{if empty|{{{poll3_source3|}}}|{{{poll3_source|}}}}}
| poll3_person1 = {{if empty|{{{poll3_nominee10|}}}|{{{poll3_candidate10|}}}}}
| poll3_person2 = {{if empty|{{{poll3_nominee11|}}}|{{{poll3_candidate11|}}}}}
| poll3_person3 = {{if empty|{{{poll3_nominee12|}}}|{{{poll3_candidate12|}}}}}
| poll4_date = {{if empty|{{{poll4_date3|}}}|{{{poll4_date|}}}}}
| poll4_source = {{if empty|{{{poll4_source3|}}}|{{{poll4_source|}}}}}
| poll4_person1 = {{if empty|{{{poll4_nominee10|}}}|{{{poll4_candidate10|}}}}}
| poll4_person2 = {{if empty|{{{poll4_nominee11|}}}|{{{poll4_candidate11|}}}}}
| poll4_person3 = {{if empty|{{{poll4_nominee12|}}}|{{{poll4_candidate12|}}}}}
| poll5_date = {{if empty|{{{poll5_date3|}}}|{{{poll5_date|}}}}}
| poll5_source = {{if empty|{{{poll5_source3|}}}|{{{poll5_source|}}}}}
| poll5_person1 = {{if empty|{{{poll5_nominee10|}}}|{{{poll5_candidate10|}}}}}
| poll5_person2 = {{if empty|{{{poll5_nominee11|}}}|{{{poll5_candidate11|}}}}}
| poll5_person3 = {{if empty|{{{poll5_nominee12|}}}|{{{poll5_candidate12|}}}}}
| poll1_party1 = {{{poll1_party10|}}}| poll1_party2 = {{{poll1_party11|}}}| poll1_party3 = {{{poll1_party12|}}}
| poll2_party1 = {{{poll2_party10|}}}| poll2_party2 = {{{poll2_party11|}}}| poll2_party3 = {{{poll2_party12|}}}
| poll3_party1 = {{{poll3_party10|}}}| poll3_party2 = {{{poll3_party11|}}}| poll3_party3 = {{{poll3_party12|}}}
| poll4_party1 = {{{poll4_party10|}}}| poll4_party2 = {{{poll4_party11|}}}| poll4_party3 = {{{poll4_party12|}}}
| poll5_party1 = {{{poll5_party10|}}}| poll5_party2 = {{{poll5_party11|}}}| poll5_party3 = {{{poll5_party12|}}}
| 1blank = {{{1blank|}}}| 1data1 = {{{1data10|}}}| 1data2 = {{{1data11|}}}| 1data3 = {{{1data12|}}}
| 2blank = {{{2blank|}}}| 2data1 = {{{2data10|}}}| 2data2 = {{{2data11|}}}| 2data3 = {{{2data12|}}}
| 3blank = {{{3blank|}}}| 3data1 = {{{3data10|}}}| 3data2 = {{{3data11|}}}| 3data3 = {{{3data12|}}}
| 4blank = {{{4blank|}}}| 4data1 = {{{4data10|}}}| 4data2 = {{{4data11|}}}| 4data3 = {{{4data12|}}}
| 5blank = {{{5blank|}}}| 5data1 = {{{5data10|}}}| 5data2 = {{{5data11|}}}| 5data3 = {{{5data12|}}}
| 6blank = {{{6blank|}}}| 6data1 = {{{6data10|}}}| 6data2 = {{{6data11|}}}| 6data3 = {{{6data12|}}}
}}
}}
{{!)}}
{{!)}}
Line 639: Line 507:
{{#if:{{{template_name|}}}|{{align|right|{{navbar|{{{template_name}}}|mini=2}}}} }}
{{#if:{{{template_name|}}}|{{align|right|{{navbar|{{{template_name}}}|mini=2}}}} }}
| data16 = {{{module|}}}
| data16 = {{{module|}}}
}}</includeonly>
}}</includeonly><noinclude>{{Documentation}}<!-- Add categories to the /doc subpage, not here! --></noinclude>{{#if:{{{electoral_vote1|}}}|{{Main other|[[Category:Elections using electoral votes]]}}}}<!-- temporary tracking of elections using an electoral college -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox election with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox election]] with unknown parameter "_VALUE_"|ignoreblank=y| 1blank | 1data1 | 1data2 | 1data3 | 1data4 | 1data5 | 1data6 | 1data7 | 1data8 | 1data9 | 2blank | 2data1 | 2data2 | 2data3 | 2data4 | 2data5 | 2data6 | 2data7 | 2data8 | 2data9 | 3blank | 3data1 | 3data2 | 3data3 | 3data4 | 3data5 | 3data6 | 3data7 | 3data8 | 3data9 | 4blank | 4data1 | 4data2 | 4data3 | 4data4 | 4data5 | 4data6 | 4data7 | 4data8 | 4data9 | 5blank | 5data1 | 5data2 | 5data3 | 5data4 | 5data5 | 5data6 | 5data7 | 5data8 | 5data9 | 6blank | 6data1 | 6data2 | 6data3 | 6data4 | 6data5 | 6data6 | 6data7 | 6data8 | 6data9 | after_election | after_party | alliance_name | alliance1 | alliance2 | alliance3 | alliance4 | alliance5 | alliance6 | alliance7 | alliance8 | alliance9 | before_election | before_party | candidate1 | candidate2 | candidate3 | candidate4 | candidate5 | candidate6 | candidate7 | candidate8 | candidate9 | child | college_voted | color1 | color2 | color3 | color4 | color5 | color6 | color7 | color8 | color9 | colour1 | colour2 | colour3 | colour4 | colour5 | colour6 | colour7 | colour8 | colour9 | counties_threshold1 | counties_threshold2 | counties_threshold3 | counties_threshold9 | counties_won1 | counties_won2 | counties_won3 | counties_won9 | country | declared | delegate_count1 | delegate_count2 | delegate_count3 | delegate_count4 | delegate_count5 | delegate_count6 | delegate_count7 | delegate_count8 | delegate_count9 | elected_members | elected_mps | election_date | election_name | electoral_vote1 | electoral_vote2 | electoral_vote3 | electoral_vote4 | electoral_vote5 | electoral_vote6 | electoral_vote7 | electoral_vote8 | electoral_vote9 | embed | flag_image | flag_year | home_state1 | home_state2 | home_state3 | home_state4 | home_state5 | home_state6 | home_state7 | home_state8 | home_state9 | image_size | image_upright | image1 | image1_size | image1_upright | image2 | image2_size | image2_upright | image3 | image3_size | image3_upright | image4 | image4_size | image4_upright | image5 | image5_size | image5_upright | image6 | image6_size | image6_upright | image7 | image7_size | image7_upright | image8 | image8_size | image8_upright | image9 | image9_size | image9_upright | last_election1 | last_election2 | last_election3 | last_election4 | last_election5 | last_election6 | last_election7 | last_election8 | last_election9 | last_update | leader_since1 | leader_since2 | leader_since3 | leader_since4 | leader_since5 | leader_since6 | leader_since7 | leader_since8 | leader_since9 | leader1 | leader2 | leader3 | leader4 | leader5 | leader6 | leader7 | leader8 | leader9 | leaders_seat1 | leaders_seat2 | leaders_seat3 | leaders_seat4 | leaders_seat5 | leaders_seat6 | leaders_seat7 | leaders_seat8 | leaders_seat9 | majority_seats | map | map_alt | map_caption | map_image | map_size | map2 | map2_alt | map2_caption | map2_image | map2_size | map3 | map3_alt | map3_caption | map3_image | map3_size | map4 | map4_alt | map4_caption | map4_image | map4_size | module | needed_votes | next_election | next_year | nominee1 | nominee2 | nominee3 | nominee4 | nominee5 | nominee6 | nominee7 | nominee8 | nominee9 | ongoing | opinion_polls | outgoing_members | party_color | party_colour | party_name | party1 | party2 | party3 | party4 | party5 | party6 | party7 | party8 | party9 | percentage1 | percentage2 | percentage3 | percentage4 | percentage5 | percentage6 | percentage7 | percentage8 | percentage9 | poll1_candidate1 | poll1_candidate2 | poll1_candidate3 | poll1_candidate4 | poll1_candidate5 | poll1_candidate6 | poll1_candidate7 | poll1_candidate8 | poll1_candidate9 | poll1_date | poll1_date1 | poll1_date2 | poll1_date3 | poll1_nominee1 | poll1_nominee2 | poll1_nominee3 | poll1_nominee4 | poll1_nominee5 | poll1_nominee6 | poll1_nominee7 | poll1_nominee8 | poll1_nominee9 | poll1_party1 | poll1_party2 | poll1_party3 | poll1_party4 | poll1_party5 | poll1_party6 | poll1_party7 | poll1_party8 | poll1_party9 | poll1_source | poll1_source1 | poll1_source2 | poll1_source3 | poll2_candidate1 | poll2_candidate2 | poll2_candidate3 | poll2_candidate4 | poll2_candidate5 | poll2_candidate6 | poll2_candidate7 | poll2_candidate8 | poll2_candidate9 | poll2_date | poll2_date1 | poll2_date2 | poll2_date3 | poll2_nominee1 | poll2_nominee2 | poll2_nominee3 | poll2_nominee4 | poll2_nominee5 | poll2_nominee6 | poll2_nominee7 | poll2_nominee8 | poll2_nominee9 | poll2_party1 | poll2_party2 | poll2_party3 | poll2_party4 | poll2_party5 | poll2_party6 | poll2_party7 | poll2_party8 | poll2_party9 | poll2_source | poll2_source1 | poll2_source2 | poll2_source3 | poll3_candidate1 | poll3_candidate2 | poll3_candidate3 | poll3_candidate4 | poll3_candidate5 | poll3_candidate6 | poll3_candidate7 | poll3_candidate8 | poll3_candidate9 | poll3_date | poll3_date1 | poll3_date2 | poll3_date3 | poll3_nominee1 | poll3_nominee2 | poll3_nominee3 | poll3_nominee4 | poll3_nominee5 | poll3_nominee6 | poll3_nominee7 | poll3_nominee8 | poll3_nominee9 | poll3_party1 | poll3_party2 | poll3_party3 | poll3_party4 | poll3_party5 | poll3_party6 | poll3_party7 | poll3_party8 | poll3_party9 | poll3_source | poll3_source1 | poll3_source2 | poll3_source3 | poll4_candidate1 | poll4_candidate2 | poll4_candidate3 | poll4_candidate4 | poll4_candidate5 | poll4_candidate6 | poll4_candidate7 | poll4_candidate8 | poll4_candidate9 | poll4_date | poll4_date1 | poll4_date2 | poll4_date3 | poll4_nominee1 | poll4_nominee2 | poll4_nominee3 | poll4_nominee4 | poll4_nominee5 | poll4_nominee6 | poll4_nominee7 | poll4_nominee8 | poll4_nominee9 | poll4_party1 | poll4_party2 | poll4_party3 | poll4_party4 | poll4_party5 | poll4_party6 | poll4_party7 | poll4_party8 | poll4_party9 | poll4_source | poll4_source1 | poll4_source2 | poll4_source3 | poll5_candidate1 | poll5_candidate2 | poll5_candidate3 | poll5_candidate4 | poll5_candidate5 | poll5_candidate6 | poll5_candidate7 | poll5_candidate8 | poll5_candidate9 | poll5_date | poll5_date1 | poll5_date2 | poll5_date3 | poll5_nominee1 | poll5_nominee2 | poll5_nominee3 | poll5_nominee4 | poll5_nominee5 | poll5_nominee6 | poll5_nominee7 | poll5_nominee8 | poll5_nominee9 | poll5_party1 | poll5_party2 | poll5_party3 | poll5_party4 | poll5_party5 | poll5_party6 | poll5_party7 | poll5_party8 | poll5_party9 | poll5_source | poll5_source1 | poll5_source2 | poll5_source3 | popular_vote1 | popular_vote2 | popular_vote3 | popular_vote4 | popular_vote5 | popular_vote6 | popular_vote7 | popular_vote8 | popular_vote9 | posttitle | previous_election | previous_mps | previous_year | registered | reporting | running_mate1 | running_mate2 | running_mate3 | running_mate4 | running_mate5 | running_mate6 | running_mate7 | running_mate8 | running_mate9 | seat_change1 | seat_change2 | seat_change3 | seat_change4 | seat_change5 | seat_change6 | seat_change7 | seat_change8 | seat_change9 | seats_after1 | seats_after2 | seats_after3 | seats_after4 | seats_after5 | seats_after6 | seats_after7 | seats_after8 | seats_after9 | seats_before1 | seats_before2 | seats_before3 | seats_before4 | seats_before5 | seats_before6 | seats_before7 | seats_before8 | seats_before9 | seats_for_election | seats_needed1 | seats_needed2 | seats_needed3 | seats_needed4 | seats_needed5 | seats_needed6 | seats_needed7 | seats_needed8 | seats_needed9 | seats1 | seats2 | seats3 | seats4 | seats5 | seats6 | seats7 | seats8 | seats9 | states_carried1 | states_carried2 | states_carried3 | states_carried4 | states_carried5 | states_carried6 | states_carried7 | states_carried8 | states_carried9 | swing1 | swing2 | swing3 | swing4 | swing5 | swing6 | swing7 | swing8 | swing9 | template_name | time_zone | title | turnout | type | vote_type | votes_counted | votes_for_election }}
<noinclude>{{Documentation}}[[Category: Infobox templates]][[Category: Politics templates]]</noinclude>
[[Category:Elections]]

Revision as of 02:06, 28 February 2021

[edit] [purge] Template documentation

This infobox describes a presidential, primary, legislative or parliamentary elections.

For legislative elections with many parties, consider using {{Infobox legislative election}} instead.

Usage

Remove fields for different types of elections.

{{Infobox election
| election_name     = 
| country           = 
| flag_year         = 
| flag_image        = 
| type              = <!-- presidential, parliamentary, legislative, primary, or by-election --><!-- MANDATORY, and limited to the preceding five types -->
| vote_type         = Popular <!-- default -->
| ongoing           = 
| party_colour      = 
| party_name        = 
| alliance_name     = 
| previous_election = 
| previous_year     = 
| outgoing_members  = 
| election_date     = <!-- {{Start date|YYYY|MM|DD}} -->
| elected_members   = 
| next_election     = <!--page title, will be linked if it exists-->
| next_year         = 
| votes_for_election= 
| needed_votes      = 
| seats_for_election= 
| majority_seats    = 
| opinion_polls     = 
| registered        = 
| turnout           = 
| votes_counted     = <!-- Use ONE out of votes_counted, reporting or declared, do not include percentage (%) sign-->
| reporting         = <!-- Use ONE out of votes_counted, reporting or declared, do not include percentage (%) sign-->
| declared          = <!-- Use ONE out of votes_counted, reporting or declared, do not include percentage (%) sign-->
| last_update       = 
| time_zone         = 
| image_upright     = 

<!--        person 1        -->
| image1            = 
| image1_size       = 
| image1_upright    = 
| colour1           = 
| nominee1          = <!-- when appropriate, candidate1 can be used instead -->
| candidate1        = <!-- any type of election -->
| leader1           = <!-- legislative or parliamentary only-->
| party1            = 
| alliance1         = 

<!-- presidential -->
| home_state1       = 
| running_mate1     = 
| electoral_vote1   = 
| delegate_count1   = 
| states_carried1   = 
| districts_won1    = 

<!-- legislative or parliamentary -->
| leader_since1     = 
| leaders_seat1     = 
| last_election1    = 
| seats_before1     = 
| seats_needed1     = 
| seats1            = 
| seats_after1      = 
| seat_change1      = 

<!-- any -->
| popular_vote1     = 
| percentage1       = 
| swing1            = <!-- legislative or parliamentary only-->

<!--        person 2        -->
| image2            = 
| image2_size       = 
| image2_upright    = 
| colour2           = 
| nominee2          = <!-- presidential only, when appropriate, candidate2 can be used instead -->
| candidate2        = <!-- any type of election -->
| leader2           = <!-- legislative or parliamentary only-->
| party2            = 
| alliance2         = 

<!-- presidential -->
| home_state2       = 
| running_mate2     = 
| electoral_vote2   = 
| delegate_count2   = 
| states_carried2   = 
| districts_won2    = 

<!-- legislative or parliamentary -->
| leader_since2     = 
| leaders_seat2     = 
| last_election2    = 
| seats_before2     = 
| seats_needed2     = 
| seats2            = 
| seats_after2      = 
| seat_change2      = 

<!-- any -->
| popular_vote2     = 
| percentage2       = 
| swing2            = <!-- legislative or parliamentary only-->

<!-- polls -->
| poll1_date        = 
| poll1_source      = 
| poll1_nominee1    = <!-- presidential only, when appropriate, poll1_candidate1 can be used instead -->
| poll1_party1      = <!-- legislative or parliamentary only-->
| poll1_nominee2    = <!-- presidential only, when appropriate, poll1_candidate2 can be used instead -->
| poll1_party2      = <!-- legislative or parliamentary only-->
| poll2_date        = 
| poll2_source      = 
| poll2_nominee1    = <!-- presidential only, when appropriate, poll2_candidate1 can be used instead -->
| poll2_party1      = <!-- legislative or parliamentary only-->
| poll2_nominee2    = <!-- presidential only, when appropriate, poll2_candidate2 can be used instead -->
| poll2_party2      = <!-- legislative or parliamentary only-->

<!-- auxiliary rows -->
| 1blank            = 
| 1data1            = 
| 1data2            = 
| 2blank            = 
| 2data1            = 
| 2data2            = 

<!-- map -->
| map_image         = 
| map_size          = 
| map_alt           = 
| map               = 
| map_caption       = 

<!-- bottom -->
| title             = 
| before_election   = 
| before_party      = 
| posttitle         = 
| after_election    = 
| after_party       = 
}}
*Non-optional fields.
† only displayed if the election is yet to take place.
‡ only displayed if the election has finished.
Field Type Description
election_name * Name given to the election. If this field is left empty the page name is displayed
country Country where the election took place.
flag_year For historical elections when an older flag design was in effect, enter the year the flag came into effect (not the election year). Default is to use the current flag.
flag_image For non-country elections, specify the full name of the flag, coat-of-arms, or seal image to display.
type * The type of election. Must be one of five: presidential, legislative, parliamentary, primary, or by-election. Legislative after the election will display majority and minority party, rather than first and second party.
vote_type The type of votes recorded at popular_voten. Defaults to "Popular".
ongoing * Must be either yes or no, whether the election is yet to take place, or completed. Fields marked with a † are only displayed if the election is yet to take place. Fields marked with a ‡ are only displayed if the election has finished. (Default no.)
party_colour Also spelled party_color. To turn off the party colours enter 'no'.
party_name To turn off linking to the parties enter 'no'.
alliance_name To turn off linking to the alliances enter 'no'.
previous_election The page name of the last election of this type.
previous_year The year the last election of this type took place.
previous_mps (DEPRECATED) legislative
parliamentary
Also spelled previous_MPs or previous_members, page name for the members elected in the last election.
outgoing_members legislative
parliamentary
The page name of the legislative term (typically including a list of members) serving between the previous election and this election.
(Can either be a page title or a wiki link.)
election_date Date of election - use {{Start date}}
elected_mps (DEPRECATED) legislative
parliamentary
Wikilink to the MPs elected in this election.
elected_members legislative
parliamentary
The page name of the legislative term (typically including a list of members) serving between this election and the next election.
(Can either be a page title or a wiki link.)
next_election The page name of the next election of this type. If red link (it doesn't exist), then it will appear unlinked.
next_year The year the next election of this type took place.
next_mps (DEPRECATED, REMOVED) legislative
parliamentary
Also spelled next_MPs or next_members, page name for the members elected in the next election.
votes_for_election presidential The number of votes for election and the system of voting (e.g. Electoral College).
needed_votes presidential The number of votes required to win. If there is an even number of votes, use the number that is said by the media.
seats_for_election legislative
parliamentary
by-election
The number of seats for election and the house or chamber the seats are for.
majority_seats legislative
parliamentary
The number of seats required for a majority government. If there is an even number of seats in the house or chamber, use the number that is said by the media.
opinion_polls Pagename or section anchor of opinion polls.
registered Number of registered voters for this election.
turnout Voter turnout for this election.
votes_counted The number of votes or the number of constituencies, in %, that have been counted after polls have closed. Do not include the percentage sign (%) after number. It is advisable to remove this information soon after the counting process has finished and all the results have been declared. Use votes_counted, reporting or declared according to whichever term best suits the specific election and counting procedure
reporting
declared
last_update The time at which the latest update on results and the number of votes were updated on the infobox
time_zone Time zone of the time given in the last_update field. Must be linked as normal similar to an article (e.g. [[Greenwich mean time|GMT]])
image_upright Upright for all |imagen=. See WP:UPRIGHT. Can be overridden by the corresponding |imagen_upright=.
image1 Image of Nominee, head of Party list or Party Leader. The number can be changed up to nine to display different Nominees, heads of Party list or Leaders at the same time. In order to work, colour1 or party1 must be entered.
image1_upright Upright for |image1=. See WP:UPRIGHT. Overrides |image_upright=.
colour1 Also spelt color1. Enter a hex colour code (without the #) to override the border colour of image1. The number can be changed up to nine to display different Nominees, heads of Party list or Leaders at the same time.
nominee1 presidential
by-election
Name of Nominee. When appropriate, candidate1 can be used instead. The number can be changed up to nine to display different Nominees or Candidates at the same time.
candidate1 Name of Candidate. The number can be changed up to nine to display different Candidates at the same time.
leader1 legislative
parliamentary
Name of head of Party list or Party Leader. The number can be changed up to nine to display different Parties at the same time.
party1 Political Party using Political party shortname templates. The number can be changed up to nine to display different Parties at the same time.
alliance1 Political alliance in elections where coalition politics is common.
home_state1 presidential The state the Nominee or Candidate represents. The number can be changed up to nine to display different Nominees at the same time.
running_mate1 presidential The Nominee's Running mate. The number can be changed up to nine to display different Nominees at the same time.
electoral_vote1 presidential
The electoral votes obtained by the Nominee. The number can be changed up to nine to display different Nominees at the same time.
projected_vote1 presidential
The electoral votes projected for the Nominee.
delegate_count1 presidential The aggregate number of delegates obtained by the candidate. The number can be changed up to nine to display different candidates at the same time. Intended for use in pre-election processes such as selection of delegates to United States presidential nominating conventions. Intended to be used instead of electoral_vote1 for these cases.
states_carried1 presidential
The states carried or won by the Nominee. The number can be changed up to nine to display different Nominees at the same time.
districts_won1 presidential
The number of districts won by the Nominee. The number can be changed up to nine to display different Nominees at the same time.
leader_since1 legislative
parliamentary
The date the Leader took office. The number can be changed up to nine to display different Parties at the same time.
leaders_seat1 legislative
parliamentary
The seat the Leader represents. The number can be changed up to nine to display different Parties at the same time.
last_election1 legislative
parliamentary
The seat count and percentage of the vote received at the previous election. The number can be changed up to nine to display different Parties at the same time.
seats_before1 legislative
parliamentary
The seat count before the election, labeled 'current seats' if the election is yet to take place. The number can be changed up to nine to display different Parties at the same time.
seats_needed1 legislative
parliamentary
The seats required to gain an overall majority. The number can be changed up to nine to display different Parties at the same time.
seats1 legislative
parliamentary
The seats won at the election. The number can be changed up to nine to display different Parties at the same time.
seats_after1 legislative
parliamentary
The seat count after the election. The number can be changed up to nine to display different Parties at the same time.
seat_change1 legislative
parliamentary
The change in the number of seats won at the election compared to the previous election. The number can be changed up to nine to display different Parties at the same time.
popular_vote1 The number of votes obtained by the Nominee or Party. The number can be changed up to nine to display different Nominees or Parties at the same time.
percentage1 The percentage of the popular vote obtained by the Nominee or Party. The number can be changed up to nine to display different Nominees or Parties at the same time.
swing1 legislative
parliamentary
The swing or change in popular vote at the election compared to the previous election. The number can be changed up to nine to display different Parties at the same time.
poll1_date The date of an opinion poll. The number can be changed up to five to display different polls at the same time.
poll1_source The source or URL of the opinion poll. The number can be changed up to five to display different polls at the same time.

poll1_nominee1

poll1_nominee1 presidential
The percentage poll 1 gave to nominee 1. When appropriate, poll1_candidate1 can be used instead. The poll number can be changed up to five to display different polls at the same time. The nominee or candidate number can be changed up to nine to display different Nominees or Candidates at the same time.
poll1_party1 legislative
parliamentary
The percentage poll 1 gave to party 1. The poll number can be changed up to five to display different polls at the same time. The party number can be changed up to nine to display different Nominees at the same time.
1blank Title of an auxiliary row. The number can be changed up to six to display six extra rows.
1data1 Data 1 for nominee or party 1. The first number can be changed up to six to display six extra rows. The second number can be changed up to nine to display different Nominees or Parties at the same time.
map_image Page name for the election map file.
map_size Size of image of the election map to be displayed. (Default 300px).
map_alt Alt text for the election map.
map A freeform replacement for the above, which can be used to insert extension:ImageMaps or templates instead of images.
map_caption Caption on image of the election map to be displayed.
title Title of the leader before the election. (President, Speaker, Government, Prime Minister...)
before_election The leader in power before the election, labeled incumbent if the election is yet to take place.
before_party The party in power before the election. This can be set to "Acting (law)" (which will display as "Acting") if necessary.
posttitle Title of the victor of the election (President-elect, Prime Minister-designate...), only if different than before.
after_election The leader in power as a result of the election. In case of an ongoing primary, this field may contain the name of the presumptive nominee.
after_party The party in power as a result of the election.

Notes

The template can display up to nine parties or nominees at the same time, three per row. If exactly four are needed, use the first two on the top and bottom lines. This is done by only using the numbers 1, 2, 4 and 5 on the fields that require a number.

All the fields that work for Legislative will also work for Parliamentary. The only difference between the two is the titles above the images.

The template uses the party fields to display the party colour in the background of the images and some text. To turn this function off, input:

| party_colour      = no

To override the calling of the party short name templates, input:

| party_name        = no

To override the calling of the alliance short name templates, input:

| alliance_name     = no

To override the colour for party1 or nominee1, input:

| colour1           = [HEX OF COLOUR, MINUS #]

The hex number must be entered without the hash for the field to work. The number (colour1) can be changed up to nine for different parties or Nominees. The fields work with both spellings of the word 'color'.

Which leader to use

The parties are shown in the infobox in the order they came in the election. The "leader" of each party is the person leading the party through that election.

Examples

Presidential

2004 United States presidential election
Template:Country data United StatesTemplate:Namespace detect showall
← 2000 November 2, 2004 (2004-11-02) 2008 →

All 538 electoral votes of the Electoral College
270 electoral votes needed to win

  George-W-Bush.jpeg John Kerry headshot with US flag.jpg
Nominee George W. Bush John Kerry
Party Republican Party (US) Democratic Party (US)
Home state Texas Massachusetts
Running mate Richard B. Cheney John Edwards
Electoral vote 286 251
States carried 31 19 + DC
Popular vote 62,040,610 59,028,444
Percentage 50.7% 48.3%

File:ElectoralCollege2004.svg
Presidential election results map

President before election

George W. Bush
Republican Party (US)

Elected President

George W. Bush
Republican Party (US)

{{Infobox election
| election_name     = 2004 United States presidential election
| country           = United States
| type              = presidential
| previous_election = 2000 United States presidential election
| previous_year     = 2000
| election_date     = {{Start date|2004|11|02}}
| next_election     = 2008 United States presidential election
| next_year         = 2008
| votes_for_election= All [[List of United States presidential electors, 2004|538 electoral votes]] of the [[Electoral College (United States)|Electoral College]]
| needed_votes      = 270 electoral
| image_size        = 160x180px

<!-- George W. Bush -->
| image1            = George-W-Bush.jpeg
| nominee1          = [[George W. Bush]]
| party1            = Republican Party (US)
| home_state1       = [[Texas]]
| running_mate1     = [[Dick Cheney|Richard B. Cheney]]
| electoral_vote1   = 286
| states_carried1   = 31
| popular_vote1     = 62,040,610
| percentage1       = 50.7%

<!-- John Kerry -->
| image2            = John Kerry headshot with US flag.jpg
| nominee2          = [[John Kerry]]
| party2            = Democratic Party (US)
| home_state2       = [[Massachusetts]]
| running_mate2     = [[John Edwards]]
| electoral_vote2   = 251
| states_carried2   = 19 + [[Washington, D.C.|DC]]
| popular_vote2     = 59,028,444
| percentage2       = 48.3%

<!-- map -->
| map_image         = ElectoralCollege2004.svg
| map_size          = 270px
| map_caption       = Presidential election results map

<!-- bottom -->
| title             = President
| before_election   = [[George W. Bush]]
| before_party      = Republican Party (US)
| after_election    = [[George W. Bush]]
| after_party       = Republican Party (US)
}}

 ·

Presidential primary

Republican Party presidential primaries, 2016
Template:Country data United StatesTemplate:Namespace detect showall
← 2012 February 1 – June 7, 2016 2020 →

2,472 delegates to the Republican National Convention
1,237 delegate votes needed to win

  Donald August 19 (cropped).jpg Ted Cruz, official portrait, 113th Congress (cropped 2).jpg
Candidate Donald Trump Ted Cruz
Home state New York Texas
Estimated delegate count 1,014 546
Contests won 28 11
Popular vote 10,713,526 7,321,878
Percentage 40.2% 27.5%
  Marco Rubio, Official Portrait, 112th Congress.jpg Governor John Kasich (cropped2).jpg
Candidate Marco Rubio John Kasich
Home state Florida Ohio
Estimated delegate count 173 154
Contests won 3 1
Popular vote 3,497,828 3,762,367
Percentage 13.1% 14.1%

File:Republican Party presidential primaries results, 2016.svg
First place by first-instance vote
     Donald Trump      Ted Cruz
     Marco Rubio      John Kasich
     Uncommitted

Previous Republican nominee

Mitt Romney

Presumptive Republican nominee

Donald Trump

v · d · e
{{Infobox election
| election_name     = [[Republican Party presidential primaries, 2016]]
| country           = United States
| type              = primary
| ongoing           = yes
| previous_election = 2012 Republican Party presidential primaries
| previous_year     = 2012
| next_election     = 2020 Republican Party presidential primaries
| next_year         = ''2020''
| election_date     = February 1 – June 7, 2016
| votes_for_election = 2,472 delegates to the [[2016 Republican National Convention|Republican National Convention]]
| needed_votes      = 1,237 delegate
| party_name        = no
| image_size        = 160x180px

<!-- Donald Trump -->
| image1            = Donald August 19 (cropped).jpg
| candidate1        = '''[[Donald Trump]]'''
| color1            = 283681
| home_state1       = [[New York (state)|New York]]
| states_carried1   = '''28'''
| popular_vote1     = '''10,713,526'''
| percentage1       = '''40.2%'''
| delegate_count1   = '''1,014'''

<!-- Ted Cruz-->
| image2            = Ted Cruz, official portrait, 113th Congress (cropped 2).jpg
| candidate2        = [[Ted Cruz]]
| color2            = DAA520
| home_state2       = [[Texas]]
| states_carried2   = 11
| popular_vote2     = 7,321,878
| percentage2       = 27.5%
| delegate_count2   = 546

<!-- Marco Rubio -->
| image4            = Marco Rubio, Official Portrait, 112th Congress.jpg
| candidate4        = [[Marco Rubio]]
| color4            = C60E3B
| home_state4       = [[Florida]]
| states_carried4   = 3
| popular_vote4     = 3,497,828
| percentage4       = 13.1%
| delegate_count4   = 173

<!-- John Kasich -->
| image5            = Governor John Kasich (cropped2).jpg
| candidate5        = [[John Kasich]] 
| color5            = 29AB87
| home_state5       = [[Ohio]]
| states_carried5   = 1
| popular_vote5     = 3,762,367
| percentage5       = 14.1%
| delegate_count5   = 154

| map_image         = Republican Party presidential primaries results, 2016.svg
| map_size          = 308px
| map_caption       = '''First place by first-instance vote'''
{{{!}} style="font-size:110%; margin:0 auto;"
{{!}} {{Legend0|#283681|Donald Trump}} {{!}}{{!}} {{Legend0|#DAA520|Ted Cruz}}
{{!}}-
{{!}} {{Legend0|#C60E3B|Marco Rubio}} {{!}}{{!}} {{Legend0|#29AB87|John Kasich}}
{{!}}-
{{!}} {{Legend0|#000000|Uncommitted}} {{!}}{{!}}
{{!}}}
| title = Republican nominee
| before_election = [[Mitt Romney]]
| after_election = [[Donald Trump]]
| template_name = 2016 Republican Party presidential primaries
}}

 ·

Legislative or parliamentary

2005 United Kingdom general election
Template:Country data United KingdomTemplate:Namespace detect showall
← 2001 May 5, 2005 (2005-05-05) 2010 →

All 646 seats to the House of Commons
324 seats needed for a majority
Opinion polls
Turnout 61.4%

  First party Second party
  TonyBlairBasra.JPG Michael Howard 1099 cropped.jpg Charles Kennedy.jpg
Leader Tony Blair Michael Howard Charles Kennedy
Party Labour Party (UK) Conservative Party (UK) Liberal Democrats (UK)
Leader since 21 July 1994 6 November 2003 9 August 1999
Leader's seat Sedgefield Folkestone & Hythe Ross, Skye, & Lochaber
Last election 413 seats, 40.7% 166 seats, 31.7% 52 seats, 18.3%
Seats before 403 165 51
Seats won 355 198 62
Seat change -48 +33 +11
Popular vote 9,552,436 8,784,915 5,985,454
Percentage 35.2% 32.4% 22.0%
Swing -5.5% +0.7% +3.7%

File:2005UKElectionMap.svg
Map of United Kingdom showing constituencies won

Prime Minister before election

Tony Blair
Labour Party (UK)

Elected Prime Minister

Tony Blair
Labour Party (UK)

{{Infobox election
| election_name     = 2005 United Kingdom general election
| country           = United Kingdom
| type              = parliamentary
| previous_election = 2001 United Kingdom general election
| previous_year     = 2001
| outgoing_members  = List of MPs elected in the United Kingdom general election, 2001
| election_date     = {{Start date|2005|05|05}}
| elected_members   = List of MPs elected in the United Kingdom general election, 2005
| next_election     = 2010 United Kingdom general election
| next_year         = 2010
| seats_for_election= All [[List of United Kingdom Parliament constituencies 2005–2010|646 seats]] to the [[House of Commons of the United Kingdom|House of Commons]]
| majority_seats    = 324
| opinion_polls     = #Opinion polls
| turnout           = 61.4%
| image_size        = 160x180px

<!-- Labour -->
| image1            = TonyBlairBasra.JPG
| leader1           = [[Tony Blair]]
| party1            = Labour Party (UK)
| leader_since1     = 21 July 1994
| leaders_seat1     = [[Sedgefield (UK Parliament constituency)|Sedgefield]]
| last_election1    = 413 seats, 40.7%
| seats_before1     = 403
| seats1            = 355
| seat_change1      = -48
| popular_vote1     = 9,552,436
| percentage1       = 35.2%
| swing1            = -5.5%

<!-- Conservative -->
| image2            = Michael Howard 1099 cropped.jpg
| leader2           = [[Michael Howard]]
| party2            = Conservative Party (UK)
| leader_since2     = 6 November 2003
| leaders_seat2     = [[Folkestone and Hythe (UK Parliament constituency)|Folkestone & Hythe]]
| last_election2    = 166 seats, 31.7%
| seats_before2     = 165
| seats2            = 198
| seat_change2      = +33
| popular_vote2     = 8,784,915
| percentage2       = 32.4%
| swing2            = +0.7%

<!-- Liberal Democrats -->
| image3            = Charles Kennedy.jpg
| leader3           = [[Charles Kennedy]]
| party3            = Liberal Democrats
| leader_since3     = 9 August 1999
| leaders_seat3     = [[Ross, Skye and Lochaber (UK Parliament constituency)|Ross, Skye, & Lochaber]]
| last_election3    = 52 seats, 18.3%
| seats_before3     = 51
| seats3            = 62
| seat_change3      = +11
| popular_vote3     = 5,985,454
| percentage3       = 22.0%
| swing3            = +3.7%

<!-- map -->
| map_image         = 2005UKElectionMap.svg
| map_size          = 250px
| map_caption       = Map of United Kingdom showing constituencies won

<!-- bottom -->
| title             = Prime Minister
| before_election   = [[Tony Blair]]
| before_party      = Labour Party (UK)
| after_election    = [[Tony Blair]]
| after_party       = Labour Party (UK)
}}

 ·

By-election

2012 Bradford West by-election
Template:Country data United KingdomTemplate:Namespace detect showall
← 2010 29 March 2012 (2012-03-29)

The Bradford West seat in the House of Commons.
Election by simple majority using first past the post.
Triggered by resignation of incumbent

  George Galloway 2007-02-24.jpg    
Candidate George Galloway Imran Hussain Jackie Whiteley
Party Respect Party Labour Party (UK) Conservative Party (UK)
Popular vote 18,341 8,201 2,746
Percentage 55.9 25.0 8.4
     
Candidate Jeanette Sunderland Sonja McNally Dawud Islam
Party Liberal Democrats (UK) UK Independence Party Green Party of England and Wales
Popular vote 1,505 1,085 481
Percentage 4.6 3.3 1.5

A map of West Yorkshire with black lines dividing the area into irregular shapes
Boundary of Bradford West in West Yorkshire.

MP before election

Marsha Singh
Labour Party (UK)

Subsequent MP

George Galloway
Respect Party

{{Infobox election
 | election_name      = 2012 Bradford West by-election
 | type               = By-election
 | country            = United Kingdom
 | seats_for_election = The [[Bradford West (UK Parliament constituency)|Bradford West]] seat in the [[House of Commons of the United Kingdom|House of Commons]].<br />Elected by simple majority using [[first past the post]].<br />Triggered by resignation of incumbent
 | ongoing            = no
 | previous_election  = 2010 United Kingdom general election
 | previous_year      = 2010
 | next_election      = 
 | next_year          = 
 | election_date      = {{Start date|2012|03|29|df= y}}
 | candidate1         = [[George Galloway]]

 | image1             = George Galloway 2007-02-24.jpg
 | party1             = Respect Party
 | last_election1     = 1,245
 | popular_vote1      = 18,341
 | percentage1        = 55.9
 | candidate2         = Imran Hussain

 | image2             =  
 | party2             = Labour Party (UK)
 | last_election2     = 18,401
 | popular_vote2      = 8,201
 | percentage2        = 25.0
 | candidate3         = Jackie Whiteley

 | image3             =  
 | party3             = Conservative Party (UK)
 | last_election3     = 12,638
 | popular_vote3      = 2,746
 | percentage3        = 8.4
 | candidate4         = Jeanette Sunderland

 | image4             = 
 | party4             = Liberal Democrats
 | last_election4     = 4,732
 | popular_vote4      = 1,505
 | percentage4        = 4.6
 | candidate5         = Sonja McNally

 | image5             =  
 | party5             = UK Independence Party
 | last_election5     = 812
 | popular_vote5      = 1,085
 | percentage5        = 3.3
 | candidate6         = Dawud Islam

 | image6             =  
 | party6             = Green Party of England and Wales
 | last_election6     = 940
 | popular_vote6      = 481
 | percentage6        = 1.5

 | title              = MP
 | posttitle          = Subsequent MP
 | before_election    = [[Marsha Singh]]
 | before_party       = Labour Party (UK)
 | after_election     = [[George Galloway]]
 | after_party        = Respect Party
 | map_image          = BradfordWest2007Constituency.svg
 | map_size           = 200px
 | map_alt            = A map of West Yorkshire with black lines dividing the area into irregular shapes 
 | map                = 
 | map_caption        = Boundary of Bradford West in [[West Yorkshire]].
}}

 ·