Template:Election box begin
| 本高风险模板已獲得半保护以免受到破坏。 請参閱保护方针及保护日志以获取更多信息。如果您不能修改此Template,您可以请求修改、在讨论页提出修改提议、申请解除保护、登录或创建账号。 |
{| class=wikitable
|+ style="background-color:var(--background-color-neutral-subtle,#f2f2f2);margin-bottom:-1px;border:1px solid var(--border-color-base,#aaa);color: inherit;padding:.2em .4em" | |- ! scope="col" colspan="2" style="width: 130px"|政党 ! scope="col" style="width: 17em"|候选人 ! scope="col" style="width: 5em"|票数 ! scope="col" style="width: 3.5em"|% ! scope="col" style="width: 3.5em"|± |- |}
模板介紹
本模板用於展示一場選舉中的候選人和選舉結果,其效果如下:
| 政党 | 候选人 | 票数 | % | ± | |
|---|---|---|---|---|---|
| 工黨 | 妙麗·格蘭傑 | 72,639 | 54.1 | +5.2 | |
| 保守黨 | 威利·旺卡 | 61,734 | 45.9 | -1.5 | |
| 多数票 | 10,905 | 8.1 | +6.7 | ||
| 投票率 | 134,373 | 61.0 | +13.4 | ||
使用方法
基本
整個模板由以下三部份構成:
- {{Election box begin}}
- {{Election box candidate}}
- {{Election box end}}
begin及end兩個部分分別用於開啟和結束本模板,而candidate部分則用於展示其中一位候選人的資料及在表格中構建一個新橫行。有多少個候選人,就需要多少個candidate部分。
使用此模板時,請務必使用election box end部分,若此部分被|}代替,將產生需要人手修正的錯誤,帶來麻煩。
舉個例子:
{{Election box begin
|名稱=[[2024年英國大選]]: 蘇威英選區}}
{{Election box candidate
|政黨 = 工黨
|候選人 = [[妙麗·格蘭傑]]
|票數 = 72,639
|百分比 = 54.1
|增減 = +5.2
}}
{{Election box candidate
|政黨 = 保守黨
|候選人 = [[威利·旺卡]]
|票數 = 61,734
|百分比 = 45.9
|增減 = -1.5
}}
{{Election box end}}
將產生以下效果:
| 政党 | 候选人 | 票数 | % | ± | |
|---|---|---|---|---|---|
| 工黨 | 妙麗·格蘭傑 | 72,639 | 54.1 | +5.2 | |
| 保守黨 | 威利·旺卡 | 61,734 | 45.9 | -1.5 | |
政黨連結
請參見Template:Election box candidate with party link。
多數票及投票率
以下是兩個進階模板:
上述兩個模板分別用於展示一場選舉中的多數票及投票率。(多數票在此表示得票第一高與第二高的候選人之間的得票差距)。
舉個例子:
...
{{Election box majority
|票數 = 10,905
|百分比 = 8.1
|增減 = +6.7
}}
{{Election box turnout
|票數 = 134,373
|百分比 = 61.0
|增減 = +13.4
}}
{{Election box end}}
將產生以下效果:
| 政党 | 候选人 | 票数 | % | ± | |
|---|---|---|---|---|---|
| 工黨 | 妙麗·格蘭傑 | 72,639 | 54.1 | +5.2 | |
| 保守黨 | 威利·旺卡 | 61,734 | 45.9 | -1.5 | |
| 多数票 | 10,905 | 8.1 | +6.7 | ||
| 投票率 | 134,373 | 61.0 | +13.4 | ||
選舉結果
還有兩個模板:
上述模板用於總結選舉結果,指出現任議員是否連任成功。
舉個例子:
...
{{Election box hold with party link
|winner = 英國工黨
|swing = +6.7
}}
or...
{{Election box gain with party link
|winner = 英國工黨
|loser = 英國保守黨
|swing = +6.7
}}
{{Election box end}}
將產生以下效果:
| 政党 | 候选人 | 票数 | % | ± | |
|---|---|---|---|---|---|
| 工黨 | 妙麗·格蘭傑 | 72,639 | 54.1 | +5.2 | |
| 保守黨 | 威利·旺卡 | 61,734 | 45.9 | -1.5 | |
| 多数票 | 10,905 | 8.1 | +6.7 | ||
| 投票率 | 134,373 | 61.0 | +13.4 | ||
| 工黨维持 | 与上次选举得票率之差 | +6.7 | |||
另一個例子:
| 政党 | 候选人 | 票数 | % | ± | |
|---|---|---|---|---|---|
| 工黨 | 妙麗·格蘭傑 | 72,639 | 54.1 | +5.2 | |
| 保守黨 | 威利·旺卡 | 61,734 | 45.9 | -1.5 | |
| 多数票 | 10,905 | 8.1 | +6.7 | ||
| 投票率 | 134,373 | 61.0 | +13.4 | ||
| 工黨擊敗保守黨 | 与上次选举得票率之差 | +6.7 | |||
Notes:
- The swing parameter represents Peter Snow's Swingometer measure, ie the percentage change (or swing) in the vote since the last election.
- When preparing the tables in advance of an election, it may be convenient to include these two templates but commented out (using
<!-- and -->) until the outcome is known. - Potentially there is a need for versions of these templates that do not have the party link mechanism. However, it can be argued that any party that has a successful candidate deserves an article about them and the full /meta/color treatment. The one obvious exception to this is, of course, independent candidates, who won't actually have a party. If / when there's a need, just create a non party link version of these templates.
範例
注意事项
List of templates
Template:List of Election Box Templates
Blanks by country
Extensions
- Template:Election FPTP begin As 1, but includes an additional column for expenditures. Example
- Template:Election box begin for list As 1, but better suited to list-based multi-member constituencies. Example
- Template:Election box candidate for alliance As 3, with an additional "side" party. Example
參見
- {{Compact election box}}:一個比較緊緻的信息框模板,適用於 first-past-the-post 的選舉。