Template:Infobox Election: Difference between revisions

Created page with "{| class="infobox vcard" style="border: 1px solid #a2a9b1; border-collapse: collapse; float: right; clear: right; width: 320px; margin: 0 0 1em 1em; font-size: 88%; line-height: 1.5em; color: inherit;" |- ! colspan="4" class="fn org" style="font-size: 125%; text-align: center; padding: 0.5em 0.4em;" | {{{election_name|Election Name}}} |- {{#if: {{{flag|}}} | {{!}} colspan="4" style="text-align: center; border-top: 1px solid #a2a9b1; padding: 0.6em 0.4em 0.2em 0.4em;" {..."
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox vcard" style="border: 1px solid #a2a9b1; border-collapse: collapse; float: right; clear: right; width: 320px; margin: 0 0 1em 1em; font-size: 88%; line-height: 1.5em; color: inherit;"
{| class="infobox vcard" style="border: none; border-top: 1px solid #a2a9b1; border-bottom: 1px solid #a2a9b1; border-collapse: collapse; float: right; clear: right; width: 320px; margin: 0 0 1em 1em; font-size: 88%; line-height: 1.5em; background: transparent; color: inherit;"


|-
|-
! colspan="4" class="fn org" style="font-size: 125%; text-align: center; padding: 0.5em 0.4em;" | {{{election_name|Election Name}}}
! colspan="4" class="fn org" style="font-size: 125%; text-align: center; padding: 0.5em 0.4em; border-bottom: 1px solid #a2a9b1; background: transparent;" | {{{election_name|Election Name}}}
|-
|-


{{#if: {{{flag|}}} |
| colspan="4" style="text-align: center; padding: 0.6em 0.4em 0.2em 0.4em;" | {{{flag|}}}
{{!}} colspan="4" style="text-align: center; border-top: 1px solid #a2a9b1; padding: 0.6em 0.4em 0.2em 0.4em;" {{!}} {{{flag}}}
|-
{{!}}-
}}


| colspan="4" style="border-top: {{#if: {{{flag|}}} | none | 1px solid #a2a9b1 }}; padding: 0.4em 0.4em;" |
| colspan="4" style="padding: 0.4em 0.4em;" |
{| style="width: 100%; text-align: center; background: transparent; color: inherit;"
{| style="width: 100%; text-align: center; background: transparent; color: inherit;"


Line 19: Line 17:
|-
|-


{{#if: {{{turnout|}}} |
| colspan="4" style="border-top: 1px solid #a2a9b1; padding: 0.6em 0.2em 0.5em 0.2em;" |
{{!}} colspan="4" style="padding: 0.2em 0.4em 0.5em 0.4em;" {{!}}
{{{!}} style="width: 100%; background: transparent; color: inherit;"
{{!}} style="width: 30%; font-weight: bold; text-align: left; vertical-align: top;" {{!}} Turnout
{{!}} style="width: 70%; text-align: center; vertical-align: top;" {{!}} {{{turnout}}}
{{!}}}
{{!}}-
}}
 
| colspan="4" style="border-top: 1px solid #a2a9b1; padding: 0.6em 0.2em 0.4em 0.2em;" |
{| style="width: 100%; text-align: center; table-layout: fixed; background: transparent; color: inherit; border-collapse: collapse;"
{| style="width: 100%; text-align: center; table-layout: fixed; background: transparent; color: inherit; border-collapse: collapse;"


Line 35: Line 24:
| style="width: 26%;" |
| style="width: 26%;" |
| style="width: 24.6%; padding: 0 2px; vertical-align: bottom;" | {{{image1|}}}
| style="width: 24.6%; padding: 0 2px; vertical-align: bottom;" | {{{image1|}}}
| style="width: 24.6%; padding: 0 2px; vertical-align: bottom;" | {{#if: {{{nominee2|}}} | {{{image2|}}} }}
| style="width: 24.6%; padding: 0 2px; vertical-align: bottom;" | {{{image2|}}}
| style="width: 24.6%; padding: 0 2px; vertical-align: bottom;" | {{#if: {{{nominee3|}}} | {{{image3|}}} }}
| style="width: 24.6%; padding: 0 2px; vertical-align: bottom;" | {{{image3|}}}
|-
|-


| style="height: 4px;" |
| style="height: 4px;" |
| style="height: 4px; background: {{{color1|transparent}}};" |
| style="height: 4px; background-color: {{{color1|transparent}}};" |
| style="height: 4px; background: {{#if: {{{nominee2|}}} | {{{color2|transparent}}} | transparent }};" |
| style="height: 4px; background-color: {{{color2|transparent}}};" |
| style="height: 4px; background: {{#if: {{{nominee3|}}} | {{{color3|transparent}}} | transparent }};" |
| style="height: 4px; background-color: {{{color3|transparent}}};" |
|-
|-


| style="text-align: left; font-weight: bold; padding: 4px 2px; vertical-align: top;" | Nominee
| style="text-align: left; font-weight: bold; padding: 4px 2px; vertical-align: top;" | Nominee
| style="padding: 4px 2px; vertical-align: top; font-weight: bold;" | {{{nominee1|}}}
| style="padding: 4px 2px; vertical-align: top;" | {{{nominee1|}}}
| style="padding: 4px 2px; vertical-align: top;" | {{{nominee2|}}}
| style="padding: 4px 2px; vertical-align: top;" | {{{nominee2|}}}
| style="padding: 4px 2px; vertical-align: top;" | {{{nominee3|}}}
| style="padding: 4px 2px; vertical-align: top;" | {{{nominee3|}}}
Line 55: Line 44:
| style="padding: 2px; vertical-align: top;" | {{{party2|}}}
| style="padding: 2px; vertical-align: top;" | {{{party2|}}}
| style="padding: 2px; vertical-align: top;" | {{{party3|}}}
| style="padding: 2px; vertical-align: top;" | {{{party3|}}}
|}
|-
|-


{{#if: {{{alliance1|}}}{{{alliance2|}}}{{{alliance3|}}} |
| colspan="4" style="border-top: 1px solid #a2a9b1; padding: 0.5em 0.4em;" |
{{!}} style="text-align: left; font-weight: bold; padding: 2px; vertical-align: top;" {{!}} Alliance
{| style="width: 100%; background: transparent; color: inherit;"
{{!}} style="padding: 2px; vertical-align: top;" {{!}} {{{alliance1|}}}
{{!}} style="padding: 2px; vertical-align: top;" {{!}} {{{alliance2|}}}
{{!}} style="padding: 2px; vertical-align: top;" {{!}} {{{alliance3|}}}
{{!}}-
}}
 
| style="text-align: left; font-weight: bold; padding: 2px; vertical-align: top;" | Popular vote
| style="padding: 2px; vertical-align: top; font-weight: bold;" | {{{popular_vote1|}}}
| style="padding: 2px; vertical-align: top;" | {{{popular_vote2|}}}
| style="padding: 2px; vertical-align: top;" | {{{popular_vote3|}}}
|-


| style="text-align: left; font-weight: bold; padding: 2px; vertical-align: top;" | Percentage
| style="width: 50%; text-align: left; vertical-align: top;" | '''{{{title|Office}}}'''<br />{{{before_election|}}}<br />{{{before_party|}}}
| style="padding: 2px; vertical-align: top; font-weight: bold;" | {{{percentage1|}}}
| style="width: 50%; text-align: right; vertical-align: top;" | '''Elected {{{elected_title|{{{title|office}}}}}}'''<br />{{{after_election|''''}}}<br />{{{after_party|}}}
| style="padding: 2px; vertical-align: top;" | {{{percentage2|}}}
| style="padding: 2px; vertical-align: top;" | {{{percentage3|}}}
|}
|}
|-
|-
{{#if: {{{before_election|}}}{{{after_election|}}} |
{{!}} colspan="4" style="border-top: 1px solid #a2a9b1; padding: 0.5em 0.4em;" {{!}}
{{{!}} style="width: 100%; background: transparent; color: inherit;"
{{!}} style="width: 50%; text-align: left; vertical-align: top;" {{!}} '''{{{title|Office}}} before election'''<br />{{{before_election|}}}<br />{{{before_party|}}}
{{!}} style="width: 50%; text-align: right; vertical-align: top;" {{!}} '''Elected {{{title|office}}}'''<br />{{{after_election|}}}<br />{{{after_party|}}}
{{!}}}
{{!}}-
}}
|}
|}