模板:Infobox legislative election/doc
此頁面是Template:Infobox legislative election的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
本模板含有複雜而精密的擴展語法。 編輯本模板前,建議您先熟悉解析器函數與本模板的設計思路、運作原理等。若您的編輯引發了意外的問題,請儘快撤銷編輯,因為本模板可能被大量頁面使用。 您所作的編輯可先在模板沙盒或您的個人頁面中進行測試。 |
此信息框用於議會選舉,有多個政黨贏得席位。
Usage
編輯{{country data {{{country}}}|flagicon/core|variant=|size=50px}} | ||||||||||||||||
| ||||||||||||||||
{{{seats_for_election}}} 獲得絕對多數需要{{{majority_seats}}}席 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
投票率 | {{{turnout}}} | |||||||||||||||
此為贏得議席的政黨列表,詳情請見下文。 | ||||||||||||||||
[[File:{{{map}}}|frameless|alt={{{map_alt}}}|upright=1.3|{{{map_alt}}}]] | ||||||||||||||||
|
{{Infobox legislative election | election_name = | country = | previous_election = | next_election = | election_date = | seats_for_election = <!-- description-- > | majority_seats = <!-- number --> | first_election = <!-- yes/no (blank is no)--> | ongoing = <!-- or future --> | results_sec = | turnout = | party1 = | colour1 = | leader1 = | percentage1 = <!-- incl. percentage sign --> | seats1 = | last_election1 = <!-- Write 'new' if new party --> | party2 = | colour2 = | leader2 = | percentage2 = <!-- incl. percentage sign --> | seats2 = | last_election2 = <!-- Write 'new' if new party --> | map = | map_upright = | map_alt = | map_caption = | title = <!-- Prime Minister or similar --> | before_election = | before_party = | after_election = | after_party = }}
Parameters
編輯election_name
- 選舉名稱
country
- 選舉所在國家或地區的名稱
previous_election
- 連結到以前的選舉(例如[[2010年英国大选|2010]])
following_election
- 連結到以後的選舉(例如[[2015年英国大选|2015]])
election_date
- 選舉日期
seats_for_election
- 說明本次選舉的議席,包括議會和多少議席
majority_seats
- 多數席位所需的席位數
first_election
- 如果這是第一次這樣的選舉,請改為「yes」
ongoing
- 如果選舉結果尚未公布,則改為「yes」
results_sec
- Name of section in the article where the results of the election are listed.
turnout
- % voter turnout
party1..30
- Name of the party (e.g. United Party)
leader1..30
- Leader of the party
colour1..30
- Custom party colour
percentage1..30
- The party's popular vote share
seats1..30
- Number of seats won by the party
last_election1..30
- Number of seats won at the previous elections (template coding uses it to work out seat change)
heading1..30
- Adds a heading above a particular results row
map
- Image file of a map
map_upright
- Map size scaling factor; default is
1.3
map_alt
- WP:ALT
map_caption
- Caption text, perhaps including a {{Legend}}
title
- Title of the head of government (e.g. [[Prime Minister of the United Kingdom|Prime Minister]])
before_election
- Head of government before the elections
before_party
- Party of the head of government prior to the elections
before_image
- Image of the outgoing head of government
after_election
- Head of government after the elections
after_party
- Party of the head of government after the elections
after_image
- Image of the elected head of government