Difference between revisions of "Template:Partisantop"

From Ballotpedia
Jump to: navigation, search
m (Reverted edits by SarahR (talk) to last revision by Fandyllic)
 
Line 7: Line 7:
 
::* d, dem, democratic = Democratic &rarr; <span style="background-color:#008; color:white; padding:2px;">'''Blue'''</span> (#008)
 
::* d, dem, democratic = Democratic &rarr; <span style="background-color:#008; color:white; padding:2px;">'''Blue'''</span> (#008)
 
::* wd, wdem, wdemocratic, weak democratic = Weakly democratic (&lt;10% margin?) &rarr; <span style="background-color:#668; color:white; padding:2px;">'''Slate Blue'''</span> (#668)
 
::* wd, wdem, wdemocratic, weak democratic = Weakly democratic (&lt;10% margin?) &rarr; <span style="background-color:#668; color:white; padding:2px;">'''Slate Blue'''</span> (#668)
::* r, repub, republican = Republican <span style="background-color:#FF0000; color:white; padding:2px;">'''Red'''</span> (#FF0000)
+
::* r, repub, republican = Republican <span style="background-color:#800; color:white; padding:2px;">'''Red'''</span> (#800)
 
::* wr, wrepub, wrepublican, weak republican = Weakly republican (&lt;10% margin?) <span style="background-color:#866; color:white; padding:2px;">'''Gray Pink'''</span> (#866)
 
::* wr, wrepub, wrepublican, weak republican = Weakly republican (&lt;10% margin?) <span style="background-color:#866; color:white; padding:2px;">'''Gray Pink'''</span> (#866)
 
:'''parent''' = ''Optional'' parent template name for viewing/editing
 
:'''parent''' = ''Optional'' parent template name for viewing/editing
Line 19: Line 19:
 
<onlyinclude>{|class="wikitable" cellspacing="0" cellpadding="5" border="1" style="background:none" style="width:{{{width|35%}}};"
 
<onlyinclude>{|class="wikitable" cellspacing="0" cellpadding="5" border="1" style="background:none" style="width:{{{width|35%}}};"
 
|-
 
|-
! colspan="2" align="center" valign="bottom" style="background-color:#{{#switch:{{lc:{{{lean|{{{2|}}}}}}}}|b|bip|bipartisan=606|d|dem|democratic=008|wd|wdem|wdemocratic|weak democratic=668|r|repub|republican=#FF0000|wr|wrepub|wrepublican|weak republican=866|666}}; color: white;" |{{#if:{{{parent|}}}|<span class="plainlinks" style="color:#666; float:left; font-weight:normal;">[[Template:{{{parent|}}}|<span style="color:#666;">v</span>]] &bull; [{{fullurl:Template:{{{parent|}}}|action=edit}} <span style="color:#666;">e</span>]</span>}} Party
+
! colspan="2" align="center" valign="bottom" style="background-color:#{{#switch:{{lc:{{{lean|{{{2|}}}}}}}}|b|bip|bipartisan=606|d|dem|democratic=008|wd|wdem|wdemocratic|weak democratic=668|r|repub|republican=800|wr|wrepub|wrepublican|weak republican=866|666}}; color: white;" |{{#if:{{{parent|}}}|<span class="plainlinks" style="color:#666; float:left; font-weight:normal;">[[Template:{{{parent|}}}|<span style="color:#666;">v</span>]] &bull; [{{fullurl:Template:{{{parent|}}}|action=edit}} <span style="color:#666;">e</span>]</span>}} Party
! valign="bottom" style="background-color:#{{#switch:{{lc:{{{lean|{{{2|}}}}}}}}|b|bip|bipartisan=606|d|dem|democratic=008|wd|wdem|wdemocratic|weak democratic=668|r|repub|republican=#FF0000|wr|wrepub|wrepublican|weak republican=866|666}}; color: white; width:12em;" | As&nbsp;of {{{date|{{{1|{{#time:F Y}}}}}}}}
+
! valign="bottom" style="background-color:#{{#switch:{{lc:{{{lean|{{{2|}}}}}}}}|b|bip|bipartisan=606|d|dem|democratic=008|wd|wdem|wdemocratic|weak democratic=668|r|repub|republican=800|wr|wrepub|wrepublican|weak republican=866|666}}; color: white; width:12em;" | As&nbsp;of {{{date|{{{1|{{#time:F Y}}}}}}}}
 
</onlyinclude>
 
</onlyinclude>
 
{{partisancount|D|count=<span style="color:#aaa;">#</span>}}
 
{{partisancount|D|count=<span style="color:#aaa;">#</span>}}

Latest revision as of 12:55, 31 July 2013

Parameters
1/date = Month/year (default current month/year: September 2014)
2/lean = Optional side to which major party the legislature leans (default → Dark Gray)
width = Optional table box width (default is 35%)
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)
parent = Optional parent template name for viewing/editing


See also


Party As of September 2014
     Democratic Party #
     Green Party #
     Republican Party #
Total #