Khuôn mẫu:Infobox election
![文件圖示](https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
![]() | Bổn khuôn mẫu đựng phức tạp mà tinh vi mở rộng ngữ pháp. Biên tập bổn khuôn mẫu trước, kiến nghị ngài trước quen thuộcPhân tích khí hàm sốCùng bổn khuôn mẫu thiết kế ý nghĩ, vận tác nguyên lý chờ. Nếu ngài biên tập dẫn phát rồi ngoài ý muốn vấn đề, thỉnh mau chóngHuỷ bỏBiên tập, bởi vì bổn khuôn mẫu khả năng bị đại lượng giao diện sử dụng. Ngài sở làm biên tập nhưng trước tiên ởBổn khuôn mẫu hộp cátHoặc ngàiCá nhân giao diệnTrung tiến hành thí nghiệm. |
![]() | Bổn khuôn mẫu không thích hợpCuộc bầu cử;Thỉnh sử dụng{{Infobox referendum}}Thay thế. |
![]() | Này khuôn mẫu sử dụngLua ngôn ngữ: |
Bổn tin tức khung miêu tả tổng thống tuyển cử, sơ tuyển, lập pháp tuyển cử hoặc hội nghị tuyển cử.
Đối với chính đảng đông đảo lập pháp tuyển cử, thỉnh suy xét sử dụng {{Infobox legislative election}}.
Cách dùng
Remove fields for different types of election.
{{Infobox election | election_name = 2016 Presidential Election | country = United States | flag_year = | flag_image = | type = <!-- presidential--> | vote_type = Popular <!-- default --> | ongoing = | party_colour = | party_name = | alliance_name = | previous_election = 2012 | previous_year = | outgoing_party = | election_date = <!-- {{Start date|2016|11|8}} --> | elected_members = | next_election = <!--2020--> | next_year = | votes_for_election= | needed_votes = 270 | seats_for_election= | majority_seats = | opinion_polls = | registered = | turnout = 58.9% | 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 = <!-- person 1 --> | image1 = | colour1 = | nominee1 = <!-- presidential only, when appropriate, candidate1 can be used instead --> | candidate1 = '''Donald Trump''' | leader1 = <!-- legislative or parliamentary only--> | party1 = '''Republican''' | alliance1 = <!-- presidential --> | home_state1 = New York | running_mate1 = [[Newt Gingrich]] | electoral_vote1 = '''348''' | delegate_count1 = '''73,248,907''' | states_carried1 = '''35''' | 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 = Hillary Clinton | candidate2 = <!-- any type of election --> | leader2 = <!-- legislative or parliamentary only--> | party2 = Democratic | alliance2 = <!-- presidential --> | home_state2 = New York | running_mate2 = Terry McAullife | electoral_vote2 = 190 | delegate_count2 = 54,806, 936 | states_carried2 = 15 | 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 | Cử hành quốc gia hoặc khu vực. | |
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 | * | Tuyển cử loại hình. Chỉ nhưng điền dưới trong đó một cái: presidential, legislative, parliamentary hoặc 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 | * | Điền yes ( đem tiến hành tuyển cử ) hoặc no ( đã kết thúc ). 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 ( dự thiết vì no ). |
party_colour | Also spelledparty_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 | Lần trước đồng loại hình tuyển cử điều mục tên ( không tồn tại điều mục sẽ không có liên kết ) | |
previous_year | Lần trước đồng loại hình tuyển cử niên đại. | |
previous_mps(DEPRECATED) | legislative parliamentary |
Also spelledprevious_MPsorprevious_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 | Tuyển cử ngày - 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 | Lần sau đồng loại hình tuyển cử điều mục tên ( không tồn tại điều mục sẽ không có liên kết ) | |
next_year | Lần sau đồng loại hình tuyển cử niên đại | |
next_mps(DEPRECATED, REMOVED) | legislative parliamentary |
Also spellednext_MPsornext_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 amajority 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 ofopinion polls. | |
registered | Đã đăng ký cử tri nhân số | |
turnout | Đầu phiếu suất | |
votes_counted | The number of votes or the number of constituencies, in %, that have been counted after polls have closed.Do not includethe 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. Usevotes_counted,reportingordeclaredaccording 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 thelast_updatefield. Must be linked as normal similar to an article (e.g. [[Greenwich mean time|GMT]]) | |
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 speltcolor1.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 |
Đảng lãnh tụ tên họ. Nhiều nhất nhưng biểu hiện 9 cái đảng ( leader1 đến leader9 ). |
party1 | Political Party usingChính đảng tên gọi tắt khuôn mẫu.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'sRunning mate.The number can be changed up to nine to display different Nominees at the same time. |
electoral_vote1 | presidential ‡ |
Theelectoral votes obtained by the Nominee. The number can be changed up to nine to display different Nominees at the same time. |
projected_vote1 | presidential ‡ |
Theelectoral votes projected for the Nominee. |
delegate_count1 | presidential | The aggregate number ofdelegates 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 toUnited 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 ‡ |
Cùng lần trước tuyển cử tương đối đoạt được thứ tự chỗ ngồi tăng giảm. The number can be changed up to nine to display different Parties at the same time. |
popular_vote1 | ‡ | Đến phiếu. The number can be changed up to nine to display different Nominees or Parties at the same time. |
percentage1 | ‡ | Đến phiếu suất. The number can be changed up to nine to display different Nominees or Parties at the same time. |
swing1 | legislative parliamentary ‡ |
Theswingor 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 | † | Dân ý điều tra ngày. The number can be changed up to five to display different polls at the same time. |
poll1_source | † | Dân ý điều tra nơi phát ra hoặc URL. The number can be changed up to five to display different polls at the same time. |
poll1_nominee1 | presidential † |
The percentage poll 1 gave to nominee 1. When appropriate,poll1_candidate1can 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 textfor the election map. | |
map | A freeform replacement for the above, which can be used to insertextension:ImageMaps or templates instead of images, or insert both Traditional and Simplified Chinese version of the election map file. | |
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 | Là thứ tuyển cử trước tổng thống, chủ tịch quốc hội, chính phủ hoặc tổng lý, nếu liên nhiệm tắc đánh dấu đương nhiệm. | |
before_party | Là thứ tuyển cử trước chấp chính đảng. 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 | ‡ | Là thứ tuyển cử sau tổng thống, chủ tịch quốc hội, chính phủ hoặc tổng lý. |
after_party | ‡ | Là thứ tuyển cử sau chấp chính đảng. |
Chú ý
Bổn khuôn mẫu nhiều nhất nhưng biểu hiện 9 cái chính đảng hoặc người được đề cử, mỗi hành 3 cái. Nếu chỉ cần biểu hiện 4 cái, ở cuối cùng mang con số đánh số tham số hạng có thể chỉ sử dụng [ tham số danh 1], [ tham số danh 2], [ tham số danh 4] cùng [ tham số danh 5].
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'.
Kiểu mẫu
Tổng thống tuyển cử
![]() | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
All538 electoral votesof theNước Mỹ tuyển cử người đoàn Thắng lợi cần 270 phiếu | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||
![]() Presidential election results map | |||||||||||||||||||||||||||||
|
{{Infobox election | election_name = 2004 năm nước Mỹ tổng thống tuyển cử | country = United States | type = presidential | previous_election = 2000 năm nước Mỹ tổng thống tuyển cử | previous_year = 2000 | election_date = {{Start date|2004|11|02}} | next_election = 2008 năm nước Mỹ tổng thống tuyển cử | next_year = 2008 | votes_for_election= All [[List of United States presidential electors, 2004|538 electoral votes]] of the [[ nước Mỹ tuyển cử người đoàn ]] | needed_votes = 270 <!-- George W. Bush --> | image1 = [[File:George-W-Bush.jpeg|160x150px]] | nominee1 = [[ George · Walker · bố cái ]] | party1 = Đảng Cộng Hòa ( nước Mỹ ) | home_state1 = [[ bang Texas ]] | running_mate1 = [[ Dick · thiết ni | Richard ·B· thiết ni ]] | 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|160x150px]] | nominee2 = [[ Johan · Forbes · Carrey ]] | party2 = Đảng Dân Chủ ( nước Mỹ ) | home_state2 = [[ ma tát chư tắc châu ]] | running_mate2 = [[ Johan · Edwards ]] | electoral_vote2 = 251 | states_carried2 = 19 + [[ Washington Columbia đặc khu |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 = tổng thống | before_election = [[ George · Walker · bố cái ]] | before_party = Đảng Cộng Hòa ( nước Mỹ ) | after_election = [[ George · Walker · bố cái ]] | after_party = Đảng Cộng Hòa ( nước Mỹ ) }}
Sẽ cử hành tổng thống tuyển cử
![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() Presidential electoral votes by state. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{{Infobox election | election_name = 2008 năm nước Mỹ tổng thống tuyển cử | country = United States | type = presidential | ongoing = yes | previous_election = 2004 năm nước Mỹ tổng thống tuyển cử | previous_year = 2004 | election_date = {{Start date|2008|11|04}} | next_election = 2012 năm nước Mỹ tổng thống tuyển cử | next_year = 2012 <!-- Hillary Clinton --> | image1 = [[File:Hillary Clinton official Secretary of State portrait crop.jpg|160x150px]] | candidate1 = [[ hi kéo · Clinton ]] | party1 = Đảng Dân Chủ ( nước Mỹ ) | home_state1 = [[ bang New York ]] | running_mate1 = | projected_vote1 = | states_carried1 = | popular_vote1 = | percentage1 = <!-- Barack Obama --> | image2 = [[File:Official portrait of Barack Obama.jpg|160x150px]] | candidate2 = [[ Bella khắc · Obama ]] | party2 = Đảng Dân Chủ ( nước Mỹ ) | home_state2 = [[ bang Illinois ]] | running_mate2 = | projected_vote2 = | states_carried2 = | popular_vote2 = | percentage2 = <!-- John Edwards --> | image3 = [[File:John Edwards, official Senate photo portrait.jpg|160x150px]] | candidate3 = [[ Johan · Edwards ]] | party3 = Đảng Dân Chủ ( nước Mỹ ) | home_state3 = [[ bang North Carolina ]] | running_mate3 = | projected_vote3 = | states_carried3 = | popular_vote3 = | percentage3 = <!-- Rudy Giuliani --> | image4 = [[File:Rudy Giuliani.jpg|160x150px]] | candidate4 = [[ lỗ địch · Julian ni ]] | party4 = Đảng Cộng Hòa ( nước Mỹ ) | home_state4 = [[ bang New York ]] | running_mate4 = | projected_vote4 = | states_carried4 = | popular_vote4 = | percentage4 = <!-- Fred Thompson --> | image5 = [[File:Fred Thompson.jpg|160x150px]] | candidate5 = [[ Fred · Thompson ]] | party5 = Đảng Cộng Hòa ( nước Mỹ ) | home_state5 = [[ bang Tennessee ]] | running_mate5 = | projected_vote5 = | states_carried5 = | popular_vote5 = | percentage5 = <!-- John McCain --> | image6 = [[File:John McCain official portrait 2009.jpg|160x150px]] | candidate6 = [[ Johan · mạch Cain ]] | party6 = Đảng Cộng Hòa ( nước Mỹ ) | home_state6 = [[ bang Arizona ]] | running_mate6 = | projected_vote6 = | states_carried6 = | popular_vote6 = | percentage6 = <!-- polls --> | poll1_date = 2007 năm 8 nguyệt 3 ngày | poll1_source = http:// example.edu/poll/070803 | poll1_candidate1 = '''45%''' | poll1_candidate2 = 22% | poll1_candidate3 = 9% | poll1_candidate4 = '''26%''' | poll1_candidate5 = 21% | poll1_candidate6 = 11% | poll2_date = 2007 năm 8 nguyệt 1 ngày | poll2_source = http:// example.edu/poll/070801 | poll2_candidate1 = '''46%''' | poll2_candidate2 = 23% | poll2_candidate3 = 12% | poll2_candidate4 = '''32%''' | poll2_candidate5 = 20% | poll2_candidate6 = 13% | poll3_date = 2007 năm 8 nguyệt 1 ngày | poll3_source = http:// example /news/070801 | poll3_candidate1 = '''44%''' | poll3_candidate2 = 23% | poll3_candidate3 = 14% | poll3_candidate4 = '''33%''' | poll3_candidate5 = 20% | poll3_candidate6 = 17% | poll4_date = 2007 năm 7 nguyệt 30 ngày | poll4_source = http:// example /news/070730 | poll4_candidate1 = '''43%''' | poll4_candidate2 = 22% | poll4_candidate3 = 13% | poll4_candidate4 = '''30%''' | poll4_candidate5 = 22% | poll4_candidate6 = 13% <!-- map --> | map_image = Electoral map.svg | map_size = 350px | map_caption = Presidential electoral votes by state. <!-- bottom --> | title = tổng thống | before_election = [[ George · Walker · bố cái ]] | before_party = Đảng Cộng Hòa ( nước Mỹ ) | after_election = | after_party = }}
Hơi cách thức
Này khuôn mẫu sinh ra HTML đánh dấu bao hàmhCalendar hơi cách thức,Có thể làm máy tínhPhân tíchSự kiện tình hình cụ thể và tỉ mỉ, dễ dàng cho duy cơ bách khoa đem nên điều mục phân loại, hoặc làm người dùng thông qua trình duyệt đem nên sự kiện tăng thêm tiến lịch ngày hoặc nhật ký ứng dụng thể thức trung. VềHơi cách thứcCàng nhiều sử dụng tin tức, thỉnh xem thêm duy cơ bách khoaHơi cách thức chuyên đề.
Ngày sẽ chỉ ở sử dụng {{Start date}} hoặc {{End date}} dưới tình huống biểu hiện, URL sẽ chỉ ở sử dụng {{Url}} dưới tình huống bị bao hàm.
hCalendar sử dụng HTML class bao gồm:
- attendee
- contact
- description
- dtend
- dtstart
- location
- organiser
- summary
- url
- vevent
Xin đừng di trừ hoặc sửa chữa này đó class, cũng xin đừng sửa đổi hoặc di trừ có tương quan giả thiết chi khuôn mẫu cập giả thiết.
Note: If no date is entered, then the microformat is not emitted.
Tham kiến
Kể trênVăn kiệnKhảm nhậpTựTemplate:Infobox election/doc.(Biên tập|Lịch sử) Người biên tập có thể ở bổn khuôn mẫuHộp cát(Biên tập|Sai biệt)CùngThí nghiệm dạng lệ(Biên tập)Giao diện tiến hành thực nghiệm. Thỉnh ở/docTử giao diện trung tăng thêm phân loại.Bổn khuôn mẫu tử giao diện. |