Diferencia entre revisiones de «Plantilla:Ficha de elección»

m Revertido el cambio de Admin (disc.) a la última edición de 88.98.120.190
Etiqueta: Reversión
Sin resumen de edición
 
(No se muestran 6 ediciones intermedias de otro usuario)
Línea 1: Línea 1:
<includeonly>{| class="infobox" style="width: 26em; font-size: 90%; text-align: left; float: right; margin: 0 0 1em 1em; border: 1px solid #a2a9b1; background-color: #f8f9fa; padding: 5px;"
<templatestyles src="Plantilla:Ficha de elección/styles.css" />
|+ style="font-size: 120%; font-weight: bold; background-color: #efefef; padding: 5px;" | {{{nombre_elección|{{PAGENAME}}}}}
{| class="infobox ficha-eleccion"
|+ class="fe-titulo" | {{{election_name|}}}
|-
|-
| colspan="2" style="text-align: center; padding-bottom: 5px;" | {{{país|}}}
| colspan="2" class="fe-logo" | {{{logo|}}}
|-
|-
| colspan="2" style="text-align: center; border-bottom: 1px solid #a2a9b1; padding-bottom: 5px;" | <small>← {{{elección_anterior|}}} · '''{{{fecha_elección|}}}''' · {{{siguiente_elección|}}} →</small>
| colspan="2" |
{| class="fe-navegacion"
| class="fe-nav-izq" | ← {{{previous_year|}}}
| class="fe-nav-centro" | {{{election_date|}}}
| class="fe-nav-der" | ''{{{next_year|}}}'' →
|-
| class="fe-nav-sub-izq" | ← miembros salientes
| class="fe-nav-sub-centro" |
| class="fe-nav-sub-der" | miembros electos →
|}
|-
| colspan="2" class="fe-separador fe-escanos" | {{{seats_for_election|}}}
|-
|-
{{#if:{{{endisputa|}}}|
| colspan="2" class="fe-encuestas" | {{{opinion_polls|}}}
{{!}} colspan="2" style="text-align: center; padding: 5px; background-color: #e6e6e6; border-bottom: 1px solid #a2a9b1;" {{!}} {{{endisputa}}}
}}
|-
|-
| colspan="2" |
| colspan="2" |
{| style="width: 100%; text-align: center; background: transparent; margin-top: 5px;"
<table class="fe-datos">
{{#if:{{{historical_legislature|}}}|
<tr>
<th>Legislatura histórica</th>
<td>{{{historical_legislature}}}</td>
</tr>
}}
<tr>
<th>Censo electoral</th>
<td>{{{registered|}}}</td>
</tr>
<tr>
<th>Participación</th>
<td>{{{turnout|}}}</td>
</tr>
</table>
|-
|-
{{#if:{{{imagen1|}}}| {{!}} style="width: 33%; padding: 2px;" {{!}} [[{{{imagen1}}}|100px]] }}
| colspan="2" class="fe-separador-top" |
{{#if:{{{imagen2|}}}| {{!}} style="width: 33%; padding: 2px;" {{!}} [[{{{imagen2}}}|100px]] }}
<table class="fe-candidatos">
{{#if:{{{imagen3|}}}| {{!}} style="width: 33%; padding: 2px;" {{!}} [[{{{imagen3}}}|100px]] }}
<tr>
<td class="fe-cand-col1"></td>
<td class="fe-cand-img-celda" style="border-bottom-color: #{{{color1|ccc}}};">
  <div class="fe-imagen">{{{image1|}}}</div>
</td>
{{#if:{{{party2|{{{leader2|}}}}}}|
<td class="fe-cand-img-celda" style="border-bottom-color: #{{{color2|ccc}}};">
  <div class="fe-imagen">{{{image2|}}}</div>
</td>
}}
{{#if:{{{party3|{{{leader3|}}}}}}|
<td class="fe-cand-img-celda" style="border-bottom-color: #{{{color3|ccc}}};">
  <div class="fe-imagen">{{{image3|}}}</div>
</td>
}}
</tr>
<tr>
<th>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>Partido</th>
<td>{{{party1|}}}</td>
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{party2|}}}</td>}}
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{party3|}}}</td>}}
</tr>
<tr>
<th>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>Circunscripción</th>
<td>{{{leaders_seat1|}}}</td>
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{leaders_seat2|}}}</td>}}
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{leaders_seat3|}}}</td>}}
</tr>
<tr>
<th>Ú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>Escaños</th>
<td>{{{seats1|}}}</td>
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{seats2|}}}</td>}}
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{seats3|}}}</td>}}
</tr>
<tr>
<th>Diferencia</th>
<td>{{{seat_change1|}}}</td>
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{seat_change2|}}}</td>}}
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{seat_change3|}}}</td>}}
</tr>
<tr>
<th>Votos</th>
<td>{{{popular_vote1|}}}</td>
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{popular_vote2|}}}</td>}}
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{popular_vote3|}}}</td>}}
</tr>
<tr>
<th>Porcentaje</th>
<td>{{{percentage1|}}}</td>
{{#if:{{{party2|{{{leader2|}}}}}}|<td>{{{percentage2|}}}</td>}}
{{#if:{{{party3|{{{leader3|}}}}}}|<td>{{{percentage3|}}}</td>}}
</tr>
<tr>
<th>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 class="fe-candidatos fe-separador-top fe-margen-top">
<tr>
<td class="fe-cand-col1"></td>
<td class="fe-cand-img-celda" style="border-bottom-color: #{{{color4|ccc}}};">
  <div class="fe-imagen">{{{image4|}}}</div>
</td>
{{#if:{{{party5|{{{leader5|}}}}}}|
<td class="fe-cand-img-celda" style="border-bottom-color: #{{{color5|ccc}}};">
  <div class="fe-imagen">{{{image5|}}}</div>
</td>
}}
{{#if:{{{party6|{{{leader6|}}}}}}|
<td class="fe-cand-img-celda" style="border-bottom-color: #{{{color6|ccc}}};">
  <div class="fe-imagen">{{{image6|}}}</div>
</td>
}}
</tr>
<tr>
<th>Líder</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>Partido</th>
<td>{{{party4|}}}</td>
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{party5|}}}</td>}}
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{party6|}}}</td>}}
</tr>
<tr>
<th>Líder desde</th>
<td>{{{leader_since4|}}}</td>
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{leader_since5|}}}</td>}}
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{leader_since6|}}}</td>}}
</tr>
<tr>
<th>Circunscripción</th>
<td>{{{leaders_seat4|}}}</td>
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{leaders_seat5|}}}</td>}}
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{leaders_seat6|}}}</td>}}
</tr>
<tr>
<th>Ú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>Escaños</th>
<td>{{{seats4|}}}</td>
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{seats5|}}}</td>}}
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{seats6|}}}</td>}}
</tr>
<tr>
<th>Diferencia</th>
<td>{{{seat_change4|}}}</td>
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{seat_change5|}}}</td>}}
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{seat_change6|}}}</td>}}
</tr>
<tr>
<th>Votos</th>
<td>{{{popular_vote4|}}}</td>
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{popular_vote5|}}}</td>}}
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{popular_vote6|}}}</td>}}
</tr>
<tr>
<th>Porcentaje</th>
<td>{{{percentage4|}}}</td>
{{#if:{{{party5|{{{leader5|}}}}}}|<td>{{{percentage5|}}}</td>}}
{{#if:{{{party6|{{{leader6|}}}}}}|<td>{{{percentage6|}}}</td>}}
</tr>
<tr>
<th>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 class="fe-candidatos fe-separador-top fe-margen-top">
<tr>
<td class="fe-cand-col1"></td>
<td class="fe-cand-img-celda" style="border-bottom-color: #{{{color7|ccc}}};">
  <div class="fe-imagen">{{{image7|}}}</div>
</td>
{{#if:{{{party8|{{{leader8|}}}}}}|
<td class="fe-cand-img-celda" style="border-bottom-color: #{{{color8|ccc}}};">
  <div class="fe-imagen">{{{image8|}}}</div>
</td>
}}
{{#if:{{{party9|{{{leader9|}}}}}}|
<td class="fe-cand-img-celda" style="border-bottom-color: #{{{color9|ccc}}};">
  <div class="fe-imagen">{{{image9|}}}</div>
</td>
}}
</tr>
<tr>
<th>Líder</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>Partido</th>
<td>{{{party7|}}}</td>
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{party8|}}}</td>}}
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{party9|}}}</td>}}
</tr>
<tr>
<th>Líder desde</th>
<td>{{{leader_since7|}}}</td>
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{leader_since8|}}}</td>}}
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{leader_since9|}}}</td>}}
</tr>
<tr>
<th>Circunscripción</th>
<td>{{{leaders_seat7|}}}</td>
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{leaders_seat8|}}}</td>}}
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{leaders_seat9|}}}</td>}}
</tr>
<tr>
<th>Ú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>Escaños</th>
<td>{{{seats7|}}}</td>
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{seats8|}}}</td>}}
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{seats9|}}}</td>}}
</tr>
<tr>
<th>Diferencia</th>
<td>{{{seat_change7|}}}</td>
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{seat_change8|}}}</td>}}
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{seat_change9|}}}</td>}}
</tr>
<tr>
<th>Votos</th>
<td>{{{popular_vote7|}}}</td>
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{popular_vote8|}}}</td>}}
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{popular_vote9|}}}</td>}}
</tr>
<tr>
<th>Porcentaje</th>
<td>{{{percentage7|}}}</td>
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{percentage8|}}}</td>}}
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{percentage9|}}}</td>}}
</tr>
<tr>
<th>Variación</th>
<td>{{{swing7|}}}</td>
{{#if:{{{party8|{{{leader8|}}}}}}|<td>{{{swing8|}}}</td>}}
{{#if:{{{party9|{{{leader9|}}}}}}|<td>{{{swing9|}}}</td>}}
</tr>
</table>
}}
|-
|-
{{#if:{{{partido1|}}}| {{!}} style="border-top: 4px solid {{{color1|#ccc}}}; padding-top: 2px;" {{!}} '''{{{partido1}}}''' }}
| colspan="2" class="fe-separador-top" |
{{#if:{{{partido2|}}}| {{!}} style="border-top: 4px solid {{{color2|#ccc}}}; padding-top: 2px;" {{!}} '''{{{partido2}}}''' }}
{| class="fe-sucesion"
{{#if:{{{partido3|}}}| {{!}} style="border-top: 4px solid {{{color3|#ccc}}}; padding-top: 2px;" {{!}} '''{{{partido3}}}''' }}
|-
|-
{{#if:{{{líder1|}}}| {{!}} {{{líder1}}} }}
! class="fe-suc-izq fe-azul" | {{{title|}}} saliente
{{#if:{{{líder2|}}}| {{!}} {{{líder2}}} }}
! class="fe-suc-der" | {{{posttitle|}}}
{{#if:{{{líder3|}}}| {{!}} {{{líder3}}} }}
|-
|-
{{#if:{{{porcentaje1|}}}| {{!}} '''{{{porcentaje1}}}%'''<br><small>{{{votos1|}}} votos</small> }}
| class="fe-suc-izq" | {{{before_election|}}}
{{#if:{{{porcentaje2|}}}| {{!}} '''{{{porcentaje2}}}%'''<br><small>{{{votos2|}}} votos</small> }}
| class="fe-suc-der" | {{{after_election|}}}
{{#if:{{{porcentaje3|}}}| {{!}} '''{{{porcentaje3}}}%'''<br><small>{{{votos3|}}} votos</small> }}
|-
|-
{{#if:{{{escaños1|}}}| {{!}} '''{{{escaños1}}}''' escaños }}
| class="fe-suc-izq fe-gris" | {{{before_party|}}}
{{#if:{{{escaños2|}}}| {{!}} '''{{{escaños2}}}''' escaños }}
| class="fe-suc-der fe-gris" | {{{after_party|}}}
{{#if:{{{escaños3|}}}| {{!}} '''{{{escaños3}}}''' escaños }}
|}
|}
|-
|}
{{#if:{{{partido4|}}}|
<noinclude>
{{!}} colspan="2" {{!}}
<templatedata>
{{{!}} style="width: 100%; text-align: center; background: transparent;"
{
{{!}}-
"params": {
{{#if:{{{imagen4|}}}| {{!}} style="width: 33%; padding: 2px;" {{!}} [[{{{imagen4}}}|100px]] }}
"election_name": {},
{{#if:{{{imagen5|}}}| {{!}} style="width: 33%; padding: 2px;" {{!}} [[{{{imagen5}}}|100px]] }}
"logo": {},
{{#if:{{{imagen6|}}}| {{!}} style="width: 33%; padding: 2px;" {{!}} [[{{{imagen6}}}|100px]] }}
"previous_year": {},
{{!}}-
"election_date": {},
{{#if:{{{partido4|}}}| {{!}} style="border-top: 4px solid {{{color4|#ccc}}}; padding-top: 2px;" {{!}} '''{{{partido4}}}''' }}
"next_year": {},
{{#if:{{{partido5|}}}| {{!}} style="border-top: 4px solid {{{color5|#ccc}}}; padding-top: 2px;" {{!}} '''{{{partido5}}}''' }}
"seats_for_election": {},
{{#if:{{{partido6|}}}| {{!}} style="border-top: 4px solid {{{color6|#ccc}}}; padding-top: 2px;" {{!}} '''{{{partido6}}}''' }}
"opinion_polls": {},
{{!}}-
"historical_legislature": {},
{{#if:{{{líder4|}}}| {{!}} {{{líder4}}} }}
"registered": {},
{{#if:{{{líder5|}}}| {{!}} {{{líder5}}} }}
"turnout": {},
{{#if:{{{líder6|}}}| {{!}} {{{líder6}}} }}
"color1": {},
{{!}}-
"image1": {},
{{#if:{{{porcentaje4|}}}| {{!}} '''{{{porcentaje4}}}%'''<br><small>{{{votos4|}}} votos</small> }}
"party2": {},
{{#if:{{{porcentaje5|}}}| {{!}} '''{{{porcentaje5}}}%'''<br><small>{{{votos5|}}} votos</small> }}
"leader2": {},
{{#if:{{{porcentaje6|}}}| {{!}} '''{{{porcentaje6}}}%'''<br><small>{{{votos6|}}} votos</small> }}
"color2": {},
{{!}}-
"image2": {},
{{#if:{{{escaños4|}}}| {{!}} '''{{{escaños4}}}''' escaños }}
"party3": {},
{{#if:{{{escaños5|}}}| {{!}} '''{{{escaños5}}}''' escaños }}
"leader3": {},
{{#if:{{{escaños6|}}}| {{!}} '''{{{escaños6}}}''' escaños }}
"color3": {},
{{!}}}
"image3": {},
}}
"leader1": {},
|-
"party1": {},
{{#if:{{{diagrama|}}}|
"leader_since1": {},
{{!}} colspan="2" style="text-align: center; border-top: 1px solid #a2a9b1; padding-top: 5px;" {{!}} '''{{{diagrama_título|Composición de la cámara}}}'''<br>[[{{{diagrama}}}|{{{diagrama_tamaño|280px}}}]]<br>
"leader_since2": {},
{{{!}} style="width: 100%; text-align: left; font-size: 90%; margin-top: 5px;"
"leader_since3": {},
{{!}}-
"leaders_seat1": {},
{{!}} {{{leyenda1|}}}
"leaders_seat2": {},
{{!}}-
"leaders_seat3": {},
{{!}} {{{leyenda2|}}}
"last_election1": {},
{{!}}}
"last_election2": {},
}}
"last_election3": {},
|-
"seats1": {},
{{#if:{{{cargo|}}}|
"seats2": {},
{{!}} colspan="2" style="border-top: 1px solid #a2a9b1; margin-top: 5px;" {{!}}
"seats3": {},
{{{!}} style="width: 100%; text-align: left; font-size: 90%;"
"seat_change1": {},
{{!}}+ style="background-color: #efefef; padding: 3px;" {{!}} '''{{{cargo}}}'''
"seat_change2": {},
{{!}}-
"seat_change3": {},
{{!}} style="width: 50%; padding: 3px;" {{!}} '''Predecesor:'''<br>{{{predecesor|}}}<br>''{{{partido_predecesor|}}}''
"popular_vote1": {},
{{!}} style="width: 50%; padding: 3px;" {{!}} '''Sucesor:'''<br>{{{sucesor|}}}<br>''{{{partido_sucesor|}}}''
"popular_vote2": {},
{{!}}}
"popular_vote3": {},
}}
"percentage1": {},
|}</includeonly><noinclude>
"percentage2": {},
== Uso ==
"percentage3": {},
Esta es la plantilla maestra (backend). Para usarla en un artículo, copia y pega el código con las variables `{{Ficha de elección | nombre_elección = ... }}` en la página de la elección correspondiente.
"swing1": {},
"swing2": {},
"swing3": {},
"party4": {},
"leader4": {},
"image4": {},
"color4": {},
"party5": {},
"leader5": {},
"color5": {},
"image5": {},
"party6": {},
"leader6": {},
"color6": {},
"image6": {},
"leader_since4": {},
"leader_since5": {},
"leader_since6": {},
"leaders_seat4": {},
"leaders_seat5": {},
"leaders_seat6": {},
"last_election4": {},
"last_election5": {},
"last_election6": {},
"seats4": {},
"seats5": {},
"seats6": {},
"seat_change4": {},
"seat_change5": {},
"seat_change6": {},
"popular_vote4": {},
"popular_vote5": {},
"popular_vote6": {},
"percentage4": {},
"percentage5": {},
"percentage6": {},
"swing4": {},
"swing5": {},
"swing6": {},
"party7": {},
"leader7": {},
"image7": {},
"color7": {},
"party8": {},
"leader8": {},
"color8": {},
"image8": {},
"party9": {},
"leader9": {},
"color9": {},
"image9": {},
"leader_since7": {},
"leader_since8": {},
"leader_since9": {},
"leaders_seat7": {},
"leaders_seat8": {},
"leaders_seat9": {},
"last_election7": {},
"last_election8": {},
"last_election9": {},
"seats7": {},
"seats8": {},
"seats9": {},
"seat_change7": {},
"seat_change8": {},
"seat_change9": {},
"popular_vote7": {},
"popular_vote8": {},
"popular_vote9": {},
"percentage7": {},
"percentage8": {},
"percentage9": {},
"swing7": {},
"swing8": {},
"swing9": {},
"title": {},
"posttitle": {},
"before_election": {},
"after_election": {},
"before_party": {},
"after_party": {}
}
}
</templatedata>
</noinclude>
</noinclude>