Template:Partisanhistory

From Ballotpedia
Jump to: navigation, search
Parameters
1/date1 = Month year (default: November 1, 2014
2/date2 = Month year (default: 2014 )
3/lean1 = Optional side to which major party the legislature leans (default → Dark Gray)
4/lean2 = 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
|date1=November 1, {{#time:Y}}
|date2=the {{#time:Y}} election
|lean1=R
|lean2=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 November 1, 2014 the 2014 election
     Democratic Party # #
     Green Party # #
     Republican Party # #
Total # #