Diferencia entre revisiones de «Plantilla:Infobox election/custom»
Sin resumen de edición |
Sin resumen de edición |
||
| Línea 1: | Línea 1: | ||
{| class="infobox" style="width: | {| class="infobox" style="width: 380px; text-align: center; font-size: 90%; line-height: 1.5em; background: #f8f9fa; border: 1px solid #a2a9b1; padding: 5px; float: right; margin-left: 15px;" | ||
|+ style="font-size: 125%; font-weight: bold; padding-bottom: 5px;" | {{{election_name| | |+ style="font-size: 125%; font-weight: bold; padding-bottom: 5px;" | {{{election_name|}}} | ||
|- | |- | ||
| colspan="2" style="padding-bottom: 10px;" | {{{logo|}}} | | colspan="2" style="padding-bottom: 10px; text-align: center;" | {{{logo|}}} | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
{| style="width: 100%; background: transparent;" | {| style="width: 100%; background: transparent; margin-bottom: 5px;" | ||
| style="width: 33%; text-align: left;" | ← {{{previous_year|}}} | | style="width: 33%; text-align: left;" | ← {{{previous_year|}}} | ||
| style="width: 33%; text-align: center; font-weight: bold;" | {{{election_date|}}} | | style="width: 33%; text-align: center; font-weight: bold; font-size: 110%;" | {{{election_date|}}} | ||
| style="width: 33%; text-align: right;" | {{{next_year|}}} → | | style="width: 33%; text-align: right;" | ''{{{next_year|}}}'' → | ||
|- | |||
| style="width: 33%; text-align: left; font-size: 85%; color: #0645ad;" | ← presidente saliente | |||
| style="width: 33%; text-align: center;" | | |||
| style="width: 33%; text-align: right; font-size: 85%; color: #0645ad;" | presidente electo → | |||
|} | |} | ||
|- | |- | ||
| colspan="2" style=" | | colspan="2" style="padding-bottom: 5px;" | {{{opinion_polls|}}} | ||
|- | |- | ||
| colspan="2" | | |||
<table style="width: 100%; background: transparent; text-align: left; font-size: 95%;"> | |||
{{#if:{{{historical_legislature|}}}| | |||
<tr> | |||
<th style="padding: 2px 0;">Legislatura histórica</th> | |||
<td style="text-align: right; padding: 2px 0;">{{{historical_legislature}}}</td> | |||
</tr> | |||
}} | |||
<tr> | |||
<th style="padding: 2px 0;">Censo electoral</th> | |||
<td style="text-align: right; padding: 2px 0;">{{{registered|}}}</td> | |||
</tr> | |||
<tr> | |||
<th style="padding: 2px 0;">Participación</th> | |||
<td style="text-align: right; padding: 2px 0;">{{{turnout|}}}</td> | |||
</tr> | |||
</table> | |||
|- | |- | ||
| colspan="2" style="border-top: 1px solid #a2a9b1; padding-top: 5px;" | | |||
| style="background: #{{{color1| | <table style="width: 100%; background: transparent; text-align: center; font-size: 95%; table-layout: fixed;"> | ||
| style=" | <tr> | ||
| | <td style="width: 25%;"></td> | ||
<td style="border-bottom: 4px solid #{{{color1|ccc}}}; padding: 2px;"> | |||
| | <div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{image1|}}}</div> | ||
< | </td> | ||
<div style=" | {{#if:{{{party2|{{{leader2|}}}}}}| | ||
< | <td style="border-bottom: 4px solid #{{{color2|ccc}}}; padding: 2px;"> | ||
<table style="width: 100%;"> | <div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{image2|}}}</div> | ||
<td><div style=" | </td> | ||
<td><div style=" | }} | ||
{{#if:{{{party3|{{{leader3|}}}}}}| | |||
<td style="border-bottom: 4px solid #{{{color3|ccc}}}; padding: 2px;"> | |||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{image3|}}}</div> | |||
</td> | |||
}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Candidato</th> | |||
<td style="color: #{{{color1|000}}};">{{{leader1|}}}</td> | |||
{{#if:{{{party2|{{{leader2|}}}}}}|<td style="color: #{{{color2|000}}};">{{{leader2|}}}</td>}} | |||
{{#if:{{{party3|{{{leader3|}}}}}}|<td style="color: #{{{color3|000}}};">{{{leader3|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Partido</th> | |||
<td>{{{party1|}}}</td> | |||
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{party2|}}}</td>}} | |||
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{party3|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Alianza</th> | |||
<td>{{{alliance1|}}}</td> | |||
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{alliance2|}}}</td>}} | |||
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{alliance3|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Última elección</th> | |||
<td>{{{last_election1|}}}</td> | |||
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{last_election2|}}}</td>}} | |||
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{last_election3|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Votos</th> | |||
<td>{{{popular_vote1|}}}</td> | |||
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{popular_vote2|}}}</td>}} | |||
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{popular_vote3|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Porcentaje</th> | |||
<td>{{{percentage1|}}}</td> | |||
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{percentage2|}}}</td>}} | |||
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{percentage3|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Variación</th> | |||
<td>{{{swing1|}}}</td> | |||
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{swing2|}}}</td>}} | |||
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{swing3|}}}</td>}} | |||
</tr> | |||
</table> | |||
{{#if:{{{party4|{{{leader4|{{{image4|}}}}}}}}}| | |||
<table style="width: 100%; background: transparent; text-align: center; font-size: 95%; table-layout: fixed; border-top: 1px solid #a2a9b1; margin-top: 5px; padding-top: 5px;"> | |||
<tr> | |||
<td style="width: 25%;"></td> | |||
<td style="border-bottom: 4px solid #{{{color4|ccc}}}; padding: 2px;"> | |||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{image4|}}}</div> | |||
</td> | |||
{{#if:{{{party5|{{{leader5|}}}}}}| | |||
<td style="border-bottom: 4px solid #{{{color5|ccc}}}; padding: 2px;"> | |||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{image5|}}}</div> | |||
</td> | |||
}} | |||
{{#if:{{{party6|{{{leader6|}}}}}}| | |||
<td style="border-bottom: 4px solid #{{{color6|ccc}}}; padding: 2px;"> | |||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{image6|}}}</div> | |||
</td> | |||
}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Candidato</th> | |||
<td style="color: #{{{color4|000}}};">{{{leader4|}}}</td> | |||
{{#if:{{{party5|{{{leader5|}}}}}}|<td style="color: #{{{color5|000}}};">{{{leader5|}}}</td>}} | |||
{{#if:{{{party6|{{{leader6|}}}}}}|<td style="color: #{{{color6|000}}};">{{{leader6|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Partido</th> | |||
<td>{{{party4|}}}</td> | |||
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{party5|}}}</td>}} | |||
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{party6|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Alianza</th> | |||
<td>{{{alliance4|}}}</td> | |||
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{alliance5|}}}</td>}} | |||
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{alliance6|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Última elección</th> | |||
<td>{{{last_election4|}}}</td> | |||
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{last_election5|}}}</td>}} | |||
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{last_election6|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Votos</th> | |||
<td>{{{popular_vote4|}}}</td> | |||
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{popular_vote5|}}}</td>}} | |||
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{popular_vote6|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Porcentaje</th> | |||
<td>{{{percentage4|}}}</td> | |||
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{percentage5|}}}</td>}} | |||
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{percentage6|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Variación</th> | |||
<td>{{{swing4|}}}</td> | |||
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{swing5|}}}</td>}} | |||
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{swing6|}}}</td>}} | |||
</tr> | |||
</table> | |||
}} | |||
{{#if:{{{party7|{{{leader7|{{{image7|}}}}}}}}}| | |||
<table style="width: 100%; background: transparent; text-align: center; font-size: 95%; table-layout: fixed; border-top: 1px solid #a2a9b1; margin-top: 5px; padding-top: 5px;"> | |||
<tr> | |||
<td style="width: 25%;"></td> | |||
<td style="border-bottom: 4px solid #{{{color7|ccc}}}; padding: 2px;"> | |||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{image7|}}}</div> | |||
</td> | |||
{{#if:{{{party8|{{{leader8|}}}}}}| | |||
<td style="border-bottom: 4px solid #{{{color8|ccc}}}; padding: 2px;"> | |||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{image8|}}}</div> | |||
</td> | |||
}} | |||
{{#if:{{{party9|{{{leader9|}}}}}}| | |||
<td style="border-bottom: 4px solid #{{{color9|ccc}}}; padding: 2px;"> | |||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{image9|}}}</div> | |||
</td> | |||
}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Candidato</th> | |||
<td style="color: #{{{color7|000}}};">{{{leader7|}}}</td> | |||
{{#if:{{{party8|{{{leader8|}}}}}}|<td style="color: #{{{color8|000}}};">{{{leader8|}}}</td>}} | |||
{{#if:{{{party9|{{{leader9|}}}}}}|<td style="color: #{{{color9|000}}};">{{{leader9|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Partido</th> | |||
<td>{{{party7|}}}</td> | |||
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{party8|}}}</td>}} | |||
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{party9|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Alianza</th> | |||
<td>{{{alliance7|}}}</td> | |||
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{alliance8|}}}</td>}} | |||
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{alliance9|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Última elección</th> | |||
<td>{{{last_election7|}}}</td> | |||
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{last_election8|}}}</td>}} | |||
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{last_election9|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Votos</th> | |||
<td>{{{popular_vote7|}}}</td> | |||
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{popular_vote8|}}}</td>}} | |||
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{popular_vote9|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Porcentaje</th> | |||
<td>{{{percentage7|}}}</td> | |||
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{percentage8|}}}</td>}} | |||
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{percentage9|}}}</td>}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Variación</th> | |||
<td>{{{swing7|}}}</td> | |||
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{swing8|}}}</td>}} | |||
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{swing9|}}}</td>}} | |||
</tr> | |||
</table> | </table> | ||
}} | |||
|- | |- | ||
| colspan="2" style="border-top: 1px solid #a2a9b1; padding-top: 5px;" | | |||
{| style="width: 100%; background: transparent; font-size: 95%;" | |||
|- | |- | ||
! style="text-align: left;" | ! style="text-align: left; color: #0645ad;" | {{{title|}}} saliente | ||
| {{{ | ! style="text-align: right;" | {{{posttitle|}}} | ||
| {{{ | |||
|- | |- | ||
| | | style="text-align: left;" | {{{before_election|}}} | ||
| style="text-align: right;" | {{{after_election|}}} | |||
|- | |- | ||
| style="text-align: left; color: #888;" | {{{before_party|}}} | |||
| style="text-align: right; color: #888;" | {{{after_party|}}} | |||
| | |} | ||
| | |||
|} | |} | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"election_name": {}, | |||
"logo": {}, | |||
"previous_year": {}, | |||
"election_date": {}, | |||
"next_year": {}, | |||
"opinion_polls": {}, | |||
"historical_legislature": {}, | |||
"registered": {}, | |||
"turnout": {}, | |||
"color1": {}, | |||
"image1": {}, | |||
"party2": {}, | |||
"leader2": {}, | |||
"color2": {}, | |||
"image2": {}, | |||
"party3": {}, | |||
"leader3": {}, | |||
"color3": {}, | |||
"image3": {}, | |||
"leader1": {}, | |||
"party1": {}, | |||
"alliance1": {}, | |||
"alliance2": {}, | |||
"alliance3": {}, | |||
"last_election1": {}, | |||
"last_election2": {}, | |||
"last_election3": {}, | |||
"popular_vote1": {}, | |||
"popular_vote2": {}, | |||
"popular_vote3": {}, | |||
"percentage1": {}, | |||
"percentage2": {}, | |||
"percentage3": {}, | |||
"swing1": {}, | |||
"swing2": {}, | |||
"swing3": {}, | |||
"party4": {}, | |||
"leader4": {}, | |||
"image4": {}, | |||
"color4": {}, | |||
"party5": {}, | |||
"leader5": {}, | |||
"color5": {}, | |||
"image5": {}, | |||
"party6": {}, | |||
"leader6": {}, | |||
"color6": {}, | |||
"image6": {}, | |||
"alliance4": {}, | |||
"alliance5": {}, | |||
"alliance6": {}, | |||
"last_election4": {}, | |||
"last_election5": {}, | |||
"last_election6": {}, | |||
"popular_vote4": {}, | |||
"popular_vote5": {}, | |||
"popular_vote6": {}, | |||
"percentage4": {}, | |||
"percentage5": {}, | |||
"percentage6": {}, | |||
"swing4": {}, | |||
"swing5": {}, | |||
"swing6": {}, | |||
"party7": {}, | |||
"leader7": {}, | |||
"image7": {}, | |||
"color7": {}, | |||
"party8": {}, | |||
"leader8": {}, | |||
"color8": {}, | |||
"image8": {}, | |||
"party9": {}, | |||
"leader9": {}, | |||
"color9": {}, | |||
"image9": {}, | |||
"alliance7": {}, | |||
"alliance8": {}, | |||
"alliance9": {}, | |||
"last_election7": {}, | |||
"last_election8": {}, | |||
"last_election9": {}, | |||
"popular_vote7": {}, | |||
"popular_vote8": {}, | |||
"popular_vote9": {}, | |||
"percentage7": {}, | |||
"percentage8": {}, | |||
"percentage9": {}, | |||
"swing7": {}, | |||
"swing8": {}, | |||
"swing9": {}, | |||
"title": {}, | |||
"posttitle": {}, | |||
"before_election": {}, | |||
"after_election": {}, | |||
"before_party": {}, | |||
"after_party": {} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> | |||