Diferencia entre revisiones de «Plantilla:Infobox election/custom»
Sin resumen de edición |
Etiquetas: Edición desde móvil Edición vía web móvil |
||
| (No se muestran 65 ediciones intermedias de 3 usuarios) | |||
| 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;" | <noinclude> | ||
|+ style="font-size: 125%; font-weight: bold; padding-bottom: 5px;" | {{{election_name|}}} | == Plantilla: Infobox election/custom == | ||
Plantilla de caja de información electoral. | |||
[[Categoría:Plantillas de elecciones]] | |||
</noinclude><includeonly> | |||
{| class="infobox" style="width: 100%; max-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;" | {{{título|{{{election_name|}}}}}} | |||
|- | |- | ||
| colspan="2" style="padding-bottom: 10px; text-align: center;" | {{{logo|}}} | | colspan="2" style="padding-bottom: 10px; text-align: center;" | {{#if:{{{escudo|{{{logo|}}}}}}|[[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;" | {{#if:{{{elección_anterior|}}} | ← [[{{{elección_anterior}}}|{{{año_anterior|{{{elección_anterior}}}}}}]] | {{#if:{{{año_anterior|}}}|← {{{año_anterior}}}}} }} | ||
| style="width: | | style="width: 34%; 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;" | {{#if:{{{elección_siguiente|}}} | [[{{{elección_siguiente}}}|{{{año_siguiente|{{{elección_siguiente}}}}}}]] → | {{#if:{{{año_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" | | ||
<table style="width: 100%; background: transparent; text-align: left; font-size: 95%;"> | <table style="width: 100%; background: transparent; text-align: left; font-size: 95%;">{{#if:{{{legislatura_historica|}}}|<tr><td style="padding: 2px 0;">Legislatura histórica</td><td style="text-align: right; padding: 2px 0;">{{{legislatura_historica}}}</td></tr>}}{{#if:{{{censo|{{{registered|}}}}}}|<tr><td style="padding: 2px 0;">Censo electoral</td><td style="text-align: right; padding: 2px 0;">{{{censo|{{{registered|}}}}}}</td></tr>}}{{#if:{{{participación|{{{turnout|}}}}}}|<tr><td style="padding: 2px 0;">Participación</td><td style="text-align: right; padding: 2px 0;">{{{participación|{{{turnout|}}}}}}</td></tr>}}</table> | ||
{{#if:{{{ | |||
<tr> | |||
< | |||
<td style="text-align: right; padding: 2px 0;">{{{ | |||
</tr> | |||
}} | |||
<tr> | |||
< | |||
<td style="text-align: right; padding: 2px 0;">{{{registered|}}}</td> | |||
</tr> | |||
<tr> | |||
< | |||
<td style="text-align: right; padding: 2px 0;">{{{turnout|}}}</td> | |||
</tr> | |||
</table> | |||
|- | |- | ||
| colspan="2" style="border-top: 1px solid #a2a9b1; padding-top: 5px;" | | | colspan="2" style="border-top: 1px solid #a2a9b1; padding-top: 5px;" | | ||
<table style="width: 100%; background: transparent; text-align: center; font-size: 95%; table-layout: fixed;"> | <table style="width: 100%; background: transparent; text-align: center; font-size: 95%; border-collapse: collapse; table-layout: fixed;"><tr><td style="width: 25%;"></td>{{#if:{{{imagen_candidato1|}}}|<td style="border-bottom: 4px solid #{{{color_candidato1|ccc}}}; padding: 5px; vertical-align: bottom;"><div style="width: 60px; height: auto; overflow: hidden; margin: 0 auto; display: flex; align-items: flex-end; justify-content: center;">[[Archivo:{{{imagen_candidato1|}}}|60px]]</div></td>}}{{#if:{{{imagen_candidato2|}}}|<td style="border-bottom: 4px solid #{{{color_candidato2|ccc}}}; padding: 5px; vertical-align: bottom;"><div style="width: 60px; height: auto; overflow: hidden; margin: 0 auto; display: flex; align-items: flex-end; justify-content: center;">[[Archivo:{{{imagen_candidato2|}}}|60px]]</div></td>}}{{#if:{{{imagen_candidato3|}}}|<td style="border-bottom: 4px solid #{{{color_candidato3|ccc}}}; padding: 5px; vertical-align: bottom;"><div style="width: 60px; height: auto; overflow: hidden; margin: 0 auto; display: flex; align-items: flex-end; justify-content: center;">[[Archivo:{{{imagen_candidato3|}}}|60px]]</div></td>}}</tr><tr><th style="text-align: left; font-size: 85%;">Candidato</th>{{#if:{{{nombre_candidato1|}}}|<td style="font-weight: bold; color: #000; word-wrap: break-word;">{{{nombre_candidato1}}}</td>}}{{#if:{{{nombre_candidato2|}}}|<td style="font-weight: bold; color: #000; word-wrap: break-word;">{{{nombre_candidato2}}}</td>}}{{#if:{{{nombre_candidato3|}}}|<td style="font-weight: bold; color: #000; word-wrap: break-word;">{{{nombre_candidato3}}}</td>}}</tr><tr><th style="text-align: left; font-size: 85%;">Partido</th>{{#if:{{{partido_candidato1|}}}|<td style="word-wrap: break-word;">{{{partido_candidato1}}}</td>}}{{#if:{{{partido_candidato2|}}}|<td style="word-wrap: break-word;">{{{partido_candidato2}}}</td>}}{{#if:{{{partido_candidato3|}}}|<td style="word-wrap: break-word;">{{{partido_candidato3}}}</td>}}</tr>{{#if:{{{coalición_candidato1|}}}|<tr><th style="text-align: left; font-size: 85%;">Coalición</th><td style="word-wrap: break-word;">{{{coalición_candidato1}}}</td>{{#if:{{{coalición_candidato2|}}}|<td style="word-wrap: break-word;">{{{coalición_candidato2}}}</td>}}{{#if:{{{coalición_candidato3|}}}|<td style="word-wrap: break-word;">{{{coalición_candidato3}}}</td>}}</tr>}}<tr><th style="text-align: left; font-size: 85%;">Votos</th>{{#if:{{{votos_candidato1|}}}|<td style="word-wrap: break-word;">{{{votos_candidato1}}}</td>}}{{#if:{{{votos_candidato2|}}}|<td style="word-wrap: break-word;">{{{votos_candidato2}}}</td>}}{{#if:{{{votos_candidato3|}}}|<td style="word-wrap: break-word;">{{{votos_candidato3}}}</td>}}</tr><tr><th style="text-align: left; font-size: 85%;">Porcentaje</th>{{#if:{{{porcentaje_candidato1|}}}|<td style="word-wrap: break-word;"><b>{{{porcentaje_candidato1}}}</b></td>}}{{#if:{{{porcentaje_candidato2|}}}|<td style="word-wrap: break-word;"><b>{{{porcentaje_candidato2}}}</b></td>}}{{#if:{{{porcentaje_candidato3|}}}|<td style="word-wrap: break-word;"><b>{{{porcentaje_candidato3}}}</b></td>}}</tr>{{#if:{{{2a Vuelta_candidato1|}}}|<tr><th style="text-align: left; font-size: 85%;">2a Vuelta</th><td style="word-wrap: break-word;">{{{2a Vuelta_candidato1}}}</td>{{#if:{{{2a Vuelta_candidato2|}}}|<td style="word-wrap: break-word;">{{{2a Vuelta_candidato2}}}</td>}}{{#if:{{{2a Vuelta_candidato3|}}}|<td style="word-wrap: break-word;">{{{2a Vuelta_candidato3}}}</td>}}</tr>}}</table> | ||
<tr> | {{#if:{{{nombre_candidato4|}}}| | ||
<td style="width: 25%;"></td> | <table style="width: 100%; background: transparent; text-align: center; font-size: 95%; border-collapse: collapse; table-layout: fixed; border-top: 1px solid #a2a9b1; margin-top: 5px;"><tr><td style="width: 25%;"></td>{{#if:{{{imagen_candidato4|}}}|<td style="border-bottom: 4px solid #{{{color_candidato4|ccc}}}; padding: 5px; vertical-align: bottom;"><div style="width: 60px; height: auto; overflow: hidden; margin: 0 auto; display: flex; align-items: flex-end; justify-content: center;">[[Archivo:{{{imagen_candidato4|}}}|60px]]</div></td>}}{{#if:{{{imagen_candidato5|}}}|<td style="border-bottom: 4px solid #{{{color_candidato5|ccc}}}; padding: 5px; vertical-align: bottom;"><div style="width: 60px; height: auto; overflow: hidden; margin: 0 auto; display: flex; align-items: flex-end; justify-content: center;">[[Archivo:{{{imagen_candidato5|}}}|60px]]</div></td>}}{{#if:{{{imagen_candidato6|}}}|<td style="border-bottom: 4px solid #{{{color_candidato6|ccc}}}; padding: 5px; vertical-align: bottom;"><div style="width: 60px; height: auto; overflow: hidden; margin: 0 auto; display: flex; align-items: flex-end; justify-content: center;">[[Archivo:{{{imagen_candidato6|}}}|60px]]</div></td>}}</tr><tr><th style="text-align: left; font-size: 85%;">Candidato</th>{{#if:{{{nombre_candidato4|}}}|<td style="font-weight: bold; color: #000; word-wrap: break-word;">{{{nombre_candidato4}}}</td>}}{{#if:{{{nombre_candidato5|}}}|<td style="font-weight: bold; color: #000; word-wrap: break-word;">{{{nombre_candidato5}}}</td>}}{{#if:{{{nombre_candidato6|}}}|<td style="font-weight: bold; color: #000; word-wrap: break-word;">{{{nombre_candidato6}}}</td>}}</tr><tr><th style="text-align: left; font-size: 85%;">Partido</th>{{#if:{{{partido_candidato4|}}}|<td style="word-wrap: break-word;">{{{partido_candidato4}}}</td>}}{{#if:{{{partido_candidato5|}}}|<td style="word-wrap: break-word;">{{{partido_candidato5}}}</td>}}{{#if:{{{partido_candidato6|}}}|<td style="word-wrap: break-word;">{{{partido_candidato6}}}</td>}}</tr>{{#if:{{{coalición_candidato4|}}}|<tr><th style="text-align: left; font-size: 85%;">Coalición</th><td style="word-wrap: break-word;">{{{coalición_candidato4}}}</td>{{#if:{{{coalición_candidato5|}}}|<td style="word-wrap: break-word;">{{{coalición_candidato5}}}</td>}}{{#if:{{{coalición_candidato6|}}}|<td style="word-wrap: break-word;">{{{coalición_candidato6}}}</td>}}</tr>}}<tr><th style="text-align: left; font-size: 85%;">Votos</th>{{#if:{{{votos_candidato4|}}}|<td style="word-wrap: break-word;">{{{votos_candidato4}}}</td>}}{{#if:{{{votos_candidato5|}}}|<td style="word-wrap: break-word;">{{{votos_candidato5}}}</td>}}{{#if:{{{votos_candidato6|}}}|<td style="word-wrap: break-word;">{{{votos_candidato6}}}</td>}}</tr><tr><th style="text-align: left; font-size: 85%;">Porcentaje</th>{{#if:{{{porcentaje_candidato4|}}}|<td style="word-wrap: break-word;"><b>{{{porcentaje_candidato4}}}</b></td>}}{{#if:{{{porcentaje_candidato5|}}}|<td style="word-wrap: break-word;"><b>{{{porcentaje_candidato5}}}</b></td>}}{{#if:{{{porcentaje_candidato6|}}}|<td style="word-wrap: break-word;"><b>{{{porcentaje_candidato6}}}</b></td>}}</tr>{{#if:{{{variación_candidato4|}}}|<tr><th style="text-align: left; font-size: 85%;">Variación</th><td style="word-wrap: break-word;">{{{variación_candidato4}}}</td>{{#if:{{{variación_candidato5|}}}|<td style="word-wrap: break-word;">{{{variación_candidato5}}}</td>}}{{#if:{{{variación_candidato6|}}}|<td style="word-wrap: break-word;">{{{variación_candidato6}}}</td>}}</tr>}}</table> | ||
<td style="border-bottom: 4px solid #{{{ | |||
</td> | |||
{{#if:{{{ | |||
<td style="border-bottom: 4px solid #{{{ | |||
</td> | |||
}} | |||
{{#if:{{{ | |||
<td style="border-bottom: 4px solid #{{{ | |||
</td> | |||
}} | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;"> | |||
{{#if:{{{ | |||
{{#if:{{{ | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;">Partido</th> | |||
{{#if:{{{ | |||
{{#if:{{{ | |||
<tr> | |||
< | |||
< | |||
< | |||
< | |||
< | |||
{{#if:{{{ | |||
{{#if:{{{ | |||
< | |||
</td> | |||
</tr> | |||
<tr> | |||
<th style="text-align: left;"> | |||
{{#if:{{{ | |||
{{#if:{{{ | |||
< | |||
< | |||
{{#if:{{{ | |||
{{ | |||
< | |||
{{#if:{{{ | |||
< | |||
< | |||
{{#if:{{{ | |||
{{#if:{{{ | |||
<th style="text-align: left;"> | |||
< | |||
{{#if:{{{ | |||
{{#if:{{{ | |||
< | |||
< | |||
{{#if:{{{ | |||
< | |||
</table> | |||
}} | }} | ||
|- | |- | ||
| colspan="2" style="border-top: 1px solid #a2a9b1; padding-top: 5px;" | | | colspan="2" style="border-top: 1px solid #a2a9b1; padding-top: 5px;" | | ||
<div style="overflow: hidden; padding: 2px 0;"><span style="color: #0645ad;">{{{cargo_titular|Cargo}}} saliente</span><span style="float: right;">{{{cargo_electo|Electo}}}</span></div><div style="overflow: hidden; padding: 2px 0;">{{{titular_nombre|}}}<span style="float: right; font-weight: bold;">{{{electo_nombre|}}}</span></div><div style="overflow: hidden; padding: 2px 0; color: #777; font-size: 85%;">{{{titular_partido|}}}<span style="float: right;">{{{electo_partido|}}}</span></div> | |||
|} | |} | ||
</includeonly> | |||
</ | |||