Templat:Kotak Info Pilihan Raya

Daripada Wikipedia, ensiklopedia bebas.
Lompat ke: pandu arah, cari
 
Kotak Info Pilihan Raya
Documentation icon Pendokumenan templat[lihat] [sunting] [sejarah] [nyahcache]
Pendokumenan templat berikut ditransklusikan daripada Templat:Kotak Info Pilihan Raya/doc [sunting]

Medan-medan[sunting | sunting sumber]

{{Infobox Election
| election_name      = 
| country            = 
| type               = 
| ongoing            = 
| party_colour       = 
| previous_election  = 
| previous_year      = 
| next_election      = 
| next_year          = 
| seats_for_election = 
| election_date      = 
| image1             = 
| colour1            = 
| nominee1           = 
| leader1            = 
| leader_since1      = 
| party1             = 
| home_state1        = 
| leaders_seat1      = 
| running_mate1      = 
| last_election1     = 
| seats_needed1      = 
| electoral_vote1    = 
| states_carried1    = 
| seats1             = 
| seat_change1       = 
| popular_vote1      = 
| percentage1        = 
| swing1             = 
| image2             = 
| colour2            = 
| nominee2           = 
| leader2            = 
| leader_since2      = 
| party2             = 
| home_state2        = 
| leaders_seat2      = 
| running_mate2      = 
| last_election2     = 
| seats_needed2      = 
| electoral_vote2    = 
| states_carried2    = 
| seats2             = 
| seat_change2       = 
| popular_vote2      = 
| percentage2        = 
| swing2             = 
| poll1_date         = 
| poll1_source       = 
| poll1_nominee1     = 
| poll1_party1       = 
| poll2_date         = 
| poll2_source       = 
| poll2_nominee1     = 
| poll2_party1       = 
| poll1_date         = 
| poll1_source       = 
| poll1_nominee2     = 
| poll1_party2       = 
| poll2_date         = 
| poll2_source       = 
| poll2_nominee2     = 
| poll2_party2       = 
| map_image          = 
| map_size           = 
| map_caption        = 
| title              = 
| before_election    = 
| before_colour      = 
| after_election     = 
| after_colour       = 
| before_party       = 
| after_party        = 
}}

*Non-optional fields.
† only displayed if the election is ongoing.
‡ only displayed if the election has finished.

Field Type Description
election_name * Nama yang diberikan kepada pilihan raya tersebut. Jika medan in dibiarkan kosong, maka nama mukasurat ini dipaparkan
country * Negara di mana pilihan raya ini diadakan.
type * Jenis pilihan raya. Mesti terdiri daripada salah satu daripada tiga: presiden, legislatif, parlimen.
ongoing * Mesti samada ya atau tidak, samada pilihan raya ini sedang berlangsung atau sudah tamat/sempurna. Medan yang ditandakan dengan satu † hanya dipaparkan jika pilihan raya ini sedang berlangsung. Medan yang ditandakan dengan satu ‡ hanya dipaparkan jika pilihan raya ini sudah tamat. (Default no).
party_colour Juga dieja sebagai party_color. Untuk menutup warna parti masukkan 'tidak'.
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 legislative The MPs elected in the last election.
next_election The page name of the next election of this type.
next_year The year the next election of this type took place.
next_mps legislative The MPs elected in the next election.
seats_for_election legislative The number of seats for election and the house or chamber the seats are for.
election_date Date of election.
image1 Image of Nominee or Party Leader. The number can be changed up to six to display different Nominees or Leaders at the same time.
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 six to display different Nominees or Leaders at the same time.
nominee1 presidential Name of Nominee. When appropriate, candidate1 can be used instead. The number can be changed up to six to display different Nominees at the same time.
leader1 legislative Name of Party Leader. The number can be changed up to six to display different Parties at the same time.
leader_since1 legislative The date the Leader took office. The number can be changed up to six to display different Parties at the same time.
party Political Party using Party shortnames templates.
home_state1 presidential The state the Nominee represents. The number can be changed up to six to display different Nominees at the same time.
leaders_seat1 legislative The seat the Leader represents. The number can be changed up to six to display different Parties at the same time.
running_mate1 presidential The Nominee's Running mate. The number can be changed up to six to display different Nominees at the same time.
last_election1 legislative The seat count and percentage of the vote received at the previous election. The number can be changed up to six to display different Parties at the same time.
electoral_vote1 presidential The electoral votes obtained by the Nominee. The number can be changed up to six to display different Nominees at the same time.
states_carried1 presidential The states carried or won by the Nominee. The number can be changed up to six to display different Nominees at the same time.
seats1 legislative The seats won at the election. The number can be changed up to six to display different Parties at the same time.
seat_change1 legislative The change in the number of seats won at the election compared to the pervious election. The number can be changed up to six 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 six 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 six to display different Nominees or Parties at the same time.
swing1 legislative The swing or change in popular vote at the election compared to the pervious election. The number can be changed up to six to display different Parties at the same time.
seats_needed1 legislative The seats required to gain an overall majority. The number can be changed up to six to display different Parties at the same time.
poll1_date The date of the opinion poll. The number can be changed up to five to display different polls at the same time.
poll1_source The source or ULR 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. The poll number can be changed up to five to display different polls at the same time. The nominee number can be changed up to six to display different Nominees at the same time.
poll1_party1 presidential 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 six to display different Nominees at the same time.
map_image Image of the election map.
map_size Size of image of the election map to be displayed. (Default 300px).
map_caption Caption on image of the election map to be displayed.
title Title decided by the election. (President, Speaker, Government, Prime Minister...)
before_election The President, Speaker, Government or Prime Minister in power before the election.
before_colour Also spelt before_color. Enter a hex colour code (without the #) to override the font colour of before_election.
after_election The President, Speaker, Government or Prime Minister in power as a result of the election.
after_colour Also spelt after_color. Enter a hex colour code (without the #) to override the font colour of after_election.
before_party The party in power before the election.
after_party The party in power as a result of the election.

Notakaki[sunting | sunting sumber]

Paparan[sunting | sunting sumber]

The template can display up to six parties or Nominees at the same time, three on the top row and three on the bottom row. If only 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.

Perbezaan di antara Legislatif and Parlimen[sunting | sunting sumber]

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

Warna[sunting | sunting sumber]

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 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 six for different parties or Nominees. The fields work with both spellings of the word 'colour'.

Penggunaan[sunting | sunting sumber]

Presiden[sunting | sunting sumber]

Pilihan Raya presiden Amerika Syarikat, 2004
Amerika Syarikat
2000 ←
2 November 2004
→ 2008

  George-W-Bush.jpeg John Kerry headshot with US flag.jpg
Parti Republikan Demokrat
Undian popular 62,040,610 59,028,111
Peratusan 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.

President sebelum pilihan raya

George W. Bush
Republikan

President yang dipilih

George W. Bush
Republikan

{{Infobox Election
| election_name = United States presidential election, 2004
| country = United States
| type = presidential
| ongoing = no
| previous_election = United States presidential election, 2000
| previous_year = 2000
| next_election = United States presidential election, 2008
| next_year = 2008
| election_date =  [[2 November]] [[2004]]

<!--        George W. Bush       -->
| image1 = [[image:George-W-Bush.jpeg|150px]]
| nominee1 = [[George W. Bush]]
| party1 = Republican Party (United States)
| 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 = [[image:John Kerry headshot with US flag.jpg|130px]]
| nominee2 = [[John Kerry]]
| party2 = Democratic Party (United States)
| home_state2 = [[Massachusetts]]
| running_mate2 = [[John Edwards]]
| electoral_vote2 = 251
| states_carried2 = 19+[[Washington, D.C.|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 = President
| before_election = [[George W. Bush]]
| before_party = Republican Party (United States)
| after_election = [[George W. Bush]]
| after_party = Republican Party (United States)
}}


Kelangsungan pilihan raya Presiden[sunting | sunting sumber]

Please DO NOT add this infobox to United States presidential election, 2008. It is only here as an example.
United States presidential election, 2008
Amerika Syarikat
2004 ←
4 November 2008
→ 2012

  Hillary Rodham Clinton.jpg Sen. Barack Obama smiles.jpg John Edwards, official Senate photo portrait.jpg
Calon Hillary Clinton Barack Obama John Edwards
Parti Demokrat Demokrat Demokrat
Negeri asal New York Illinois North Carolina

  Rudy Giuliani.jpg Fred Thompson.jpg John McCain official photo portrait.JPG
Calon Rudy Giuliani Fred Thompson John McCain
Parti Republikan Republikan Republikan
Negara tuan rumah New York Tennessee Arizona

Electoral map.svg

Presidential electoral votes by state.

Calon President

George W. Bush
Republikan

{{Infobox Election
| election_name = United States presidential election, 2008
| country = United States
| type = presidential
| ongoing = yes
| previous_election = United States presidential election, 2004
| previous_year = 2004
| next_election = <!-- United States presidential election, 2012 -->
| next_year = 2012
| election_date =  [[4 November]] [[2008]]

<!--        Hillary Rodham Clinton      -->
| image1 = [[image:Hillary Rodham Clinton.jpg|125px]]
| candidate1 = [[Hillary Rodham Clinton|Hillary Clinton]]
| party1 = Democratic Party (United States)
| home_state1 = [[New York]]
| running_mate1 = 
| electoral_vote1 = 
| states_carried1 = 
| popular_vote1 = 
| percentage1 = 

<!--            Barack Obama           -->
| image2 = [[image:Sen._Barack_Obama_smiles.jpg|125px]]
| candidate2 = [[Barack Obama]]
| party2 = Democratic Party (United States)
| home_state2 = [[Illinois]]
| running_mate2 = 
| electoral_vote2 = 
| states_carried2 = 
| popular_vote2 = 
| percentage2 = 

<!--            John Edwards           -->
| image3 = [[image:John Edwards, official Senate photo portrait.jpg|125px]]
| candidate3 = [[John Edwards]]
| party3 = Democratic Party (United States)
| home_state3 = [[North Carolina]]
| running_mate3 = 
| electoral_vote3 = 
| states_carried3 = 
| popular_vote3 = 
| percentage3 = 

<!--            Rudy Giuliani          -->
| image4 = [[image:Rudy Giuliani.jpg|125px]]
| candidate4 = [[Rudy Giuliani]]
| party4 = Republican Party (United States)
| home_state4 = [[New York]]
| running_mate4 = 
| electoral_vote4 = 
| states_carried4 = 
| popular_vote4 = 
| percentage4 = 

<!--        Fred Thompson              -->
| image5 = [[image:Fred Thompson.jpg|110px]]
| candidate5 = [[Fred Thompson]]
| party5 = Republican Party (United States)
| home_state5 = [[Tennessee]]
| running_mate5 = 
| electoral_vote5 = 
| states_carried5 = 
| popular_vote5 = 
| percentage5 = 

<!--            John McCain            -->
| image6 = [[image:John McCain official photo portrait.JPG|125px]]
| candidate6 = [[John McCain]]
| party6 = Republican Party (United States)
| 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 = Electoral map.svg
| map_size = 350px
| map_caption = Presidential electoral votes by state.

| title = Presiden
| before_election = [[George W. Bush]]
| before_party = Republican Party (United States)
| after_election = 
| after_party = 
}}


Legislative or Parliamentary[sunting | sunting sumber]

United Kingdom general election, 2005
United Kingdom
2001 ←
5 May 2005
→ Next

All 646 seats to the House of Commons
  Parti pertama Parti kedua Parti ketiga
  Tony Blair cropped from defenselink.jpg Michael Howard.jpg Charles Peter Kennedy.jpg
Pemimpin Tony Blair Michael Howard Charles Kennedy
Parti Buruh Konservatif [[Liberal Democrats (UK)|Templat:Liberal Democrats (UK)/meta/shortname]]
Pemimpin sejak 21 July 1994 6 November 2003 9 August 1999
Kerusi pemimpin Sedgefield Folkestone and Hythe Ross, Skye and Lochaber
Pilihan raya terdahulu 412 seats, 40.7% 166 seats, 31.7% 52 seats, 18.3%
Kerusi yang dimenangi 356 198 62
Perubahan kerusi -56 +33 +11
Undian popular 9,562,122 8,772,598 5,981,874
Peratusan 35.3% 32.3% 22.1%
Undi berpindah -5.5% +0.6% +3.7%

PM sebelum pilihan raya

Tony Blair
Buruh

PM yang dipilih

Tony Blair
Buruh

{{Infobox Election
| election_name = United Kingdom general election, 2005
| country = United Kingdom
| type = parliamentary
| ongoing = no
| previous_election = United Kingdom general election, 2001
| previous_year = 2001
| previous_mps = MPs elected in the United Kingdom general election, 2001
| next_election = Next United Kingdom general election
| next_year = Next
| next_mps = MPs elected in the United Kingdom general election, 2009/10
| seats_for_election = All 646 seats to the [[British House of Commons|House of Commons]]
| election_date = [[5 May]] [[2005]]

<!--      Labour      -->
| image1 = 
| leader1 = [[Tony Blair]]
| leader_since1 = [[21 July]] [[1994]]
| party1 = Labour Party (UK)
| leaders_seat1 = [[Sedgefield (UK Parliament constituency)|Sedgefield]]
| last_election1 = 412 seats, 40.7%
| seats1 = 356
| seat_change1 = -56
| popular_vote1 = 9,562,122
| percentage1 = 35.3%
| swing1 = -5.5%

<!--      Conservative     -->
| image2 = [[Image:Michael Howard.jpg|120px]]
| leader2 = [[Michael Howard]]
| leader_since2 = [[6 November]] [[2003]]
| party2 = Conservative Party (UK)
| leaders_seat2 = [[Folkestone and Hythe (UK Parliament constituency)|Folkestone and Hythe]]
| last_election2 = 166 seats, 31.7%
| seats2 = 198
| seat_change2 = +33
| popular_vote2 = 8,772,598
| percentage2 = 32.3%
| swing2 = +0.6%

<!--      Liberal Democrats      -->
| image3 = [[Image:Charles Peter Kennedy.jpg|120px]]
| leader3 = [[Charles Kennedy]]
| leader_since3 = [[9 August]] [[1999]]
| party3 = Liberal Democrats (UK)
| leaders_seat3 = [[Ross, Skye and Lochaber (UK Parliament constituency)|Ross, Skye and Lochaber]]
| last_election3 = 52 seats, 18.3%
| seats3 = 62
| seat_change3 = +11
| popular_vote3 = 5,981,874
| percentage3 = 22.1%
| swing3 = +3.7%

| title = PM
| before_election = [[Tony Blair]]
| before_party = Labour Party (UK)
| after_election = [[Tony Blair]]
| after_party = Labour Party (UK)
}}


Ongoing Legislative or Parliamentary[sunting | sunting sumber]

54th United Kingdom general election
United Kingdom
2005 ←
→ Next

All 650 seats to the House of Commons
  Davidcameron.jpg
Pemimpin Gordon Brown David Cameron Nick Clegg
Parti Buruh Konservatif [[Liberal Democrats|Templat:Liberal Democrats/meta/shortname]]
Pemimpin sejak 24 June 2007 6 December 2005 18 December 2007
Kerusi pemimpin Kirkcaldy and Cowdenbeath Witney Sheffield Hallam
Pilihan raya terdahulu 356 seats, 35.3% 198 seats, 32.3% 62 seats, 22%
Kerusi yang diperlukan -64 +131 +264
Opinion polls
2007-07-29[1] 39% 33% 15%
2007-07-25[2] 41% 32% 16%
2007-07-22[3] 38% 32% 20%
2007-07-17[4] 41% 35% 15%

Calon PM

Gordon Brown
Buruh

{{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= MPs elected in the United Kingdom general election, 2005
| next_election = <!-- 55th United Kingdom general election -->
| next_year = Next
| next_mps= <!-- MPs elected in the United Kingdom general election, 55th -->
| seats_for_election = All 650 seats to the [[British House of Commons|House of Commons]]
| election_date = 

<!--      Labour     -->
| image1 = 
| leader1 = [[Gordon Brown]]
| leader_since1 = [[24 June]] [[2007]]
| party1 = Labour Party (UK)
| leaders_seat1 = [[Kirkcaldy and Cowdenbeath (UK Parliament constituency)|Kirkcaldy and Cowdenbeath]]
| last_election1 = 356 seats, 35.3%
| seats_needed1 = -64
| states_carried1 = 
| seats1 = 
| seat_change1 = 
| popular_vote1 = 
| percentage1 = 
| swing1 = 

<!--      Conservative     -->
| image2 = [[image:Davidcameron.jpg|120px]]
| leader2 = [[David Cameron]]
| leader_since2 = [[6 December]] [[2005]]
| party2 = Conservative Party (UK)
| leaders_seat2 = [[Witney (UK Parliament constituency)|Witney]]
| last_election2 = 198 seats, 32.3%
| seats_needed2 = +131
| states_carried2 = 
| seats2 = 
| seat_change2 = 
| popular_vote2 = 
| percentage2 = 
| swing2 = 

<!--      Liberal Democrats     -->
| image3 = 
| leader3 = [[Nick Clegg]]
| leader_since3 = [[18 December]] [[2007]]
| party3 = Liberal Democrats
| leaders_seat3 = [[Sheffield Hallam (UK Parliament constituency)|Sheffield Hallam]]
| last_election3 = 62 seats, 22%
| seats_needed3 = +264
| states_carried3 = 
| seats3 = 
| seat_change3 = 
| popular_vote3 = 
| percentage3 = 
| swing3 =

<!--      Polls       -->
| poll1_date = [[2007-07-29]]
| poll1_source = http://www.ukpollingreport.co.uk/blog/voting-intention/populus/
| poll1_party1 = '''39%'''
| poll1_party2 = 33%
| poll1_party3 = 15%

| poll2_date = [[2007-07-25]]
| poll2_source = http://www.ukpollingreport.co.uk/blog/voting-intention/yougov/
| poll2_party1 = '''41%'''
| poll2_party2 = 32%
| poll2_party3 = 16%

| poll3_date = [[2007-07-22]]
| poll3_source = http://www.ukpollingreport.co.uk/blog/voting-intention/populus/
| poll3_party1 = '''38%'''
| poll3_party2 = 32%
| poll3_party3 = 20%

| poll4_date = [[2007-07-17]]
| poll4_source = http://www.ukpollingreport.co.uk/blog/voting-intention/mori/
| poll4_party1 = '''41%'''
| poll4_party2 = 35%
| poll4_party3 = 15%

| title = PM
| before_election = [[Gordon Brown]]
| before_party = Labour Party (UK)
| after_election = 
| after_party = 
}}