Template:Election: Difference between revisions
From YATA Wiki
Jump to navigationJump to search
(Redirected page to Template:ThreePartyElection) Tag: New redirect |
(Removed redirect to Template:ThreePartyElection) Tag: Removed redirect |
||
Line 1: | Line 1: | ||
# | <includeonly> | ||
{{infobox | |||
|templatestyles = Template:Infobox country/styles.css | |||
| bodyclass = ib-country vcard | |||
| aboveclass = adr | |||
| subheader = {{#if:{{{life_span|}}} | {{{life_span}}} | {{#if:{{{year_start|}}}|{{{year_start}}}{{#if:{{{year_end|}}}|–{{{year_end}}} }} }} }} | |||
| above = {{{title1|<includeonly>{{PAGENAME}}</includeonly>}}} | |||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image1|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}{{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} | |||
| label2 = Type | |||
| data2 = {{{type|{{{type}}}}}} | |||
| label3 = Turnout | |||
| data3 = {{{turnout|{{{turnout}}}}}} | |||
| label4 = Result | |||
| data4 = {{{result|{{{result}}}}}} | |||
| header5 = Candidates | |||
| data6 = {{Infobox/Columns|{{{candidates1|}}}|{{{candidates2|}}}|{{{candidates3|}}} }} | |||
| header7 = Coalitions | |||
| data8 = {{#if:{{{coalition1|}}}{{{coalition2|}}}{{{coalition3|}}}{{{coalition1a|}}}{{{coalition2a|}}}{{{coalition3a|}}}{{{coalition1b|}}}{{{coalition2b|}}}{{{coalition3b|}}}{{{coalition1c|}}}{{{coalition2c|}}}{{{coalition3c|}}}{{{coalition1d|}}}{{{coalition2d|}}}{{{coalition3d|}}} | |||
|<table style="width:100%; border-spacing:0; margin:0; text-align:left; display:inline-table;"> | |||
{{#if:{{{coalition1|}}}{{{coalition2|}}}{{{coalition3|}}}|<tr> | |||
<td style="{{#if:{{{coalition2|}}}{{{coalition3|}}}|width:{{#if:{{{coalition3|}}}|33%|50%}};}}"><div> | |||
{{{coalition1|}}}</div></td> | |||
{{#if:{{{coalition2|}}}|<td style="width:{{#if:{{{coalition3|}}}|33%|50%}}; padding-left:0.25em; border-left:1px dotted #aaa"><div> | |||
{{{coalition2}}}</div></td>}} | |||
{{#if:{{{coalition3|}}}|<td style="width:33%; padding-left:0.25em; border-left:1px dotted #aaa"><div> | |||
{{{coalition3}}}</div></td> | |||
}}</tr> | |||
}} | |||
{{#if:{{{coalition1a|}}}{{{coalition2a|}}}{{{coalition3a|}}}|<tr> | |||
<td style="{{#if:{{{coalition2a|}}}{{{coalition3a|}}}|width:{{#if:{{{coalition3a|}}}|33%|50%}};}}border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition1a|}}}</div></td> | |||
{{#if:{{{coalition2a|}}}|<td style="width:{{#if:{{{coalition3a|}}}|33%|50%}}; padding-left:0.25em; border-left:1px dotted #aaa; border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition2a}}}</div></td>}} | |||
{{#if:{{{coalition3a|}}}|<td style="width:33%; padding-left:0.25em; border-left:1px dotted #aaa; border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition3a}}}</div></td> | |||
}}</tr> | |||
}} | |||
{{#if:{{{coalition1b|}}}{{{coalition2b|}}}{{{coalition3b|}}}|<tr> | |||
<td style="{{#if:{{{coalition2b|}}}{{{coalition3b|}}}|width:{{#if:{{{coalition3b|}}}|33%|50%}};}}border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition1b|}}}</div></td> | |||
{{#if:{{{coalition2b|}}}|<td style="width:{{#if:{{{coalition3b|}}}|33%|50%}}; padding-left:0.25em; border-left:1px dotted #aaa; border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition2b}}}</div></td>}} | |||
{{#if:{{{coalition3b|}}}|<td style="width:33%; padding-left:0.25em; border-left:1px dotted #aaa; border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition3b}}}</div></td> | |||
}}</tr> | |||
}} | |||
{{#if:{{{coalition1c|}}}{{{coalition2c|}}}{{{coalition3c|}}}|<tr> | |||
<td style="{{#if:{{{coalition2c|}}}{{{coalition3c|}}}|width:{{#if:{{{coalition3c|}}}|33%|50%}};}}border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition1c|}}}</div></td> | |||
{{#if:{{{coalition2c|}}}|<td style="width:{{#if:{{{coalition3c|}}}|33%|50%}}; padding-left:0.25em; border-left:1px dotted #aaa; border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition2c}}}</div></td>}} | |||
{{#if:{{{coalition3c|}}}|<td style="width:33%; padding-left:0.25em; border-left:1px dotted #aaa; border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition3c}}}</div></td> | |||
}}</tr> | |||
}} | |||
{{#if:{{{coalition1d|}}}{{{coalition2d|}}}{{{coalition3d|}}}|<tr> | |||
<td style="{{#if:{{{coalition2d|}}}|width:{{#if:{{{coalition3d|}}}|33%|50%}};}}border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition1d|}}}</div></td> | |||
{{#if:{{{coalition2d|}}}|<td style="width:{{#if:{{{coalition3d|}}}|33%|50%}}; padding-left:0.25em; border-left:1px dotted #aaa; border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition2d}}}</div></td>}} | |||
{{#if:{{{coalition3d|}}}|<td style="width:33%; padding-left:0.25em; border-left:1px dotted #aaa; border-top:1px dotted #aaa"> | |||
<div> | |||
{{{coalition3d}}}</div></td> | |||
}}</tr> | |||
}}</table>}} | |||
| header9 = Popular Vote | |||
| data10 = {{Infobox/Columns|{{{popularvote1|}}}|{{{popularvote2|}}}|{{{popularvote3|}}} }} | |||
| header11 = Successor/Predecessor | |||
| data12 = {{Infobox/Columns|{{{previousleader|}}}|{{{newleader|}}} }} | |||
| belowclass = mergedtoprow noprint | |||
| below = {{#if:{{{navbar|}}}| {{navbar|{{{navbar|}}}}} }} | |||
}} | |||
</includeonly> | |||
<noinclude> | |||
{{documentation}} | |||
<noinclude> | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"title1": { | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"image1": { | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"image2": { | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"type": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"turnout": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"result": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"candidates1": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"candidates2": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"candidates3": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"coalition1": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"coalition2": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"coalition3": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"popularvote1": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"popularvote2": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"popularvote3": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"previousleader": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"newleader": { | |||
"type": "string", | |||
"suggested": true | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 10:10, 23 April 2024
}}} | image =
| label2 = Type | data2 = {{{type}}}
| label3 = Turnout | data3 = {{{turnout}}}
| label4 = Result | data4 = {{{result}}}
| header5 = Candidates | data6 =
| header7 = Coalitions | data8 =
| header9 = Popular Vote | data10 =
| header11 = Successor/Predecessor | data12 =
| belowclass = mergedtoprow noprint | below = }} </includeonly>
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title1 | title1 | no description | String | required |
image1 | image1 | no description | File | suggested |
image2 | image2 | no description | File | suggested |
type | type | no description | String | suggested |
turnout | turnout | no description | String | suggested |
result | result | no description | String | suggested |
candidates1 | candidates1 | no description | String | suggested |
candidates2 | candidates2 | no description | String | suggested |
candidates3 | candidates3 | no description | String | suggested |
coalition1 | coalition1 | no description | String | suggested |
coalition2 | coalition2 | no description | String | suggested |
coalition3 | coalition3 | no description | String | suggested |
popularvote1 | popularvote1 | no description | String | suggested |
popularvote2 | popularvote2 | no description | String | suggested |
popularvote3 | popularvote3 | no description | String | suggested |
previousleader | previousleader | no description | String | suggested |
newleader | newleader | no description | String | suggested |