Template:Infobox election: Difference between revisions

From Shut Down
Jump to navigation Jump to search
(Created template.)
 
No edit summary
Tag: Reverted
Line 26: Line 26:
| subheader2 =  {{#if:{{{previous_year|}}}{{{election_date|}}}{{{next_year|}}}|  
| subheader2 =  {{#if:{{{previous_year|}}}{{{election_date|}}}{{{next_year|}}}|  
  {{succession links|leftstyle=width:20%;|centerstyle = width:60%;|rightstyle=width:20%;
  {{succession links|leftstyle=width:20%;|centerstyle = width:60%;|rightstyle=width:20%;
   | left ={{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_election|}}}|[[{{{previous_election}}}|{{{previous_year}}}]]|{{{previous_year}}}}}}}
   | left ={{#if:{{{previous_year|}}}|{{#ifexist:{{{previous_election|}}}|{{{previous_election}}}|{{{previous_year}}}|{{{previous_year}}}}}}}
   | center = {{#if:{{{election_date|}}}|'''{{{election_date}}}'''}}
   | center = {{#if:{{{election_date|}}}|'''{{{election_date}}}'''}}
   | right = {{#if:{{{next_year|}}}|{{#ifexist:{{{next_election|}}}|[[{{{next_election}}}|{{{next_year}}}]]|{{{next_year}}}}}}}
   | right = {{#if:{{{next_year|}}}|{{#ifexist:{{{next_election|}}}|{{{next_election}}}|{{{next_year}}}|{{{next_year}}}}}}}
   }}
   }}
}}
}}
Line 34: Line 34:
{{#if:{{{outgoing_members|{{{previous_mps|}}}}}}{{{elected_members|{{{elected_mps|}}}}}}|  
{{#if:{{{outgoing_members|{{{previous_mps|}}}}}}{{{elected_members|{{{elected_mps|}}}}}}|  
{{succession links|leftstyle=width:40%; text-align:center;|rightstyle=width:40%; text-align:center;
{{succession links|leftstyle=width:40%; text-align:center;|rightstyle=width:40%; text-align:center;
  | left = {{#if:{{{outgoing_members|{{{previous_mps|}}}}}}|{{#ifexist:{{{outgoing_members|{{{previous_mps|}}}}}}|[[{{{outgoing_members|{{{previous_mps|}}}}}}|outgoing members]]|{{{outgoing_members|{{{previous_mps|}}}}}}}}}}
  | left = {{#if:{{{outgoing_members|{{{previous_mps|}}}}}}|{{#ifexist:{{{outgoing_members|{{{previous_mps|}}}}}}|{{{outgoing_members|{{{previous_mps|}}}}}}|outgoing members|{{{outgoing_members|{{{previous_mps|}}}}}}}}}}
  | right = {{#if:{{{elected_members|{{{elected_mps|}}}}}}|{{#ifexist:{{{elected_members|{{{elected_mps|}}}}}}|[[{{{elected_members|{{{elected_mps|}}}}}}|elected members]]|{{{elected_members|{{{elected_mps|}}}}}}}}|}}
  | right = {{#if:{{{elected_members|{{{elected_mps|}}}}}}|{{#ifexist:{{{elected_members|{{{elected_mps|}}}}}}|{{{elected_members|{{{elected_mps|}}}}}}|elected members|{{{elected_members|{{{elected_mps|}}}}}}}}|}}
  }}
  }}
}}
}}
Line 55: Line 55:
| #default      =  
| #default      =  
}}
}}
| data2 = {{#if:{{{opinion_polls|}}}| [[{{{opinion_polls}}}|Opinion polls]] }}
| data2 = {{#if:{{{opinion_polls|}}}| {{{opinion_polls}}}|Opinion polls }}


| label3 = Registered
| label3 = Registered
Line 501: Line 501:
| data15 = {{#if:{{{title|}}}|<hr />
| data15 = {{#if:{{{title|}}}|<hr />
{{{!}} cellspacing="0" cellpadding="0" style="background:transparent; width:100%;"
{{{!}} cellspacing="0" cellpadding="0" style="background:transparent; width:100%;"
{{!}} style="width:50%; text-align:left;" {{!}}{{#if:{{{before_election|}}}{{{before_party|}}}|'''{{#ifeq:{{{type}}}|primary|Previous {{{title}}}|{{#ifeq:{{{ongoing|no}}}|yes|Incumbent {{#ifeq:{{lc:{{{title}}}}}|u.s. senator|[[List of United States senators from {{#ifeq:{{{country}}}|Georgia (U.S. state)|Georgia|{{{country}}}}}|U.S. senator]]|{{{title}}}}}|{{#ifeq:{{lc:{{{title}}}}}|u.s. senator|[[List of United States senators from {{#ifeq:{{{country}}}|Georgia (U.S. state)|Georgia|{{{country}}}}}|U.S. senator]]|{{{title}}}}} before election}}}}'''<br />
{{!}} style="width:50%; text-align:left;" {{!}}{{#if:{{{before_election|}}}{{{before_party|}}}|'''{{#ifeq:{{{type}}}|primary|Previous {{{title}}}|{{#ifeq:{{{ongoing|no}}}|yes|Incumbent {{#ifeq:{{lc:{{{title}}}}}|u.s. senator|List of United States senators from {{#ifeq:{{{country}}}|Georgia (U.S. state)|Georgia|{{{country}}}}}|U.S. senator|{{{title}}}}}|{{#ifeq:{{lc:{{{title}}}}}|u.s. senator|List of United States senators from {{#ifeq:{{{country}}}|Georgia (U.S. state)|Georgia|{{{country}}}}}|U.S. senator|{{{title}}}}} before election}}}}'''<br />
{{{before_election}}}<br />
{{{before_election}}}<br />
{{#if:{{{before_party|}}}|{{Infobox election/shortname|link={{{before_party_link|{{{party_name}}}}}}|name={{{before_party}}}}} }} }}
{{#if:{{{before_party|}}}|{{Infobox election/shortname|link={{{before_party_link|{{{party_name}}}}}}|name={{{before_party}}}}} }} }}

Revision as of 16:18, 1 March 2023