跳转到内容

Template:Election box/doc

维基百科,自由的百科全书

模板介紹

[编辑]

本模板用於展示一場選舉中的候選人和選舉結果,其效果如下:

2024年英國大選: 蘇威英選區
政党 候选人 票数 % ±
工黨 妙麗·格蘭傑 72,639 54.1 +5.2
保守黨 威利·旺卡 61,734 45.9 -1.5
多数票 10,905 8.1 +6.7
投票率 134,373 61.0 +13.4

使用方法

[编辑]

基本

[编辑]

整個模板由以下三部份構成:

beginend兩個部分分別用於開啟和結束本模板,而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}}
 

將產生以下效果:

2024年英國大選: 蘇威英選區
政党 候选人 票数 % ±
工黨 妙麗·格蘭傑 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}}
 

將產生以下效果:

2024年英國大選: 蘇威英選區
政党 候选人 票数 % ±
工黨 妙麗·格蘭傑 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}}
 

將產生以下效果:

2024年英國大選: 蘇威英選區
政党 候选人 票数 % ±
工黨 妙麗·格蘭傑 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

另一個例子:

2024年英國大選: 蘇威英選區
政党 候选人 票数 % ±
工黨 妙麗·格蘭傑 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

[编辑]

參見

[编辑]
  • {{Compact election box}}:一個比較緊緻的信息框模板,適用於 first-past-the-post 的選舉。

给模板编辑者的说明

[编辑]

模板结构

[编辑]

实现方法

[编辑]

编辑注意

[编辑]