Diferencia entre revisiones de «Plantilla:Infobox election/custom»
Apariencia
Sin resumen de edición |
Sin resumen de edición |
||
| Línea 1: | Línea 1: | ||
{| 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; box-sizing: border-box;" | {| 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; box-sizing: border-box;" | ||
|+ style="font-size: 125%; font-weight: bold; padding-bottom: 5px;" | {{{election_name|}}} | |+ style="font-size: 125%; font-weight: bold; padding-bottom: 5px;" | {{{título|{{{election_name|}}}}}} | ||
|- | |- | ||
| colspan="2" style="padding-bottom: 10px; text-align: center;" | {{{logo|}}} | | colspan="2" style="padding-bottom: 10px; text-align: center;" | [[Archivo:{{{escudo|{{{logo|}}}}}}|120px]] | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
{| style="width: 100%; background: transparent; margin-bottom: 5px;" | {| style="width: 100%; background: transparent; margin-bottom: 5px;" | ||
| style="width: 33%; text-align: left;" | ← {{{ | | style="width: 33%; text-align: left;" | [[{{{elección_anterior|← {{{año_anterior|}}}}}}]] | ||
| style="width: 33%; text-align: center; font-weight: bold; font-size: 110%;" | {{{election_date|}}} | | style="width: 33%; text-align: center; font-weight: bold; font-size: 110%;" | {{{año|{{{election_date|}}}}}} | ||
| style="width: 33%; text-align: right;" | {{{ | | style="width: 33%; text-align: right;" | [[{{{elección_siguiente|{{{año_siguiente|}}}}}} →]] | ||
|} | |} | ||
|- | |- | ||
| colspan="2" style="border-top: 1px solid #a2a9b1; padding: 5px 0;" | {{{seats_for_election|}}} | | colspan="2" style="border-top: 1px solid #a2a9b1; padding: 5px 0;" | {{{escaños_en_juego|{{{seats_for_election|}}}}}} | ||
|- | |- | ||
| colspan="2" style="padding-bottom: 5px;" | {{{opinion_polls|}}} | | colspan="2" style="padding-bottom: 5px;" | {{{encuestas|{{{opinion_polls|}}}}}} | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
{| style="width: 100%; background: transparent; text-align: left; font-size: 95%;" | {| style="width: 100%; background: transparent; text-align: left; font-size: 95%;" | ||
{{#if:{{{ | {{#if:{{{legislatura_historica|}}}| | ||
<tr> | <tr> | ||
<th style="padding: 2px 0;">Legislatura histórica</th> | <th style="padding: 2px 0;">Legislatura histórica</th> | ||
<td style="text-align: right; padding: 2px 0;">{{{ | <td style="text-align: right; padding: 2px 0;">{{{legislatura_historica}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if:{{{registered|}}}| | {{#if:{{{censo|{{{registered|}}}}}}| | ||
<tr> | <tr> | ||
<th style="padding: 2px 0;">Censo electoral</th> | <th style="padding: 2px 0;">Censo electoral</th> | ||
<td style="text-align: right; padding: 2px 0;">{{{registered}}}</td> | <td style="text-align: right; padding: 2px 0;">{{{censo|{{{registered|}}}}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if:{{{turnout|}}}| | {{#if:{{{participación|{{{turnout|}}}}}}| | ||
<tr> | <tr> | ||
<th style="padding: 2px 0;">Participación</th> | <th style="padding: 2px 0;">Participación</th> | ||
<td style="text-align: right; padding: 2px 0;">{{{turnout}}}</td> | <td style="text-align: right; padding: 2px 0;">{{{participación|{{{turnout|}}}}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
| Línea 42: | Línea 38: | ||
|- | |- | ||
{{#if:{{{ | {{#if:{{{nombre_candidato1|}}}| | ||
| colspan="2" style="border-top: 1px solid #a2a9b1; padding-top: 5px;" | | | colspan="2" style="border-top: 1px solid #a2a9b1; padding-top: 5px;" | | ||
{| style="width: 100%; background: transparent; text-align: center; font-size: 95%; table-layout: fixed;" | {| style="width: 100%; background: transparent; text-align: center; font-size: 95%; table-layout: fixed;" | ||
|- | |- | ||
<td style="width: 25%;"></td> | <td style="width: 25%;"></td> | ||
<td style="border-bottom: 4px solid #{{{ | <td style="border-bottom: 4px solid #{{{color_candidato1|ccc}}}; padding: 2px;"> | ||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;"> | <div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">[[Archivo:{{{imagen_candidato1|}}}|90px]]</div> | ||
</td> | </td> | ||
{{#if:{{{ | {{#if:{{{imagen_candidato2|}}}| | ||
<td style="border-bottom: 4px solid #{{{ | <td style="border-bottom: 4px solid #{{{color_candidato2|ccc}}}; padding: 2px;"> | ||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{ | <div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">[[Archivo:{{{imagen_candidato2|}}}|90px]]</div> | ||
</td> | </td> | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{imagen_candidato3|}}}| | ||
<td style="border-bottom: 4px solid #{{{ | <td style="border-bottom: 4px solid #{{{color_candidato3|ccc}}}; padding: 2px;"> | ||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{ | <div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">[[Archivo:{{{imagen_candidato3|}}}|90px]]</div> | ||
</td> | </td> | ||
}} | }} | ||
</tr> | </tr> | ||
{{#if:{{{ | {{#if:{{{nombre_candidato1|}}}|<tr><th style="text-align: left;">Candidato</th><td style="color: #{{{color_candidato1|000}}};">{{{nombre_candidato1|}}}</td>{{#if:{{{nombre_candidato2|}}}|<td style="color: #{{{color_candidato2|000}}};">{{{nombre_candidato2|}}}</td>}}{{#if:{{{nombre_candidato3|}}}|<td style="color: #{{{color_candidato3|000}}};">{{{nombre_candidato3|}}}</td>}}</tr>}} | ||
{{#if:{{{ | {{#if:{{{partido_candidato1|}}}|<tr><th style="text-align: left;">Partido</th><td>{{{partido_candidato1|}}}</td>{{#if:{{{partido_candidato2|}}}|<td>{{{partido_candidato2|}}}</td>}}{{#if:{{{partido_candidato3|}}}|<td>{{{partido_candidato3|}}}</td>}}</tr>}} | ||
{{#if:{{{ | {{#if:{{{coalición_candidato1|}}}|<tr><th style="text-align: left;">Coalición</th><td>{{{coalición_candidato1|}}}</td>{{#if:{{{coalición_candidato2|}}}|<td>{{{coalición_candidato2|}}}</td>}}{{#if:{{{coalición_candidato3|}}}|<td>{{{coalición_candidato3|}}}</td>}}</tr>}} | ||
{{#if:{{{ | {{#if:{{{votos_candidato1|}}}|<tr><th style="text-align: left;">Votos</th><td>{{{votos_candidato1|}}}</td>{{#if:{{{votos_candidato2|}}}|<td>{{{votos_candidato2|}}}</td>}}{{#if:{{{votos_candidato3|}}}|<td>{{{votos_candidato3|}}}</td>}}</tr>}} | ||
{{#if:{{{ | {{#if:{{{porcentaje_candidato1|}}}|<tr><th style="text-align: left;">Porcentaje</th><td><b>{{{porcentaje_candidato1|}}}</b></td>{{#if:{{{porcentaje_candidato2|}}}|<td><b>{{{porcentaje_candidato2|}}}</b></td>}}{{#if:{{{porcentaje_candidato3|}}}|<td><b>{{{porcentaje_candidato3|}}}</b></td>}}</tr>}} | ||
{{#if:{{{ | {{#if:{{{variación_candidato1|}}}|<tr><th style="text-align: left;">Variación</th><td>{{{variación_candidato1|}}}</td>{{#if:{{{variación_candidato2|}}}|<td>{{{variación_candidato2|}}}</td>}}{{#if:{{{variación_candidato3|}}}|<td>{{{variación_candidato3|}}}</td>}}</tr>}} | ||
{{#if:{{{ | |||
{{#if:{{{ | |||
|} | |} | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{nombre_candidato4|}}}| | ||
| colspan="2" | | | colspan="2" | | ||
{| 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;" | {| 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;" | ||
|- | |- | ||
<td style="width: 25%;"></td> | <td style="width: 25%;"></td> | ||
<td style="border-bottom: 4px solid #{{{ | <td style="border-bottom: 4px solid #{{{color_candidato4|ccc}}}; padding: 2px;"> | ||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{ | <div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">[[Archivo:{{{imagen_candidato4|}}}|90px]]</div> | ||
</td> | </td> | ||
{{#if:{{{ | {{#if:{{{imagen_candidato5|}}}| | ||
<td style="border-bottom: 4px solid #{{{ | <td style="border-bottom: 4px solid #{{{color_candidato5|ccc}}}; padding: 2px;"> | ||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{ | <div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">[[Archivo:{{{imagen_candidato5|}}}|90px]]</div> | ||
</td> | </td> | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{imagen_candidato6|}}}| | ||
<td style="border-bottom: 4px solid #{{{ | <td style="border-bottom: 4px solid #{{{color_candidato6|ccc}}}; padding: 2px;"> | ||
<div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{ | <div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">[[Archivo:{{{imagen_candidato6|}}}|90px]]</div> | ||
</td> | </td> | ||
}} | }} | ||
</tr> | </tr> | ||
{{#if:{{{ | {{#if:{{{nombre_candidato4|}}}|<tr><th style="text-align: left;">Candidato</th><td style="color: #{{{color_candidato4|000}}};">{{{nombre_candidato4|}}}</td>{{#if:{{{nombre_candidato5|}}}|<td style="color: #{{{color_candidato5|000}}};">{{{nombre_candidato5|}}}</td>}}{{#if:{{{nombre_candidato6|}}}|<td style="color: #{{{color_candidato6|000}}};">{{{nombre_candidato6|}}}</td>}}</tr>}} | ||
{{#if:{{{ | {{#if:{{{partido_candidato4|}}}|<tr><th style="text-align: left;">Partido</th><td>{{{partido_candidato4|}}}</td>{{#if:{{{partido_candidato5|}}}|<td>{{{partido_candidato5|}}}</td>}}{{#if:{{{partido_candidato6|}}}|<td>{{{partido_candidato6|}}}</td>}}</tr>}} | ||
{{#if:{{{ | {{#if:{{{coalición_candidato4|}}}|<tr><th style="text-align: left;">Coalición</th><td>{{{coalición_candidato4|}}}</td>{{#if:{{{coalición_candidato5|}}}|<td>{{{coalición_candidato5|}}}</td>}}{{#if:{{{coalición_candidato6|}}}|<td>{{{coalición_candidato6|}}}</td>}}</tr>}} | ||
{{#if:{{{ | {{#if:{{{votos_candidato4|}}}|<tr><th style="text-align: left;">Votos</th><td>{{{votos_candidato4|}}}</td>{{#if:{{{votos_candidato5|}}}|<td>{{{votos_candidato5|}}}</td>}}{{#if:{{{votos_candidato6|}}}|<td>{{{votos_candidato6|}}}</td>}}</tr>}} | ||
{{#if:{{{ | {{#if:{{{porcentaje_candidato4|}}}|<tr><th style="text-align: left;">Porcentaje</th><td><b>{{{porcentaje_candidato4|}}}</b></td>{{#if:{{{porcentaje_candidato5|}}}|<td><b>{{{porcentaje_candidato5|}}}</b></td>}}{{#if:{{{porcentaje_candidato6|}}}|<td><b>{{{porcentaje_candidato6|}}}</b></td>}}</tr>}} | ||
{{#if:{{{ | {{#if:{{{variación_candidato4|}}}|<tr><th style="text-align: left;">Variación</th><td>{{{variación_candidato4|}}}</td>{{#if:{{{variación_candidato5|}}}|<td>{{{variación_candidato5|}}}</td>}}{{#if:{{{variación_candidato6|}}}|<td>{{{variación_candidato6|}}}</td>}}</tr>}} | ||
{{#if:{{{ | |||
{{#if:{{{ | |||
|} | |} | ||
}} | }} | ||
| Línea 142: | Línea 98: | ||
{| style="width: 100%; background: transparent; font-size: 95%;" | {| style="width: 100%; background: transparent; font-size: 95%;" | ||
|- | |- | ||
! style="text-align: left; color: #0645ad;" | {{{ | ! style="text-align: left; color: #0645ad;" | {{{cargo_titular|Cargo}}} saliente | ||
! style="text-align: right;" | {{{ | ! style="text-align: right;" | {{{cargo_electo|Electo}}} | ||
|- | |- | ||
| style="text-align: left;" | {{{ | | style="text-align: left;" | {{{titular_nombre|}}} | ||
| style="text-align: right;" | {{{ | | style="text-align: right; font-weight: bold;" | {{{electo_nombre|}}} | ||
|- | |- | ||
| style="text-align: left; color: # | | style="text-align: left; color: #777; font-size: 85%;" | {{{titular_partido|}}} | ||
| style="text-align: right; color: # | | style="text-align: right; color: #777; font-size: 85%;" | {{{electo_partido|}}} | ||
|} | |} | ||
|} | |} | ||