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
 
(4 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|}}}
| image        = {{{image|}}}


<!-- Meta -->
| label1      = Type
{{#if:{{{type|}}}|
| data1        = {{{type|}}}
|-
| label2      = Year
! style="text-align:center;" | {{ucfirst:{{{type}}}}} election
| data2        = {{{year|}}}
}}
| label3      = Date
{{#if:{{{election_date|}}}|
| data3        = {{{date|}}}
|-
| label4      = Seats up for election
| style="text-align:center;" | {{{election_date}}}
| data4        = {{{seats_up|}}}
}}
| label5      = Electoral system
{{#if:{{{country|}}}|
| data5        = {{{system|}}}
|-
| label6      = Previous election
! Country
| data6        = {{{last_election|}}}
| {{{country}}}
| label7      = Alliances
}}
| data7        = {{{alliances|}}}
{{#if:{{{turnout|}}}|
| label8      = Map
|-
| data8        = {{{map|}}}
! 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 block header -->
| label9      = Voter turnout
{{#if:{{{nominee1|}}{{{nominee2|}}{{{nominee3|}}{{{nominee4|}}}}}}|
| data9        = {{{turnout|}}}
|-
| label10      = Eligible voters
! colspan="2" style="text-align:center; background:#eee;" | Presidential election
| data10      = {{{eligible_voters|}}}
}}
| label11      = Total votes cast
| data11      = {{{total_votes|}}}


<!-- Candidate 1 -->
| label12      = Yes votes
{{#if:{{{image1|}}}|
| data12      = {{{yes_votes|}}}
|-
| label13      = No votes
| colspan="2" style="text-align:center;" | {{{image1}}}
| data13      = {{{no_votes|}}}
}}
| label14      = Percentage "Yes"
{{#if:{{{nominee1|}}}|
| data14      = {{{yes_percentage|}}}
|-
| label15      = Percentage "No"
! Nominee
| data15      = {{{no_percentage|}}}
| {{{nominee1}}}
| label16      = Outcome
}}
| data16      = {{{outcome|}}}
{{#if:{{{running_mate1|}}}|
|-
! Running mate
| {{{running_mate1}}}
}}
{{#if:{{{party1|}}}|
|-
! Party
| {{{party1}}}
}}
{{#if:{{{popular_vote1|}}}{{{percentage1|}}}|
|-
! Votes
| {{#if:{{{popular_vote1|}}}|{{{popular_vote1}}}}}{{#if:{{{percentage1|}}}| ({{{percentage1}}})}}
}}


<!-- Candidate 2 -->
| label17      = Referendum question
{{#if:{{{image2|}}}|
| data17      = {{{question|}}}
|-
| label18      = Required threshold
| colspan="2" style="text-align:center;" | {{{image2}}}
| data18      = {{{threshold|}}}
}}
| label19      = Result status
{{#if:{{{nominee2|}}}|
| data19      = {{{status|}}}
|-
! 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}}})}}
}}


<!-- Candidate 3 -->
| label20      = Incumbent party
{{#if:{{{image3|}}}|
| data20      = {{{incumbent_party|}}}
|-
| label21      = Incumbent leader
| colspan="2" style="text-align:center;" | {{{image3}}}
| data21      = {{{incumbent_leader|}}}
}}
| label22      = In office since
{{#if:{{{nominee3|}}}|
| data22      = {{{incumbent_since|}}}
|-
| label23      = Challenger party
! Nominee
| data23      = {{{challenger_party|}}}
| {{{nominee3}}}
| label24      = Challenger leader
}}
| data24      = {{{challenger_leader|}}}
{{#if:{{{running_mate3|}}}|
| label25      = Last challenger
|-
| data25      = {{{challenger_last|}}}
! Running mate
| label26      = Official website
| {{{running_mate3}}}
| data26      = {{{website|}}}
}}
{{#if:{{{party3|}}}|
|-
! Party
| {{{party3}}}
}}
{{#if:{{{popular_vote3|}}}{{{percentage3|}}}|
|-
! Votes
| {{#if:{{{popular_vote3|}}}|{{{popular_vote3}}}}}{{#if:{{{percentage3|}}}| ({{{percentage3}}})}}
}}


<!-- Candidate 4 -->
| belowstyle  = background:#f8f8f8; text-align:center; font-size:88%; padding:3px;
{{#if:{{{image4|}}}|
| below        = [[Category:Elections in Zambia]]
|-
| 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 (pass full wikitext or leave blank) -->
{{#if:{{{map|}}}|
|-
| colspan="2" style="text-align:center;" | {{{map}}}
}}
{{#if:{{{map_caption|}}}|
|-
| colspan="2" style="text-align:center; font-size:90%;" | {{{map_caption}}}
}}
<!-- Officeholders -->
{{#if:{{{title|}}}|
|-
! colspan="2" style="text-align:center; background:#eee;" | {{{title}}}
}}
{{#if:{{{before_election|}}}|
|-
! 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>
Simple, no-Lua election infobox for Chalo Chatu.
Images and maps must be passed as full wikitext (e.g., [[File:Name.png|130x130px]]).
</noinclude>

Latest revision as of 12:02, 11 November 2025

Election