Ir al contenido

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: 380px; text-align: center; font-size: 90%; line-height: 1.5em; background: #f8f9fa; border: 1px solid #a2a9b1; padding: 5px; float: right; margin-left: 15px;"
{| class="infobox" style="width: 320px; 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;" | Elecciones presidenciales de Federalandia de 2026
|-
|-
| colspan="2" style="padding-bottom: 10px; text-align: center;" | {{{logo|}}}
| colspan="2" |
{| style="width: 100%; background: transparent;"
| style="width: 33%; text-align: left;" | ← 2022
| style="width: 33%; text-align: center; font-weight: bold;" | 15 de marzo de 2026
| style="width: 33%; text-align: right;" | 2030 →
|}
|-
| colspan="2" style="border-top: 1px solid #a2a9b1; padding: 5px 0;" | 32.456.789 censo electoral · 78,4% participación
|-
|-
| colspan="2" |
! style="text-align: left;" | Candidato
{| style="width: 100%; background: transparent; margin-bottom: 5px;"
! style="background: #E81B23;" | Laura Méndez
| style="width: 33%; text-align: left;" | ← {{{previous_year|}}}
! style="background: #1E88E5;" | Carlos Rivera
| 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: left; font-size: 85%; color: #0645ad;" | ← miembros salientes
! style="text-align: left;" | Partido
| style="width: 33%; text-align: center;" |
| style="background: #fce4e4;" | Partido Socialdemócrata (PSD)
| style="width: 33%; text-align: right; font-size: 85%; color: #0645ad;" | miembros electos →
| style="background: #e3f2fd;" | Partido Liberal (PL)
|}
|-
|-
| colspan="2" style="border-top: 1px solid #a2a9b1; padding: 5px 0;" | {{{seats_for_election|}}}
! style="text-align: left;" | Alianza
| style="font-size: 85%; font-style: italic; background: #fce4e4;" | Coalición Progresista<br>(PSD + Verdes + IU)
| style="font-size: 85%; font-style: italic; background: #e3f2fd;" | Alianza por la Libertad<br>(PL + Ciudadanos)
|-
|-
| colspan="2" style="padding-bottom: 5px;" | {{{opinion_polls|}}}
! style="text-align: left;" | Votos
| 8.250.000
| 6.500.000
|-
|-
| colspan="2" |
! style="text-align: left;" | Porcentaje
<table style="width: 100%; background: transparent; text-align: left; font-size: 95%;">
| 52,8%
{{#if:{{{historical_legislature|}}}|
| 41,6%
<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;" |
| colspan="3" style="border-top: 1px solid #a2a9b1; padding-top: 5px;" |
<table style="width: 100%; background: transparent; text-align: center; font-size: 95%; table-layout: fixed;">
<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>
{{#if:{{{party2|{{{leader2|}}}}}}|
<td style="border-bottom: 4px solid #{{{color2|ccc}}}; padding: 2px;">
  <div style="width: 90px; height: 90px; overflow: hidden; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #fff;">{{{image2|}}}</div>
</td>
}}
{{#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;">Líder</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>
 
<!-- SECCIÓN DE ALIANZA DESPLEGABLE -->
{{#if:{{{alliance1|}}}{{{alliance2|}}}{{{alliance3|}}}|
<tr>
<td colspan="3" style="text-align: left; padding-top: 5px;">
<details>
<summary style="font-weight: bold; cursor: pointer;">▸ Alianzas</summary>
<table style="width: 100%; background: transparent; margin-top: 5px;">
<tr>
<th style="text-align: left;">Apoyos</th>
<td style="text-align: center;">{{{alliance1|}}}</td>
{{#if:{{{party2|{{{leader2|}}}}}}|<td style="text-align: center;">{{{alliance2|}}}</td>}}
{{#if:{{{party3|{{{leader3|}}}}}}|<td style="text-align: center;">{{{alliance3|}}}</td>}}
</tr>
</table>
</details>
</td>
</tr>
}}
 
<tr>
<th style="text-align: left;">Líder desde</th>
<td>{{{leader_since1|}}}</td>
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{leader_since2|}}}</td>}}
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{leader_since3|}}}</td>}}
</tr>
<tr>
<th style="text-align: left;">Circunscripción</th>
<td>{{{leaders_seat1|}}}</td>
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{leaders_seat2|}}}</td>}}
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{leaders_seat3|}}}</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;">Escaños</th>
<td>{{{seats1|}}}</td>
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{seats2|}}}</td>}}
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{seats3|}}}</td>}}
</tr>
<tr>
<th style="text-align: left;">Diferencia</th>
<td>{{{seat_change1|}}}</td>
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{seat_change2|}}}</td>}}
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{seat_change3|}}}</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>
 
<!-- Bloque para partidos 4-6 con la misma lógica -->
{{#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;">
<!-- (Estructura idéntica a la primera tabla para partidos 4-6) -->
<!-- Incluye también el bloque desplegable de alianzas para estos partidos -->
</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;">
<!-- (Estructura idéntica para partidos 7-9) -->
</table>
}}
|-
|-
| colspan="2" style="border-top: 1px solid #a2a9b1; padding-top: 5px;" |
! style="text-align: left;" | Presidente saliente
{| style="width: 100%; background: transparent; font-size: 95%;"
| colspan="2" style="text-align: right;" | Laura Méndez
|-
|-
! style="text-align: left; color: #0645ad;" | {{{title|}}} saliente
! style="text-align: left;" | Partido saliente
! style="text-align: right;" | {{{posttitle|}}}
| colspan="2" style="text-align: right; color: #888;" | Partido Socialdemócrata (PSD)
|-
|-
| style="text-align: left;" | {{{before_election|}}}
! style="text-align: left;" | Presidente electo
| style="text-align: right;" | {{{after_election|}}}
| colspan="2" style="text-align: right; font-weight: bold;" | Laura Méndez
|-
|-
| style="text-align: left; color: #888;" | {{{before_party|}}}
! style="text-align: left;" | Partido electo
| style="text-align: right; color: #888;" | {{{after_party|}}}
| colspan="2" style="text-align: right; color: #888;" | Partido Socialdemócrata (PSD)
|}
|}
|}
<noinclude>
<templatedata>
{
"params": {
"election_name": {},
"logo": {},
"previous_year": {},
"election_date": {},
"next_year": {},
"seats_for_election": {},
"opinion_polls": {},
"historical_legislature": {},
"registered": {},
"turnout": {},
"leader1": {},
"party1": {},
"alliance1": {},
"leader_since1": {},
"leaders_seat1": {},
"last_election1": {},
"seats1": {},
"seat_change1": {},
"popular_vote1": {},
"percentage1": {},
"swing1": {},
"color1": {},
"image1": {},
"leader2": {},
"party2": {},
"alliance2": {},
"leader_since2": {},
"leaders_seat2": {},
"last_election2": {},
"seats2": {},
"seat_change2": {},
"popular_vote2": {},
"percentage2": {},
"swing2": {},
"color2": {},
"image2": {},
"leader3": {},
"party3": {},
"alliance3": {},
"leader_since3": {},
"leaders_seat3": {},
"last_election3": {},
"seats3": {},
"seat_change3": {},
"popular_vote3": {},
"percentage3": {},
"swing3": {},
"color3": {},
"image3": {},
"title": {},
"posttitle": {},
"before_election": {},
"after_election": {},
"before_party": {},
"after_party": {}
}
}
</templatedata>
</noinclude>

Revisión del 14:42 17 abr 2026

Elecciones presidenciales de Federalandia de 2026
← 2022 15 de marzo de 2026 2030 →
32.456.789 censo electoral · 78,4% participación
Candidato Laura Méndez Carlos Rivera
Partido Partido Socialdemócrata (PSD) Partido Liberal (PL)
Alianza Coalición Progresista
(PSD + Verdes + IU)
Alianza por la Libertad
(PL + Ciudadanos)
Votos 8.250.000 6.500.000
Porcentaje 52,8% 41,6%
Presidente saliente Laura Méndez
Partido saliente Partido Socialdemócrata (PSD)
Presidente electo Laura Méndez
Partido electo Partido Socialdemócrata (PSD)