Template:Infobox election: Difference between revisions

From Chalo Chatu, Zambia online encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox vevent" style="width:22em; line-height:1.5em;"
{| class="infobox vevent" style="width:22em; line-height:1.5em; font-size: 90%;"
|+ {{#if:{{{election_name|}}}|{{{election_name}}}}}
|+ style="font-size: 110%; font-weight: bold; text-align: center;" | {{{election_name|Election}}}
 
<!-- Meta -->
{{#if:{{{type|}}}|
|-
! style="text-align:center;" | {{ucfirst:{{{type}}}}} election
}}
{{#if:{{{election_date|}}}|
|-
| style="text-align:center;" | {{{election_date}}}
}}
{{#if:{{{country|}}}|
|-
|-
{{#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}}}
{{!}} style="text-align:center;" | {{{country}}}}}
}}
{{#if:{{{turnout|}}}|{{!}}-{{!}}
{{#if:{{{turnout|}}}|
|-
! Turnout
! Turnout
| {{{turnout}}}
{{!}} style="text-align:center;" | {{{turnout}}}}}
}}
{{#if:{{{registered|}}}|{{!}}-{{!}}
{{#if:{{{registered|}}}|
|-
! Registered voters
! Registered voters
| {{{registered}}}
{{!}} style="text-align:center;" | {{{registered}}}}}
}}
{{#if:{{{previous_link|}}}|{{!}}-{{!}}
{{#if:{{{previous_year|}}{{{previous_election|}}}|
|-
! Previous
! Previous
| {{#if:{{{previous_election|}}}|[[{{{previous_election}}}|{{{previous_year|}}}]]|{{{previous_year|}}}}}
{{!}} style="text-align:center;" | {{{previous_link}}}}}
}}
{{#if:{{{next_link|}}}|{{!}}-{{!}}
{{#if:{{{next_year|}}{{{next_election|}}}|
|-
! Next
! Next
| {{#if:{{{next_election|}}}|[[{{{next_election}}}|{{{next_year|}}}]]|{{{next_year|}}}}}
{{!}} style="text-align:center;" | {{{next_link}}}}}
}}


<!-- Candidates block header -->
{{#if:{{{nominee1|}}}{{{nominee2|}}}|
{{#if:{{{nominee1|}}{{{nominee2|}}{{{nominee3|}}{{{nominee4|}}}}}}|
|-
|-
! colspan="2" style="text-align:center; background:#eee;" | Presidential election
! colspan="2" style="text-align:center; background:#eee;" | Candidates
}}
}}


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


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


<!-- Candidate 3 -->
<!-- Candidate 3 -->
{{#if:{{{image3|}}}|
{{#if:{{{nominee3|}}}|
|-
|-
| colspan="2" style="text-align:center;" | {{{image3}}}
| colspan="2" style="text-align:center;" | {{{image3|}}}
}}
{{#if:{{{nominee3|}}}|
|-
|-
! Nominee
! Nominee
| {{{nominee3}}}
| {{{nominee3}}}
}}
{{#if:{{{running_mate3|}}}|
|-
! Running mate
| {{{running_mate3}}}
}}
{{#if:{{{party3|}}}|
|-
|-
! Party
! Party
| {{{party3}}}
| {{{party3|}}}
}}
{{#if:{{{popular_vote3|}}}{{{percentage3|}}}|
|-
! Votes
| {{#if:{{{popular_vote3|}}}|{{{popular_vote3}}}}}{{#if:{{{percentage3|}}}| ({{{percentage3}}})}}
}}
 
<!-- Candidate 4 -->
{{#if:{{{image4|}}}|
|-
| colspan="2" style="text-align:center;" | {{{image4}}}
}}
{{#if:{{{nominee4|}}}|
|-
|-
! Nominee
! Alliance
| {{{nominee4}}}
| {{{alliance3|}}}
}}
{{#if:{{{running_mate4|}}}|
|-
|-
! Running mate
! Running mate
| {{{running_mate4}}}
| {{{running_mate3|}}}
}}
{{#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}}}
! Popular vote
}}
| {{{popular_vote3|}}}
{{#if:{{{map_caption|}}}|
|-
|-
| colspan="2" style="text-align:center; font-size:90%;" | {{{map_caption}}}
! Percentage
| {{{percentage3|}}}
}}
}}


<!-- Officeholders -->
{{#if:{{{title|}}}|{{!}}-{{!}}
{{#if:{{{title|}}}|
! Title
|-
{{!}} style="text-align:center;" | {{{title}}}}}
! colspan="2" style="text-align:center; background:#eee;" | {{{title}}}
{{#if:{{{before_election|}}}|{{!}}-{{!}}
}}
{{#if:{{{before_election|}}}|
|-
! Before election
! Before election
| {{{before_election}}}{{#if:{{{before_party|}}}|<br /><span style="font-size:90%;">{{{before_party}}}</span>|}}
{{!}} style="text-align:center;" | {{{before_election}}}}}
}}
{{#if:{{{before_party|}}}|{{!}}-{{!}}
{{#if:{{{after_election|}}}{{{ongoing|}}}|
! Before party
|-
{{!}} style="text-align:center;" | {{{before_party}}}}}
! {{#if:{{{ongoing|}}}|Elected {{#if:{{{posttitle|}}}|{{{posttitle}}}|{{{title|}}}}}|After election}}
{{#if:{{{after_election|}}}|{{!}}-{{!}}
| {{#if:{{{after_election|}}}|{{{after_election}}}|TBD}}{{#if:{{{after_party|}}}|<br /><span style="font-size:90%;">{{{after_party}}}</span>|}}
! After election
}}
{{!}} style="text-align:center;" | {{{after_election}}}}}
 
{{#if:{{{after_party|}}}|{{!}}-{{!}}
! After party
{{!}} style="text-align:center;" | {{{after_party}}}}}
|}
|}
</includeonly>
</includeonly><noinclude>
<noinclude>
{{Documentation}}
Simple, no-Lua election infobox for Chalo Chatu.
Images and maps must be passed as full wikitext (e.g., [[File:Name.png|130x130px]]).
</noinclude>
</noinclude>

Latest revision as of 11:02, 19 September 2025

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