Template:Infobox election: Difference between revisions

From Central Student Government Wiki
Jump to navigation Jump to search
Administrator (talk | contribs)
m 1 revision imported
Administrator (talk | contribs)
mNo edit summary
Tag: Reverted
Line 514: Line 514:
{{!}} 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|}}}|{{{before_party}}} }} }}
{{!}} style="width:50%; text-align:right;" {{!}} {{#ifeq:{{{ongoing|no}}}|yes|{{#ifeq:{{{type}}}|primary|{{#if:{{{after_election|}}}|'''Presumptive {{#if:{{{posttitle|}}}|{{{posttitle}}}|{{{title}}}}}'''|}}|}} |'''{{#if:{{{posttitle|}}}|{{{posttitle}}}|{{#ifeq:{{{type}}}|primary||Elected}} {{#ifeq:{{{title|}}}|Mayor|mayor|{{{title}}}}}}}'''}} <br />
{{!}} style="width:50%; text-align:right;" {{!}} {{#ifeq:{{{ongoing|no}}}|yes|{{#ifeq:{{{type}}}|primary|{{#if:{{{after_election|}}}|'''Presumptive {{#if:{{{posttitle|}}}|{{{posttitle}}}|{{{title}}}}}'''|}}|}} |'''{{#if:{{{posttitle|}}}|{{{posttitle}}}|{{#ifeq:{{{type}}}|primary||Elected}} {{#ifeq:{{{title|}}}|Mayor|mayor|{{{title}}}}}}}'''}} <br />
{{#ifeq:{{{ongoing|no}}}|yes|{{#ifeq:{{{type}}}|primary|{{#if:{{{after_election|}}}|{{{after_election}}}|}}}}}}
{{#ifeq:{{{ongoing|no}}}|yes|{{#ifeq:{{{type}}}|primary|{{#if:{{{after_election|}}}|{{{after_election}}}|}}}}}}
{{#ifeq:{{{ongoing|no}}}|yes||{{#if:{{{after_election|}}}|{{{after_election}}}|}}{{#if:{{{after_election|}}}{{{after_party|}}}||TBD}}<br />
{{#ifeq:{{{ongoing|no}}}|yes||{{#if:{{{after_election|}}}|{{{after_election}}}|}}{{#if:{{{after_election|}}}{{{after_party|}}}||TBD}}<br />
{{#if:{{{after_party|}}}|{{Infobox election/shortname|link={{{after_party_link|{{{party_name|}}}}}}|name={{{after_party}}}}}}} }}
{{#if:{{{after_party|}}}|{{{after_party}}}}} }}
{{!}}} }}
{{!}}} }}
|name = {{#if:{{{template_name|}}}|{{{template_name}}}}}
|name = {{#if:{{{template_name|}}}|{{{template_name}}}}}
| data16 = {{{module|}}}
| data16 = {{{module|}}}
}}</includeonly><noinclude>{{documentation}}<!-- Add categories to the /doc subpage, not here! --></noinclude>{{#if:{{{electoral_vote1|}}}|{{Main other|[[Category:Elections using electoral votes]]}}}}<!-- temporary tracking of elections using an electoral college -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox election with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox election]] with unknown parameter "_VALUE_"|ignoreblank=y| regexp1 = [%d]blank | regexp2 = [%d]data[%d] | after_election | after_party | after_party_link | regexp3 = alliance[%d]_name | alliance_name | regexp4 = alliance[%d] | before_election | before_party | before_party_link | regexp5 = candidate[%d] | child | college_voted | regexp6 = colou?r[%d] | counties_threshold1 | counties_threshold2 | counties_threshold3 | counties_threshold9 | counties_won1 | counties_won2 | counties_won3 | counties_won9 | country | declared | regexp7 = delegate_count[%d] | elected_members | elected_mps | election_date | election_name | regexp8 = electoral_vote[%d] | embed | filler | flag_image | flag_year | regexp9 = home_state[%d] | image_size | image_upright | regexp10 = image[%d] | regexp11 = image[%d]_size | regexp12 = image[%d]_upright | regexp13 = last_election[%d] | last_update | regexp14 = leader_since[%d] | regexp15 = leader[%d] | regexp16 = leaders_seat[%d] | majority_seats | map | map_alt | map_caption | map_image | map_size | map2 | map2_alt | map2_caption | map2_image | map2_size | map3 | map3_alt | map3_caption | map3_image | map3_size | map4 | map4_alt | map4_caption | map4_image | map4_size | module | needed_votes | next_election | next_year | regexp17 = nominee[%d] | ongoing | opinion_polls | outgoing_members | party_color | party_colour | party_label | regexp18 = party[%d]_name | party_name | regexp19 = party[%d] | regexp20 = percentage[%d] | regexp21 = poll[%d]_candidate[%d] | regexp22 = poll[%d]_date[%d]? | regexp23 = poll[%d]_nominee[%d] | regexp24 = poll[%d]_party[%d] | regexp25 = poll[%d]_source[%d]? | regexp26 = popular_vote[%d] | posttitle | previous_election | previous_mps | previous_year | registered | reporting | regexp27 = running_mate[%d] | regexp28 = seat_change[%d] | regexp29 = seats_after[%d] | regexp30 = seats_before[%d] | seats_for_election | regexp31 = seats_needed[%d] | regexp32 = seats[%d] | regexp33 = states_carried[%d] | regexp34 = swing[%d] | template_name | time_zone | title | turnout | type | vote_type | votes_counted | votes_for_election }}
}}</includeonly><noinclude>{{documentation}}<!-- Add categories to the /doc subpage, not here! --></noinclude>{{#if:{{{electoral_vote1|}}}|{{Main other|[[Category:Elections using electoral votes]]}}}}<!-- temporary tracking of elections using an electoral college -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox election with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox election]] with unknown parameter "_VALUE_"|ignoreblank=y| regexp1 = [%d]blank | regexp2 = [%d]data[%d] | after_election | after_party | after_party_link | regexp3 = alliance[%d]_name | alliance_name | regexp4 = alliance[%d] | before_election | before_party | before_party_link | regexp5 = candidate[%d] | child | college_voted | regexp6 = colou?r[%d] | counties_threshold1 | counties_threshold2 | counties_threshold3 | counties_threshold9 | counties_won1 | counties_won2 | counties_won3 | counties_won9 | country | declared | regexp7 = delegate_count[%d] | elected_members | elected_mps | election_date | election_name | regexp8 = electoral_vote[%d] | embed | filler | flag_image | flag_year | regexp9 = home_state[%d] | image_size | image_upright | regexp10 = image[%d] | regexp11 = image[%d]_size | regexp12 = image[%d]_upright | regexp13 = last_election[%d] | last_update | regexp14 = leader_since[%d] | regexp15 = leader[%d] | regexp16 = leaders_seat[%d] | majority_seats | map | map_alt | map_caption | map_image | map_size | map2 | map2_alt | map2_caption | map2_image | map2_size | map3 | map3_alt | map3_caption | map3_image | map3_size | map4 | map4_alt | map4_caption | map4_image | map4_size | module | needed_votes | next_election | next_year | regexp17 = nominee[%d] | ongoing | opinion_polls | outgoing_members | party_color | party_colour | party_label | regexp18 = party[%d]_name | party_name | regexp19 = party[%d] | regexp20 = percentage[%d] | regexp21 = poll[%d]_candidate[%d] | regexp22 = poll[%d]_date[%d]? | regexp23 = poll[%d]_nominee[%d] | regexp24 = poll[%d]_party[%d] | regexp25 = poll[%d]_source[%d]? | regexp26 = popular_vote[%d] | posttitle | previous_election | previous_mps | previous_year | registered | reporting | regexp27 = running_mate[%d] | regexp28 = seat_change[%d] | regexp29 = seats_after[%d] | regexp30 = seats_before[%d] | seats_for_election | regexp31 = seats_needed[%d] | regexp32 = seats[%d] | regexp33 = states_carried[%d] | regexp34 = swing[%d] | template_name | time_zone | title | turnout | type | vote_type | votes_counted | votes_for_election }}

Revision as of 20:31, 10 March 2025