Template:Infobox election

维基百科,自由的百科全书
跳转至: 导航搜索
Documentation icon 模板文档[查看] [编辑] [页面历史] [清除]

總統或議會選舉信息框。

用法[编辑]

Remove fields for different types of election.

{{Infobox election
| election_name     = 
| country           = 
| flag_year         = 
| flag_image        = 
| type              = <!-- presidential, legislative, or parliamentary -->
| vote_type         = Popular <!-- default -->
| ongoing           = 
| party_colour      = 
| party_name        = 
| alliance_name     = 
| previous_election = 
| previous_year     = 
| previous_mps      = 
| election_date     = <!-- {{Start date|YYYY|MM|DD}} -->
| elected_mps       = 
| next_election     = <!-- link to file. If red link, then it will not be linked-->
| next_year         = 
| next_mps          = 
| votes_for_election= 
| needed_votes      = 
| seats_for_election= 
| majority_seats    = 
| opinion_polls     = 
| registered        = 
| turnout           = 
<!--        person 1        -->
| image1            = 
| colour1           = 
| nominee1          = <!-- presidential only, 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            = 
| 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       = 
}}
*必填
† 只在ongoing為"yes"(選舉未完結)時才會顯示
‡ 只在ongoing為"no"(選舉已完結)時才會顯示
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 * 選舉類型。只可填以下其中一個:presidential、legislative、parliamentary。 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 * 填 yes(將進行的選舉)或 no(已完結)。 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.(預設為 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 前次同類型選舉的條目名稱(不存在的條目不會有連結)
previous_year 前次同類型選舉的年份。
previous_mps legislative
parliamentary
Also spelled previous_MPs or previous_members, page name for the members elected in the last election.
election_date 選舉日期 - use {{Start date}}
elected_mps legislative
parliamentary
Wikilink to the MPs elected in this election.
next_election 下次同類型選舉的條目名稱(不存在的條目不會有連結)
next_year 下次同類型選舉的年份
next_mps 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.
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.
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
黨領袖姓名。最多可顯示9個黨(leader1至leader9)。
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.
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.
districs_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 是次選舉前的總統、議長、政府或總理,若連任則標註現任。
before_party 是次選舉前的執政黨。 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 是次選舉後的總統、議長、政府或總理。
after_party 是次選舉後的執政黨。

注意[编辑]

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'.

範例[编辑]

總統選舉[编辑]

2004年美国总统选举
美國
2000 ←
2004年11月2日 (2004-11-02) → 2008

  George-W-Bush.jpeg John Kerry headshot with US flag.jpg
获提名 乔治·沃克·布什 约翰·克里
政党 共和党 民主党
本州 德克萨斯州 麻薩諸塞州
竞选搭档 迪克·切尼 约翰·爱德华兹
选举人票 286 251
胜出州/省 31 19+DC
民选得票 62,040,610 59,028,111
得票率 50.7% 48.3%

US presidential election 2004 map.svg

Presidential election results map. Red denotes states won by Bush/Cheney (31), Blue denotes those won by Kerry/Edwards (19+DC). Light blue is the electoral vote for "John Edwards" (sic) by an undetermined Minnesota "faithless elector". Numbers indicate the number of electoral votes allotted to each state.

總統

乔治·沃克·布什
共和党

當選 總統

乔治·沃克·布什
共和党

{{Infobox Election
| election_name = 2004年美国总统选举
| country = 美國
| type = presidential
| ongoing = no
| previous_election = 2000年美国总统选举
| previous_year = 2000
| next_election = 2008年美国总统选举
| next_year = 2008
| election_date =  {{Start date|2004|11|2}}

<!--        George W. Bush       -->
| image1 = [[File:George-W-Bush.jpeg|150px]]
| nominee1 = [[乔治·沃克·布什]]
| party1 = 共和黨 (美國)
| home_state1 = [[德克萨斯州]]
| running_mate1 = [[迪克·切尼]]
| electoral_vote1 = 286
| states_carried1 = 31
| popular_vote1 = 62,040,610
| percentage1 = 50.7%

<!--          John Kerry        -->
| image2 = [[File:John Kerry headshot with US flag.jpg|130px]]
| nominee2 = [[约翰·克里]]
| party2 = 民主黨 (美國)
| home_state2 = [[麻薩諸塞州]]
| running_mate2 = [[约翰·爱德华兹]]
| electoral_vote2 = 251
| states_carried2 = 19+[[华盛顿哥伦比亚特区|DC]]
| popular_vote2 = 59,028,111
| percentage2 = 48.3%

| map_image = US presidential election 2004 map.svg
| map_size = 350px
| map_caption = Presidential election results map.

| title = 總統
| before_election = [[乔治·沃克·布什]]
| before_party = 共和黨 (美國)
| after_election = [[乔治·沃克·布什]]
| after_party = 共和黨 (美國)
}}

將會舉行的總統選舉[编辑]

2008年美国总统选举
美國
2004 ←
2008年11月4日 (2008-11-04) → 2012

  Hillary Rodham Clinton.jpg Sen. Barack Obama smiles.jpg John Edwards, official Senate photo portrait.jpg
候选 希拉里·克林顿 贝拉克·奥巴马 约翰·爱德华兹
政党 民主党 民主党 民主党
本州 紐約州 伊利諾伊州 North Carolina
民意调查
2007-08-03[1] 45% 22% 9%
2007-08-01[2] 46% 23% 12%
2007-08-01[3] 44% 23% 14%
2007-07-30[4] 43% 22% 13%

  Rudy Giuliani.jpg Fred Thompson.jpg John McCain official photo portrait.JPG
候选 魯迪·朱利安尼 弗雷德·汤普森 約翰·麥凱恩
政党 共和党 共和党 共和党
本州 紐約州 田納西州 Arizona
民意调查
2007-08-03[5] 26% 21% 11%
2007-08-01[6] 32% 20% 13%
2007-08-01[7] 33% 20% 17%
2007-07-30[8] 30% 22% 13%

US Electoral College Map.PNG

Presidential electoral votes by state.

現任總統

乔治·沃克·布什
共和党

{{Infobox Election
| election_name = 2008年美国总统选举
| country = 美國
| type = presidential
| ongoing = yes
| previous_election = 2004年美国总统选举
| previous_year = 2004
| next_election = <!-- United States presidential election, 2012 -->
| next_year = 2012
| election_date =  {{Start date|2008|11|4}}

<!--        Hillary Rodham Clinton      -->
| image1 = [[File:Hillary Rodham Clinton.jpg|125px]]
| candidate1 = [[希拉里·克林顿]]
| party1 = 民主黨 (美國)
| home_state1 = [[紐約州]]
| running_mate1 = 
| electoral_vote1 = 
| states_carried1 = 
| popular_vote1 = 
| percentage1 = 

<!--            Barack Obama           -->
| image2 = [[File:Sen._Barack_Obama_smiles.jpg|125px]]
| candidate2 = [[贝拉克·奥巴马]]
| party2 = 民主黨 (美國)
| home_state2 = [[伊利諾伊州]]
| running_mate2 = 
| electoral_vote2 = 
| states_carried2 = 
| popular_vote2 = 
| percentage2 = 

<!--            John Edwards           -->
| image3 = [[File:John Edwards, official Senate photo portrait.jpg|125px]]
| candidate3 = [[约翰·爱德华兹]]
| party3 = 民主黨 (美國)
| home_state3 = [[North Carolina]]
| running_mate3 = 
| electoral_vote3 = 
| states_carried3 = 
| popular_vote3 = 
| percentage3 = 

<!--            Rudy Giuliani          -->
| image4 = [[File:Rudy Giuliani.jpg|125px]]
| candidate4 = [[魯迪·朱利安尼]]
| party4 = 共和黨 (美國)
| home_state4 = [[紐約州]]
| running_mate4 = 
| electoral_vote4 = 
| states_carried4 = 
| popular_vote4 = 
| percentage4 = 

<!--        Fred Thompson              -->
| image5 = [[File:Fred Thompson.jpg|110px]]
| candidate5 = [[弗雷德·汤普森]]
| party5 = 共和黨 (美國)
| home_state5 = [[田納西州]]
| running_mate5 = 
| electoral_vote5 = 
| states_carried5 = 
| popular_vote5 = 
| percentage5 = 

<!--            John McCain            -->
| image6 = [[File:John McCain official photo portrait.JPG|125px]]
| candidate6 = [[約翰·麥凱恩]]
| party6 = 共和黨 (美國)
| home_state6 = [[Arizona]]
| running_mate6 = 
| electoral_vote6 = 
| states_carried6 = 
| popular_vote6 = 
| percentage6 = 

<!--      Polls       -->
| poll1_date = 2007-08-03
| poll1_source = http://www.rasmussenreports.com/public_content/politics/election_2008__1/daily_presidential_tracking_polling_history
| poll1_candidate1 = '''45%'''
| poll1_candidate2 = 22%
| poll1_candidate3 = 9%
| poll1_candidate4 = '''26%'''
| poll1_candidate5 = 21%
| poll1_candidate6 = 11%

| poll2_date = 2007-08-01
| poll2_source = http://www.msnbc.msn.com/id/20109634/site/newsweek/
| poll2_candidate1 = '''46%'''
| poll2_candidate2 = 23%
| poll2_candidate3 = 12%
| poll2_candidate4 = '''32%'''
| poll2_candidate5 = 20%
| poll2_candidate6 = 13%

<!--      Seperate Polls for Dems and GOP       -->
| poll3_date1 = 2007-08-01
| poll3_source1 = http://www.pollingreport.com/wh08dem.htm
| poll3_candidate1 = '''44%'''
| poll3_candidate2 = 23%
| poll3_candidate3 = 14%

| poll3_date2 = 2007-08-01
| poll3_source2 = http://www.pollingreport.com/wh08rep.htm
| poll3_candidate4 = '''33%'''
| poll3_candidate5 = 20%
| poll3_candidate6 = 17%

| poll4_date1 = 2007-07-30
| poll4_source1 = http://www.pollingreport.com/wh08dem.htm
| poll4_candidate1 = '''43%'''
| poll4_candidate2 = 22%
| poll4_candidate3 = 13%

| poll4_date2 = 2007-07-30
| poll4_source2 = http://www.pollingreport.com/wh08rep.htm
| poll4_candidate4 = '''30%'''
| poll4_candidate5 = 22%
| poll4_candidate6 = 13%

| map_image = US Electoral College Map.PNG
| map_size = 350px
| map_caption = Presidential electoral votes by state.

| title = 總統
| before_election = [[乔治·沃克·布什]]
| before_party = 共和黨 (美國)
| after_election = 
| after_party = 
}}

Legislative or parliamentary[编辑]

United Kingdom general election, 2005
英国
2001 ←
2005年5月5日 (2005-05-05) → 2010

All 646 seats to the House of Commons
需324席方能获得绝对多数
#Opinion polls
投票率 61.4%
  第一大黨 第二大黨 第三大黨
  TonyBlairBasra.JPG Michael Howard 1099 cropped.jpg Charles Kennedy.jpg
领袖 Tony Blair Michael Howard Charles Kennedy
政党 工黨 保守黨 自由民主黨
上任时间 21 July 1994 6 November 2003 9 August 1999
代表选区 Sedgefield Folkestone & Hythe Ross, Skye, & Lochaber
上届结果 413 seats, 40.7% 166 seats, 31.7% 52 seats, 18.3%
选前议席 403 165 51
赢得议席 355 198 62
议席差额 -48 +33 +11
民选得票 9,552,436 8,784,915 5,985,454
得票率 35.2% 32.4% 22.0%
游离票率 -5.5% +0.7% +3.7%

2005UKElectionMap.svg

Map of United Kingdom showing constituencies won

Prime Minister

Tony Blair
工黨

當選 Prime Minister

Tony Blair
工黨

{{Infobox election
| election_name     = United Kingdom general election, 2005
| country           = United Kingdom
| type              = parliamentary
| previous_election = United Kingdom general election, 2001
| previous_year     = 2001
| previous_mps      = List of MPs elected in the United Kingdom general election, 2001
| election_date     = {{Start date|2005|05|05}}
| elected_mps       = [[List of MPs elected in the United Kingdom general election, 2005|members]]
| next_election     = United Kingdom general election, 2010
| next_year         = 2010
| next_mps          = List of MPs elected in the United Kingdom general election, 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%
<!-- Labour -->
| image1            = [[File:TonyBlairBasra.JPG|160x150px]]
| 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            = [[File:Michael Howard 1099 cropped.jpg|160x150px]]
| 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            = [[File:Charles Kennedy.jpg|160x150px]]
| 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)
}}

Ongoing legislative or parliamentary[编辑]

54th United Kingdom general election
英国
2005 ←
On or before 2010年6月3日 (2010-06-03)

All 650 seats to the House of Commons
需326席方能获得绝对多数
Opinion polling for the United Kingdom general election, 2010
  GordonBrown1234 cropped.jpg David Cameron - World Economic Forum Annual Meeting Davos 2010.jpg Nick Clegg by the 2009 budget cropped.jpg
领袖 Gordon Brown David Cameron Nick Clegg
政党 工黨 保守黨 自由民主黨
上任时间 24 June 2007 6 December 2005 18 December 2007
代表选区 Kirkcaldy & Cowdenbeath Witney Sheffield Hallam
上届结果 355 seats, 35.2% 198 seats, 32.4% 62 seats, 22.0%
当前议席 345 193 63
所需议席 -20席 132席 262席

現任Prime Minister

Gordon Brown
工黨

{{Infobox election
| election_name     = 54th United Kingdom general election
| country           = United Kingdom
| type              = parliamentary
| ongoing           = yes
| previous_election = United Kingdom general election, 2005
| previous_year     = 2005
| previous_mps      = List of MPs elected in the United Kingdom general election, 2005
| election_date     = On or before {{Start date|2010|06|03}}
| elected_mps       = 
| next_election     = 
| next_year         = 
| next_mps          = 
| seats_for_election= All [[List of United Kingdom Parliament constituencies|650 seats]] to the [[House of Commons of the United Kingdom|House of Commons]]
| majority_seats    = 326
| opinion_polls     = Opinion polling for the United Kingdom general election, 2010
| turnout           = 
<!-- Labour -->
| image1            = [[File:GordonBrown1234_cropped.jpg|160x150px]]
| leader1           = [[Gordon Brown]]
| party1            = Labour Party (UK)
| leader_since1     = [[Labour Party (UK) leadership election, 2007|24 June, 2007]]
| leaders_seat1     = [[Kirkcaldy and Cowdenbeath (UK Parliament constituency)|Kirkcaldy & Cowdenbeath]]
| last_election1    = 355 seats, 35.2%
| seats_before1     = 345
| seats_needed1     = -20
| seats1            = 
| seat_change1      = 
| popular_vote1     = 
| percentage1       = 
| swing1            = 
<!-- Conservative -->
| image2            = [[File:David Cameron - World Economic Forum Annual Meeting Davos 2010.jpg|160x150px]]
| leader2           = [[David Cameron]]
| party2            = Conservative Party (UK)
| leader_since2     = [[Conservative Party (UK) leadership election, 2005|6 December, 2005]]
| leaders_seat2     = [[Witney (UK Parliament constituency)|Witney]]
| last_election2    = 198 seats, 32.4%
| seats_before2     = 193
| seats_needed2     = 132
| seats2            = 
| seat_change2      = 
| popular_vote2     = 
| percentage2       = 
| swing2            = 
<!-- Liberal Democrat -->
| image3            = [[File:Nick Clegg by the 2009 budget cropped.jpg|160x150px]]
| leader3           = [[Nick Clegg]]
| party3            = Liberal Democrats
| leader_since3     = [[Liberal Democrats leadership election, 2007|18 December 2007]]
| leaders_seat3     = [[Sheffield Hallam (UK Parliament constituency)|Sheffield Hallam]]
| last_election3    = 62 seats, 22.0%
| seats_before3     = 63
| seats_needed3     = 262
| seats3            = 
| seat_change3      = 
| popular_vote3     = 
| percentage3       = 
| swing3            = 
<!-- map -->
| map_image         = 
| map_size          = 
| map_caption       = 
<!-- bottom -->
| title             = Prime Minister
| before_election   = [[Gordon Brown]]
| before_party      = Labour Party (UK)
| after_election    = 
| after_party       = 
}}

By-election[编辑]

Bradford West by-election, 2012
英国
2010 ←
2012年3月29日 (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    
候选 George Galloway Imran Hussain Jackie Whiteley
政党 尊重黨 工黨 保守黨
民选得票 18,341 8,201 2,746
得票率 55.9 25.0 8.4

     
候选 Jeanette Sunderland Sonja McNally Dawud Islam
政党 自由民主黨 英国独立党 英格蘭和威爾斯綠黨
民选得票 1,505 1,085 481
得票率 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

Marsha Singh
工黨

Subsequent MP

George Galloway
尊重黨

{{Infobox election
| election_name = Bradford West by-election, 2012
| 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 = United Kingdom general election, 2010
| previous_year = 2010
| next_election = 
| next_year = 
| election_date = {{Start date|2012|03|29|df=y}}
| candidate1 = [[George Galloway]]
| image1 =[[File:George Galloway 2007-02-24.jpg|100px]]
| 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]].
}}

微格式[编辑]

此模板產生的HTML标记包含了hCalendar微格式,能夠讓電腦解析事件的详情,便于维基百科将该条目归类,或让用户通过浏览器将该事件添加进日历或日记应用程序中。關於微格式的更多使用資訊,請參閱維基百科的微格式專題

日期只会在使用了{{Start date}}或{{End date}}的情况下显示,URL只会在使用了{{Url}}的情况下被包含。

hCalendar使用的HTML class包括:

  • attendee
  • contact
  • description
  • dtend
  • dtstart
  • location
  • organiser
  • summary
  • url
  • vevent

請勿移除或修改這些class,也請勿更改或移除有相關設定之模板及設定。

Note: If no date is entered, then the microformat is not emitted.

Template Data[编辑]

这是一个用于新版可视化编辑器模板数据文档。

Infobox election

An infobox for election.

模板参数

参数 说明 类型 状态
Name election_name

Name given to the election.

默认值
PAGENAME
例子
自动值
字符串 可选
Country country

Country where the election took place.

默认值
例子
自动值
字符串 可选
Flag year 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).

默认值
current flag
例子
自动值
字符串 可选
Flag image flag_image

For non-country elections, specify the full name of the flag, coat-of-arms, or seal image to display.

默认值
例子
自动值
字符串 可选
Type type

The type of election. Must be one of four: presidential, legislative, parliamentary or by-election. Legislative after the election will display majority and minority party, rather than first and second party.

默认值
例子
自动值
字符串 可选
Vote type vote_type

The type of votes recorded at popular_voten

默认值
Popular
例子
自动值
字符串 可选
Ongoing ongoing

Must be either yes or no, whether the election is yet to take place, or completed.

默认值
No
例子
自动值
字符串 可选
Party colour party_colour

Also spelled party_color. To turn off the party colours enter 'no'.

默认值
例子
自动值
字符串 可选
Party name party_name

To turn off linking to the parties enter 'no'.

默认值
例子
自动值
字符串 可选
Alliance name alliance_name

To turn off linking to the alliances enter 'no'.

默认值
例子
自动值
字符串 可选
Previous election previous_election

The page name of the last election of this type.

默认值
例子
自动值
字符串 可选
Previous year previous_year

The year the last election of this type took place.

默认值
例子
自动值
字符串 可选
Previous members previous_mps

Also spelled previous_MPs or previous_members, page name for the members elected in the last election.

默认值
例子
自动值
字符串 可选
Election date election_date

Date of election - use {{Start date}}.

默认值
例子
自动值
字符串 可选
Elected MPs elected_mps

Wikilink to the MPs elected in this election.

默认值
例子
自动值
字符串 可选
Next election 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 next_year

The year the next election of this type took place.

默认值
例子
自动值
字符串 可选
Next MPs next_mps

Also spelled next_MPs or next_members, page name for the members elected in the next election.

默认值
例子
自动值
字符串 可选
Votes for election votes_for_election

The number of votes for election and the system of voting (eg. Electoral College).

默认值
例子
自动值
数值 可选
Needed votes needed_votes

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 seats_for_election

The number of seats for election and the house or chamber the seats are for.

默认值
例子
自动值
数值 可选
Majority seats majority_seats

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 opinion_polls

Pagename or section anchor of opinion polls.

默认值
例子
自动值
字符串 可选
Turnout turnout

Voter turnout for this election.

默认值
例子
自动值
字符串 可选
Image 1 image1

mage 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.

默认值
例子
自动值
页面 可选
Colour 1 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.

默认值
例子
自动值
字符串 可选
Nominee 1 nominee1

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.

默认值
例子
自动值
字符串 可选
Candidate 1 candidate1

Name of Candidate. The number can be changed up to nine to display different Candidates at the same time.

默认值
例子
自动值
字符串 可选
Leader 1 leader1

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.

默认值
例子
自动值
字符串 可选
Party 1 party1

Political Party using Political party shortname templates. The number can be changed up to nine to display different Parties at the same time.

默认值
例子
自动值
字符串 可选
Alliance 1 alliance1

Political alliance in elections where coalition politics is common.

默认值
例子
自动值
字符串 可选
Home state 1 home_state1

The state the Nominee or Candidate represents. The number can be changed up to nine to display different Nominees at the same time.

默认值
例子
自动值
字符串 可选
Running mate 1 running_mate1

The Nominee's Running mate. The number can be changed up to nine to display different Nominees at the same time.

默认值
例子
自动值
字符串 可选
Electoral vote 1 electoral_vote1

The electoral votes obtained by the Nominee. The number can be changed up to nine to display different Nominees at the same time.

默认值
例子
自动值
字符串 可选
Delegate count 1 delegate_count1

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 carried 1 states_carried1

he states carried or won by the Nominee. The number can be changed up to nine to display different Nominees at the same time.

默认值
例子
自动值
字符串 可选
Districts won 1 districts_won1

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 since 1 leader_since1

The date the Leader took office. The number can be changed up to nine to display different Parties at the same time.

默认值
例子
自动值
字符串 可选
Leaders seat 1 leaders_seat1

The seat the Leader represents. The number can be changed up to nine to display different Parties at the same time.

默认值
例子
自动值
字符串 可选
Last election 1 last_election1

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 before 1 seats_before1

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 needed 1 seats_needed1

The seats required to gain an overall majority. The number can be changed up to nine to display different Parties at the same time.

默认值
例子
自动值
字符串 可选
Seats 1 seats1

The seats won at the election. The number can be changed up to nine to display different Parties at the same time.

默认值
例子
自动值
字符串 可选
Seats after 1 seats_after1

The seat count after the election. The number can be changed up to nine to display different Parties at the same time.

默认值
例子
自动值
字符串 可选
Seat change 1 seat_change1

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 vote 1 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.

默认值
例子
自动值
字符串 可选
Percentage 1 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.

默认值
例子
自动值
字符串 可选
Swing 1 swing1

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.

默认值
例子
自动值
字符串 可选
Poll 1 date poll1_date

The date of an opinion poll. The number can be changed up to five to display different polls at the same time.

默认值
例子
自动值
字符串 可选
Poll 1 source 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.

默认值
例子
自动值
字符串 可选
Poll 1 nominee1 poll1_nominee1

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.

默认值
例子
自动值
字符串 可选
Poll 1 party 1 poll1_party1

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.

默认值
例子
自动值
字符串 可选
1 blank 1blank

Title of an auxiliary row. The number can be changed up to six to display six extra rows.

默认值
例子
自动值
字符串 可选
1 data 1 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 map_image

Page name for the election map file.

默认值
例子
自动值
页面 可选
Map size map_size

Size of image of the election map to be displayed.

默认值
300px
例子
自动值
数值 可选
Map alt map_alt

Alt text for the election map.

默认值
例子
自动值
字符串 可选
Map map

A freeform replacement for the above, which can be used to insert extension:ImageMaps or templates instead of images.

默认值
例子
自动值
可选
Map caption map_caption

Caption on image of the election map to be displayed.

默认值
例子
自动值
字符串 可选
Title title

Title of the leader before the election. (President, Speaker, Government, Prime Minister).

默认值
例子
自动值
字符串 可选
Before election before_election

The leader in power before the election, labeled incumbent if the election is yet to take place.

默认值
例子
自动值
字符串 可选
Before party before_party

The party in power before the election. This can be set to 'Acting (law)' (which will display as 'Acting') if necessary.

默认值
例子
自动值
字符串 可选
Post-title posttitle

Title of the victor of the election (President-elect, Prime Minister-designate), only if different than before.

默认值
例子
自动值
字符串 可选
After election after_election

The leader in power as a result of the election.

默认值
例子
自动值
字符串 可选
After party after_party

The party in power as a result of the election.

默认值
例子
自动值
字符串 可选