Template:Infobox election: Difference between revisions

From Chalo Chatu, Zambia online encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
Tags: Mobile edit Mobile web edit
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
{{Infobox
{| class="infobox vevent" style="width:22em; line-height:1.5em;"
| bodystyle    = width:320px; font-size: 90%;
|+ {{#if:{{{election_name|}}}|{{{election_name}}}}}
| title        = {{{election_name|Election}}}
|-
| above        = {{{country|}}}
! style="text-align:center;" | {{#if:{{{type|}}}|{{ucfirst:{{{type}}}}} election}}
| image        = {{{image|}}}
|-
| style="text-align:center;" | {{#if:{{{election_date|}}}|{{{election_date}}}}}
{{#if:{{{country|}}}|
|-
! Country
| {{{country}}}
}}
{{#if:{{{turnout|}}}|
|-
! Turnout
| {{{turnout}}}
}}
{{#if:{{{registered|}}}|
|-
! Registered voters
| {{{registered}}}
}}
{{#if:{{{previous_year|}}{{{previous_election|}}}|
|-
! Previous
| {{#if:{{{previous_election|}}}|[[{{{previous_election}}}|{{{previous_year|}}}]]|{{{previous_year|}}}}}
}}
{{#if:{{{next_year|}}{{{next_election|}}}|
|-
! Next
| {{#if:{{{next_election|}}}|[[{{{next_election}}}|{{{next_year|}}}]]|{{{next_year|}}}}}
}}


<!-- ===== CANDIDATES (up to 4) ===== -->
| label1      = Type
{{#if:{{{nominee1|}}}|
| data1        = {{{type|}}}
|-
| label2      = Year
! colspan="2" style="text-align:center; background:#eee;" | Presidential election
| data2        = {{{year|}}}
}}
| label3      = Date
{{#if:{{{image1|}}}|
| data3        = {{{date|}}}
|-
| label4      = Seats up for election
| colspan="2" style="text-align:center;" | {{{image1}}}
| data4        = {{{seats_up|}}}
}}
| label5      = Electoral system
{{#if:{{{nominee1|}}}|
| data5        = {{{system|}}}
|-
| label6      = Previous election
! Nominee
| data6        = {{{last_election|}}}
| {{{nominee1}}}
| label7      = Alliances
}}
| data7        = {{{alliances|}}}
{{#if:{{{running_mate1|}}}|
| label8      = Map
|-
| data8        = {{{map|}}}
! Running mate
| {{{running_mate1}}}
}}
{{#if:{{{party1|}}}|
|-
! Party
| {{{party1}}}
}}
{{#if:{{{popular_vote1|}}}{{{percentage1|}}}|
|-
! Votes
| {{#if:{{{popular_vote1|}}}|{{{popular_vote1}}}}} {{#if:{{{percentage1|}}}| ({{{percentage1}}})}}
}}


{{#if:{{{image2|}}}|
| label9      = Voter turnout
|-
| data9        = {{{turnout|}}}
| colspan="2" style="text-align:center;" | {{{image2}}}
| label10      = Eligible voters
}}
| data10      = {{{eligible_voters|}}}
{{#if:{{{nominee2|}}}|
| label11      = Total votes cast
|-
| data11      = {{{total_votes|}}}
! Nominee
| {{{nominee2}}}
}}
{{#if:{{{running_mate2|}}}|
|-
! Running mate
| {{{running_mate2}}}
}}
{{#if:{{{party2|}}}|
|-
! Party
| {{{party2}}}
}}
{{#if:{{{popular_vote2|}}}{{{percentage2|}}}|
|-
! Votes
| {{#if:{{{popular_vote2|}}}|{{{popular_vote2}}}}} {{#if:{{{percentage2|}}}| ({{{percentage2}}})}}
}}


{{#if:{{{image3|}}}|
| label12      = Yes votes
|-
| data12      = {{{yes_votes|}}}
| colspan="2" style="text-align:center;" | {{{image3}}}
| label13      = No votes
}}
| data13      = {{{no_votes|}}}
{{#if:{{{nominee3|}}}|
| label14      = Percentage "Yes"
|-
| data14      = {{{yes_percentage|}}}
! Nominee
| label15      = Percentage "No"
| {{{nominee3}}}
| data15      = {{{no_percentage|}}}
}}
| label16      = Outcome
{{#if:{{{running_mate3|}}}|
| data16      = {{{outcome|}}}
|-
! Running mate
| {{{running_mate3}}}
}}
{{#if:{{{party3|}}}|
|-
! Party
| {{{party3}}}
}}
{{#if:{{{popular_vote3|}}}{{{percentage3|}}}|
|-
! Votes
| {{#if:{{{popular_vote3|}}}|{{{popular_vote3}}}}} {{#if:{{{percentage3|}}}| ({{{percentage3}}})}}
}}
 
{{#if:{{{image4|}}}|
|-
| colspan="2" style="text-align:center;" | {{{image4}}}
}}
{{#if:{{{nominee4|}}}|
|-
! Nominee
| {{{nominee4}}}
}}
{{#if:{{{running_mate4|}}}|
|-
! Running mate
| {{{running_mate4}}}
}}
{{#if:{{{party4|}}}|
|-
! Party
| {{{party4}}}
}}
{{#if:{{{popular_vote4|}}}{{{percentage4|}}}|
|-
! Votes
| {{#if:{{{popular_vote4|}}}|{{{popular_vote4}}}}} {{#if:{{{percentage4|}}}| ({{{percentage4}}})}}
}}
 
<!-- ===== MAP (optional) ===== -->
{{#if:{{{map_image|}}}|
|-
| colspan="2" style="text-align:center;" | [[File:{{{map_image}}}|{{{map_size|300px}}}|alt={{{map_alt|}}}]]
}}
{{#if:{{{map_caption|}}}|
|-
| colspan="2" style="text-align:center; font-size:90%;" | {{{map_caption}}}
}}


<!-- ===== OFFICEHOLDERS ===== -->
| label17      = Referendum question
{{#if:{{{title|}}}{{{before_election|}}}{{{after_election|}}}|
| data17      = {{{question|}}}
|-
| label18      = Required threshold
! colspan="2" style="text-align:center; background:#eee;" | {{{title}}}
| data18      = {{{threshold|}}}
}}
| label19      = Result status
{{#if:{{{before_election|}}}|
| data19      = {{{status|}}}
|-
! Before election
| {{{before_election}}}{{#if:{{{before_party|}}}|<br /><span style="font-size:90%;">{{{before_party}}}</span>|}}
}}
{{#if:{{{after_election|}}}{{{ongoing|}}}|
|-
! {{#if:{{{ongoing|}}}|Elected {{#if:{{{posttitle|}}}|{{{posttitle}}}|{{{title|}}}}}|After election}}
| {{#if:{{{after_election|}}}|{{{after_election}}}|TBD}}{{#if:{{{after_party|}}}|<br /><span style="font-size:90%;">{{{after_party}}}</span>|}}
}}


|}</includeonly><noinclude>
| label20      = Incumbent party
Simple, dependency-light election infobox for Chalo Chatu.
| data20      = {{{incumbent_party|}}}
| label21      = Incumbent leader
| data21      = {{{incumbent_leader|}}}
| label22      = In office since
| data22      = {{{incumbent_since|}}}
| label23      = Challenger party
| data23      = {{{challenger_party|}}}
| label24      = Challenger leader
| data24      = {{{challenger_leader|}}}
| label25      = Last challenger
| data25      = {{{challenger_last|}}}
| label26      = Official website
| data26      = {{{website|}}}


Parameters (common):
| belowstyle   = background:#f8f8f8; text-align:center; font-size:88%; padding:3px;
election_name, country, type, election_date, turnout, registered,
| below        = [[Category:Elections in Zambia]]
previous_election, previous_year, next_election, next_year,
title, before_election, before_party, after_election, after_party, posttitle, ongoing=yes
 
Candidates (repeat 1–4):
imageN, nomineeN, running_mateN, partyN, popular_voteN, percentageN
 
Map (optional):
map_image   = filename only (no File:)
map_size    = 300px default
map_caption = text
map_alt    = alt text
 
Example:
{{Infobox election
| election_name = 2021 Zambian general election
| country = Zambia
| type = presidential
| election_date = {{Start date|2021|8|12|df=yes}}
| turnout = 70.61%
| image1 = HH2022.png|130x130px
| nominee1 = [[Hakainde Hichilema]]
| running_mate1 = [[Mutale Nalumango]]
| party1 = United Party for National Development
| popular_vote1 = 2,852,348
| percentage1 = 59.02%
| image2 = Edgar Lungu, 26 july 2018 (cropped).jpg|130x130px
| nominee2 = [[Edgar Lungu]]
| running_mate2 = [[Nkandu Luo]]
| party2 = Patriotic Front (Zambia)
| popular_vote2 = 1,870,780
| percentage2 = 38.71%
| map_image = Maps-blogs21-lightonphiri org-2021 zambia presidential elections-by constituencies-overall.svg
| map_caption = 2021 Presidential results by constituency
| title = President
| before_election = [[Edgar Lungu]]
| before_party = Patriotic Front (Zambia)
| after_election = [[Hakainde Hichilema]]
| after_party = United Party for National Development
}}
}}
Styling relies on your site’s .infobox CSS.
</noinclude>

Latest revision as of 12:02, 11 November 2025

Election