User:DemonDays64/US Senate election subst

Call with  and parameters:


 * year (e.g. 2018)
 * state (e.g. Washington)
 * incumbent (e.g. Maria Cantwell )
 * day (e.g. 6)
 * month (e.g. November)
 * state-code (e.g. WA)

{{Infobox election }}
 * election_name = United States Senate election in
 * country =
 * type = presidential
 * ongoing = {{#ifeq: {{{ongoing}} | no | no | yes }}
 * previous_election = {{subst:#expr:-6}} United States Senate election in
 * previous_year = {{subst:#expr:{{{year}}}-6}}
 * next_election = {{subst:#expr:{{{year}}}+6}} United States Senate election in
 * next_year = {{subst:#expr:{{{year}}}+6}}
 * election_date = {{{month}}} {{{day}}}, {{year}}
 * image1 =
 * nominee1 =
 * running_mate1 =
 * party1 = Democratic Party (United States)
 * popular_vote1 =
 * percentage1 =
 * image2 =
 * nominee2 =
 * party2 = Republican Party (United States)
 * running_mate2 =
 * popular_vote2 =
 * percentage2 =
 * title = U.S. Senator
 * before_election = {{{incumbent}}}
 * before_party = Democratic Party (United States)
 * after_election =
 * after_party =

The {{{year}}} United States Senate election in  on November 6, 2018, in order to elect a member of the United States Senate to represent the State of  Washington | {{#ifeq: {{{state}}} | Georgia | [[Georgia (U.S. state)|Georgia | {{{state}}} }} | Washington }}.

{{subst:#ifeq: {{{state}}}|Washington| Washington|{{subst:#ifeq: {{{state}}}|Georgia|  Georgia|{{{state}}}}}