Template:Infobox election: Difference between revisions
From Chalo Chatu, Zambia online encyclopedia
Jump to navigationJump to search
Chalochatu (talk | contribs) No edit summary |
Chalochatu (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
{| class="infobox vevent" style="width:22em; line-height:1.5em;" | {| class="infobox vevent" style="width:22em; line-height:1.5em;" | ||
|+ {{#if:{{{election_name|}}}|{{{election_name}}}}} | |+ {{#if:{{{election_name|}}}|{{{election_name}}}}} | ||
<!-- Meta --> | |||
{{#if:{{{type|}}}| | |||
|- | |- | ||
! style="text-align:center;" | {{ | ! style="text-align:center;" | {{ucfirst:{{{type}}}}} election | ||
}} | |||
{{#if:{{{election_date|}}}| | |||
|- | |- | ||
| style="text-align:center;" | | style="text-align:center;" | {{{election_date}}} | ||
}} | |||
{{#if:{{{country|}}}| | {{#if:{{{country|}}}| | ||
|- | |- | ||
Line 32: | Line 38: | ||
}} | }} | ||
<!-- | <!-- Candidates block header --> | ||
{{#if:{{{nominee1|}}}| | {{#if:{{{nominee1|}}{{{nominee2|}}{{{nominee3|}}{{{nominee4|}}}}}}| | ||
|- | |- | ||
! colspan="2" style="text-align:center; background:#eee;" | Presidential election | ! colspan="2" style="text-align:center; background:#eee;" | Presidential election | ||
}} | }} | ||
<!-- Candidate 1 --> | |||
{{#if:{{{image1|}}}| | {{#if:{{{image1|}}}| | ||
|- | |- | ||
Line 59: | Line 67: | ||
|- | |- | ||
! Votes | ! Votes | ||
| {{#if:{{{popular_vote1|}}}|{{{popular_vote1}}}}} {{#if:{{{percentage1|}}}| ({{{percentage1}}})}} | | {{#if:{{{popular_vote1|}}}|{{{popular_vote1}}}}}{{#if:{{{percentage1|}}}| ({{{percentage1}}})}} | ||
}} | }} | ||
<!-- Candidate 2 --> | |||
{{#if:{{{image2|}}}| | {{#if:{{{image2|}}}| | ||
|- | |- | ||
Line 84: | Line 93: | ||
|- | |- | ||
! Votes | ! Votes | ||
| {{#if:{{{popular_vote2|}}}|{{{popular_vote2}}}}} {{#if:{{{percentage2|}}}| ({{{percentage2}}})}} | | {{#if:{{{popular_vote2|}}}|{{{popular_vote2}}}}}{{#if:{{{percentage2|}}}| ({{{percentage2}}})}} | ||
}} | }} | ||
<!-- Candidate 3 --> | |||
{{#if:{{{image3|}}}| | {{#if:{{{image3|}}}| | ||
|- | |- | ||
Line 109: | Line 119: | ||
|- | |- | ||
! Votes | ! Votes | ||
| {{#if:{{{popular_vote3|}}}|{{{popular_vote3}}}}} {{#if:{{{percentage3|}}}| ({{{percentage3}}})}} | | {{#if:{{{popular_vote3|}}}|{{{popular_vote3}}}}}{{#if:{{{percentage3|}}}| ({{{percentage3}}})}} | ||
}} | }} | ||
<!-- Candidate 4 --> | |||
{{#if:{{{image4|}}}| | {{#if:{{{image4|}}}| | ||
|- | |- | ||
Line 134: | Line 145: | ||
|- | |- | ||
! Votes | ! Votes | ||
| {{#if:{{{popular_vote4|}}}|{{{popular_vote4}}}}} {{#if:{{{percentage4|}}}| ({{{percentage4}}})}} | | {{#if:{{{popular_vote4|}}}|{{{popular_vote4}}}}}{{#if:{{{percentage4|}}}| ({{{percentage4}}})}} | ||
}} | }} | ||
<!-- | <!-- Map (pass full wikitext or leave blank) --> | ||
{{#if:{{{ | {{#if:{{{map|}}}| | ||
|- | |- | ||
| colspan="2" style="text-align:center;" | | | colspan="2" style="text-align:center;" | {{{map}}} | ||
}} | }} | ||
{{#if:{{{map_caption|}}}| | {{#if:{{{map_caption|}}}| | ||
Line 147: | Line 158: | ||
}} | }} | ||
<!-- | <!-- Officeholders --> | ||
{{#if:{{{title | {{#if:{{{title|}}}| | ||
|- | |- | ||
! colspan="2" style="text-align:center; background:#eee;" | {{{title}}} | ! colspan="2" style="text-align:center; background:#eee;" | {{{title}}} | ||
Line 163: | Line 174: | ||
}} | }} | ||
|}</includeonly><noinclude> | |} | ||
Simple, | </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> | </noinclude> |