:Infobox Election/doc

このテンプレートは大統領など国の首長や、国会議員などの議員を選ぶ選挙の基礎情報を表示するのに使用します。英語版テンプレート({{Infobox Election}})からの転記で作成されましたが、このテンプレートとはいくつかの差異があるので英語版記事から転記する場合には注意が必要です。(使用例も参照)

{{Infobox Election
| election_name      = 
| country            = 
| flag_year          = 
| flag_image         = 
| type               = 
| ongoing            = 
| party_colour       = no
| previous_election  = 
| previous_year      = 
| next_election      = 
| next_year          = 
| seats_for_election = 
| election_date      = <!-- {{Start date|YYYY|MM|DD}} -->
| turnout            = 
| image1             = 
| colour1            = 
| nominee1           = 
| leader1            = 
| leader_since1      = 
| party1             = 
| alliance1          = 
| home_state1        = 
| leaders_seat1      = 
| running_mate1      = 
| last_election1     = 
| seats_before1      =
| seats_needed1      = 
| electoral_vote1    = 
| states_carried1    = 
| seats1             = 
| seats_after1       = 
| seat_change1       = 
| popular_vote1      = 
| percentage1        = 
| swing1             = 
| 1blank            = 
| 1data1            = 
| 2data1             = 
| image2             = 
| colour2            = 
| nominee2           = 
| leader2            = 
| leader_since2      = 
| party2             = 
| alliance2          = 
| home_state2        = 
| leaders_seat2      = 
| running_mate2      = 
| last_election2     = 
| seats_before2      =
| seats_needed2      = 
| electoral_vote2    = 
| states_carried2    = 
| seats2             = 
| seats_after2       = 
| seat_change2       = 
| popular_vote2      = 
| percentage2        = 
| swing2             = 
| 2blank             =
| 2data2             =
| poll1_date         = 
| poll1_source       = 
| poll1_nominee1     = 
| poll1_party1       = 
| poll2_date         = 
| poll2_source       = 
| poll2_nominee1     = 
| poll2_party1       = 
| poll1_date         = 
| poll1_source       = 
| poll1_nominee2     = 
| poll1_party2       = 
| poll2_date         = 
| poll2_source       = 
| poll2_nominee2     = 
| poll2_party2       = 
| map_image          = 
| map_size           = 
| map_caption        = 
| title              = 
| posttitle          =
| before_election    = 
| before_colour      = 
| after_election     = 
| after_colour       = 
| before_party       = 
| after_party        = 
| result             =
| candidate1         =
| candidate2         =
| candidate3         =
| candidate4         =
| candidate5         =
| party1             =
| party2             =
| party3             =
| party4             =
| party5             =
| votes1             =
| votes2             =
| votes3             =
| votes4             =
| votes5             =
}}

1.英語版記事から転記する場合

  • 英語版で使われている、政党の記事名や色を返すテンプレートには対応していないため、必ずparty_colour = noを指定し、colour1 = などで政党別に英語版記事と同じ色になるように#を省いたウェブカラーのRGB値を入力します(政党の色を返すテンプレートのソースにRGB値が書かれています)。
  • party1 = などで政党名を入力する時に記事名が括弧つきの場合にパイプでウィキリンクする場合は「民主党 (アメリカ){{!}}民主党」というふうに {{!}} を使用します。
  • 使用例にあるようにtype = country = など英語で指定する必要のある引数もあります。

2.使用例

2008年アメリカ合衆国大統領選挙
2004年 ←
2008年11月4日
→ 2012年

  파일:Official portrait of Barack Obama-2.jpg 파일:John McCain official photo portrait-cropped-2.JPG
후보자 バラク・オバマ ジョン・マケイン
정당 民主党 共和党
지지 기반 イリノイ州 アリゾナ州
부통령후보자 ジョセフ・バイデン サラ・ペイリン
획득 선거인 365 173
승리 주의 수 28 + DC + NE-02 22
득표수 69,498,215 59,948,240
득표율 52.9% 45.7%

파일:ElectoralCollege2008.svg

青はオバマ・バイデン両候補
赤はマケイン・ペイリン両候補が勝利した州

선거 전大統領

ジョージ・W・ブッシュ
共和党

선출大統領

バラク・オバマ
民主党

{{Infobox Election
| election_name = 2008年アメリカ合衆国大統領選挙
| country = United States
| type = presidential
| ongoing = no
| party_colour = no
| previous_election = 2004年アメリカ合衆国大統領選挙
| previous_year = 2004年
| next_election = :en:United States presidential election, 2012
| next_year = 2012年
| election_date = 2008年11月4日
| image1 = [[File:Official portrait of Barack Obama-2.jpg|146px]] 
| nominee1 = [[バラク・オバマ]]
| party1 = 民主党 (アメリカ){{!}}民主党
| colour1 = 3333FF
| home_state1 = [[イリノイ州]]
| running_mate1 = '''[[ジョセフ・バイデン]]'''
| running_mate_home_state1 = [[デラウェア州]]
| electoral_vote1 = 365
| states_carried1 = 28 + [[ワシントンD.C.|DC]] + [[:en:Nebraska's 2nd congressional district|NE-02]]<!-- Nebraska divides its electoral votes based on congressional districts instead of a statewide total, and its 2nd congressional district voted for Obama. -->
| popular_vote1 = 69,498,215<!--See section 5.2 Popular vote-->
| percentage1 = 52.9%<!--See section 5.1 Grand total-->
| image2 = [[Image:John McCain official photo portrait-cropped-2.JPG|146px]]
| nominee2 = [[ジョン・マケイン]]
| party2 = 共和党 (アメリカ){{!}}共和党
| colour2 = FF3333
| home_state2 = [[アリゾナ州]]
| running_mate2 = [[サラ・ペイリン]]
| running_mate_home_state2 = アラスカ
| electoral_vote2 = 173
| states_carried2 = 22
| popular_vote2 = 59,948,240<!--See section 5.2 Popular vote-->
| percentage2 = 45.7%<!--See section 5.1 Grand total-->
| map_image = ElectoralCollege2008.svg<!-- Mapmakers: Please work on commons.wikimedia.org files to allow ALL wikipedias to use your file. Do not use en.wikipedia.org files such as US Electoral College Map 2008 with live results.svg, which is on here only.-->
| map_size = 349px
| map_caption = 青はオバマ・バイデン両候補<br />赤はマケイン・ペイリン両候補が勝利した州
| title = 大統領
| before_election = [[ジョージ・W・ブッシュ]]
| before_party = 共和党 (アメリカ){{!}}共和党
| after_election = [[バラク・オバマ]]
| after_party = 民主党 (アメリカ){{!}}民主党
}}