Template:Partisantopbeforeafter

From Ballotpedia
Jump to: navigation, search
Parameters
1/datebefore = Month year (default: November 1, 2014
2/dateafter = Month year (default: the 2014 election)
3/leanbefore = Optional side to which major party the legislature leans (default → Dark Gray)
4/leanafter = Optional side to which major party the legislature leans (default → Dark Gray)
Possible values:
  • b, bip, bipartisan = Bi-partisanDark Purple (#606)
  • d, dem, democratic = Democratic → Blue (#008)
  • wd, wdem, wdemocratic, weak democratic = Weakly democratic (<10% margin?) → Slate Blue (#668)
  • r, repub, republican = Republican Red (#800)
  • wr, wrepub, wrepublican, weak republican = Weakly republican (<10% margin?) Gray Pink (#866)
title = Optional table title header
width = Optional table box width (default is 50%)
parent = Optional parent template name for viewing/editing
Examples
{{partisantopbeforeafter
|title=Mythical State Senate
|datebefore=November 1, {{#time:Y}}
|dateafter=the {{#time:Y}} election
|leanbefore=R
|leanafter=D
}}
{{partisancountbeforeafter|D|countbefore=<span style="color:#aaa;">#</span>|countafter=<span style="color:#aaa;">#</span>}}
{{partisancountbeforeafter|G|countbefore=<span style="color:#aaa;">#</span>|countafter=<span style="color:#aaa;">#</span>}}
{{partisancountbeforeafter|R|countbefore=<span style="color:#aaa;">#</span>|countafter=<span style="color:#aaa;">#</span>}}
{{partisantotalbeforeafter|totalbefore=<span style="color:#aaa;">#</span>|totalafter=<span style="color:#aaa;">#</span>}}
gives...
Mythical State Senate
Party As of November 1, 2014 After the 2014 election
     Democratic Party # #
     Green Party # #
     Republican Party # #
Total # #
See also



Template
Party As of November 1, 2014 After the 2014 election
     Democratic Party # #
     Green Party # #
     Republican Party # #
Total # #