模板: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