Template:Infobox election: Difference between revisions

From Chalo Chatu, Zambia online encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox vevent" style="width: 280px; font-size: 90%; line-height: 1.4em; background: #f9f9f9;"
{| class="infobox vevent" style="width:22em; line-height:1.5em; font-size: 90%;"
|+ style="font-weight:bold; font-size:110%; text-align:center;" | {{{election_name|Election}}}
|+ style="font-size: 110%; font-weight: bold; text-align: center;" | {{{election_name|Election}}}
|-
! Type
| {{{type|General}}} election
|-
! Date
| {{{election_date|}}}
|-
|-
{{#if:{{{type|}}}|! style="text-align:center;" colspan="2" | {{{type}}} election}}
{{#if:{{{election_date|}}}|{{!}}-{{!}}
! style="text-align:center;" colspan="2" | {{{election_date}}}}}
{{#if:{{{country|}}}|{{!}}-{{!}}
! Country
! Country
| {{{country|Zambia}}}
{{!}} style="text-align:center;" | {{{country}}}}}
{{#if:{{{turnout|}}}|{{!}}-{{!}}
! Turnout
{{!}} style="text-align:center;" | {{{turnout}}}}}
{{#if:{{{registered|}}}|{{!}}-{{!}}
! Registered voters
{{!}} style="text-align:center;" | {{{registered}}}}}
{{#if:{{{previous_link|}}}|{{!}}-{{!}}
! Previous
{{!}} style="text-align:center;" | {{{previous_link}}}}}
{{#if:{{{next_link|}}}|{{!}}-{{!}}
! Next
{{!}} style="text-align:center;" | {{{next_link}}}}}
 
{{#if:{{{nominee1|}}}{{{nominee2|}}}|
|-
|-
{{#if:{{{turnout|}}}|! Turnout
! colspan="2" style="text-align:center; background:#eee;" | Candidates
| {{{turnout}}}
}}
|-}}
{{#if:{{{registered|}}}|! Registered voters
| {{{registered}}}
|-}}
{{#if:{{{previous_link|}}}|! Previous
| [[{{{previous_link}}}|{{{previous_year}}}]]
|-}}
{{#if:{{{next_link|}}}|! Next
| [[{{{next_link}}}|{{{next_year}}}]]
|-}}
 
! colspan="2" style="text-align:center; background:#ddd;" | Candidates


<!-- Candidate 1 -->
{{#if:{{{nominee1|}}}|
{{#if:{{{nominee1|}}}|
|-
|-
! Nominee 1
| colspan="2" style="text-align:center;" | {{{image1|}}}
| {{{nominee1}}}<br/>{{{party1}}}<br/>Votes: {{{popular_vote1}}} ({{{percentage1}}}%)
|-
! Nominee
| {{{nominee1}}}
|-
! Party
| {{{party1|}}}
|-
! Alliance
| {{{alliance1|}}}
|-
! Running mate
| {{{running_mate1|}}}
|-
! Popular vote
| {{{popular_vote1|}}}
|-
! Percentage
| {{{percentage1|}}}
}}
}}


<!-- Candidate 2 -->
{{#if:{{{nominee2|}}}|
{{#if:{{{nominee2|}}}|
|-
|-
! Nominee 2
| colspan="2" style="text-align:center;" | {{{image2|}}}
| {{{nominee2}}}<br/>{{{party2}}}<br/>Votes: {{{popular_vote2}}} ({{{percentage2}}}%)
|-
! Nominee
| {{{nominee2}}}
|-
! Party
| {{{party2|}}}
|-
! Alliance
| {{{alliance2|}}}
|-
! Running mate
| {{{running_mate2|}}}
|-
! Popular vote
| {{{popular_vote2|}}}
|-
! Percentage
| {{{percentage2|}}}
}}
}}


<!-- Candidate 3 -->
{{#if:{{{nominee3|}}}|
{{#if:{{{nominee3|}}}|
|-
|-
! Nominee 3
| colspan="2" style="text-align:center;" | {{{image3|}}}
| {{{nominee3}}}<br/>{{{party3}}}<br/>Votes: {{{popular_vote3}}} ({{{percentage3}}}%)
|-
}}
! Nominee
 
| {{{nominee3}}}
{{#if:{{{map_image|}}}|
|-
! Party
| {{{party3|}}}
|-
! Alliance
| {{{alliance3|}}}
|-
! Running mate
| {{{running_mate3|}}}
|-
|-
! colspan="2" | Map
! Popular vote
| {{{popular_vote3|}}}
|-
|-
| colspan="2" style="text-align:center;" | [[File:{{{map_image}}}|250px]]
! Percentage
| {{{percentage3|}}}
}}
}}


{{#if:{{{title|}}}|{{!}}-{{!}}
! Title
{{!}} style="text-align:center;" | {{{title}}}}}
{{#if:{{{before_election|}}}|{{!}}-{{!}}
! Before election
{{!}} style="text-align:center;" | {{{before_election}}}}}
{{#if:{{{before_party|}}}|{{!}}-{{!}}
! Before party
{{!}} style="text-align:center;" | {{{before_party}}}}}
{{#if:{{{after_election|}}}|{{!}}-{{!}}
! After election
{{!}} style="text-align:center;" | {{{after_election}}}}}
{{#if:{{{after_party|}}}|{{!}}-{{!}}
! After party
{{!}} style="text-align:center;" | {{{after_party}}}}}
|}
|}
</includeonly>
</includeonly><noinclude>
<noinclude>
{{Documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 11:02, 19 September 2025

<templatestyles src="Module:Documentation/styles.css"></templatestyles>