Read the State Legislative Tracker. New edition available now!

Difference between revisions of "Template:SLP donor box 2012"

From Ballotpedia
Jump to: navigation, search
Line 1: Line 1:
{{{name}}} {{#switch: {{{new|}}}|yes=won election|no=won re-election to the|lost=lost the election for the|off=was not up for election to the}} {{{office}}} in 2012. During that election cycle, {{{name}}} raised a total of '''${{formatnum:{{{total raised}}}}}'''.<table border="1" cellpadding="4" cellspacing="0" width="600px" class="collapsible collapsed"><tr><th style="color:{{#switch:{{{party|}}}|Libertarian = black|#default=white}};background-color:{{#switch:{{{party|}}}|Democratic=blue|Republican=red|Green Party=green|Libertarian=#FFF380|#default=grey}};text-align:center" colspan="2">'''{{{office}}} 2012 election - Campaign Contributions'''</th></tr><tr><td style="text-align:center; background-color:#C0C0C0;" colspan="2">'''Top contributors to {{#if:{{{full name|}}}|{{{full name}}}|{{PAGENAME}}}}'s campaign in 2012'''</td></tr>{{#if:{{{org1|}}}|<tr><td width="250" style="text-align:left">''{{{org1}}}''</td><td width="250" style="text-align:center">${{formatnum:{{{orgamount1}}}}}</td></tr>|}}{{#if:{{{org2|}}}|<tr><td width="250" style="text-align:left">''{{{org2}}}''</td><td width="250" style="text-align:center">${{formatnum:{{{orgamount2}}}}}</td></tr>|}}{{#if:{{{org3|}}}|<tr><td width="250" style="text-align:left">''{{{org3}}}''</td><td width="250" style="text-align:center">${{formatnum:{{{orgamount3}}}}}</td></tr>|}}{{#if:{{{org4|}}}|<tr><td width="250" style="text-align:left">''{{{org4}}}''</td><td width="250" style="text-align:center">${{formatnum:{{{orgamount4}}}}}</td></tr>|}}{{#if:{{{org5|}}}|<tr><td width="250" style="text-align:left">''{{{org5}}}''</td><td width="250" style="text-align:center">${{formatnum:{{{orgamount5}}}}}</td></tr>|}}<tr><td width="300px" style="text-align:center">'''Total Raised in 2012'''</td><td width="200px" style="text-align:center; color:white; background-color:#000">'''${{formatnum:{{{total raised}}}}}'''</td></tr>{{#if:{{{total votes|}}}|<tr><td width="300px" style="text-align:center">'''Total Votes received in 2012'''</td><td width="200px" style="text-align:center; color:white; background-color:#000">'''{{formatnum:{{{total votes}}}}}'''</td></tr><tr><td width="300px" style="text-align:center">'''Cost of each vote received'''</td><td width="200px" style="text-align:center; color:white; background-color:#000">'''${{formatnum:{{#expr:{{{total raised}}} / {{{total votes}}}round2}}}}'''</td></tr>|}}<!--
+
{{{name}}} {{#switch: {{{new|}}}|yes=won election to the|no=won re-election to the|lost=lost the election for the|off=was not up for election to the}} {{{office}}} in 2012. During that election cycle, {{{name}}} raised a total of '''${{formatnum:{{{total raised}}}}}'''.<table border="1" cellpadding="4" cellspacing="0" width="600px" class="collapsible collapsed"><tr><th style="color:{{#switch:{{{party|}}}|Libertarian = black|#default=white}};background-color:{{#switch:{{{party|}}}|Democratic=blue|Republican=red|Green Party=green|Libertarian=#FFF380|#default=grey}};text-align:center" colspan="2">'''{{{office}}} 2012 election - Campaign Contributions'''</th></tr><tr><td style="text-align:center; background-color:#C0C0C0;" colspan="2">'''Top contributors to {{#if:{{{full name|}}}|{{{full name}}}|{{PAGENAME}}}}'s campaign in 2012'''</td></tr>{{#if:{{{org1|}}}|<tr><td width="250" style="text-align:left">''{{{org1}}}''</td><td width="250" style="text-align:center">${{formatnum:{{{orgamount1}}}}}</td></tr>|}}{{#if:{{{org2|}}}|<tr><td width="250" style="text-align:left">''{{{org2}}}''</td><td width="250" style="text-align:center">${{formatnum:{{{orgamount2}}}}}</td></tr>|}}{{#if:{{{org3|}}}|<tr><td width="250" style="text-align:left">''{{{org3}}}''</td><td width="250" style="text-align:center">${{formatnum:{{{orgamount3}}}}}</td></tr>|}}{{#if:{{{org4|}}}|<tr><td width="250" style="text-align:left">''{{{org4}}}''</td><td width="250" style="text-align:center">${{formatnum:{{{orgamount4}}}}}</td></tr>|}}{{#if:{{{org5|}}}|<tr><td width="250" style="text-align:left">''{{{org5}}}''</td><td width="250" style="text-align:center">${{formatnum:{{{orgamount5}}}}}</td></tr>|}}<tr><td width="300px" style="text-align:center">'''Total Raised in 2012'''</td><td width="200px" style="text-align:center; color:white; background-color:#000">'''${{formatnum:{{{total raised}}}}}'''</td></tr>{{#if:{{{total votes|}}}|<tr><td width="300px" style="text-align:center">'''Total Votes received in 2012'''</td><td width="200px" style="text-align:center; color:white; background-color:#000">'''{{formatnum:{{{total votes}}}}}'''</td></tr><tr><td width="300px" style="text-align:center">'''Cost of each vote received'''</td><td width="200px" style="text-align:center; color:white; background-color:#000">'''${{formatnum:{{#expr:{{{total raised}}} / {{{total votes}}}round2}}}}'''</td></tr>|}}<!--
  
 
Reference
 
Reference

Revision as of 16:45, 16 August 2013

{{{name}}} {{{office}}} in 2012. During that election cycle, {{{name}}} raised a total of ${{{total raised}}}.
[edit] Template-info.png Template documentation
{{SLP donor box 2012
|name = 
|full name = 
|reference = 
|office= 
|new = 
|party = 
|total raised = 
|org1 = 
|org2 = 
|org3 = 
|org4 = 
|org5 =
|orgamount1 = 
|orgamount2 = 
|orgamount3 =
|orgamount4 = 
|orgamount5 = 
|}}
{{SLP donor box 2012
|name = LAST NAME ONLY
|full name = FULL NAME -- To be used on profiles with page title FIRST LAST (STATE), for example
|reference = WEBSITE ONLY
|office= NAME OF OFFICE
|new = "yes" IF FIRST TIME WINNER; "no" IF INCUMBENT; "lost" IF CANDIDATE LOST THE ELECTION
|party = PARTY
|total raised = TOTAL, WITHOUT ANY COMMAS OR FORMATTING
|org1 = NAME OF ORGANIZATION
|org2 = NAME OF ORGANIZATION
|org3 = NAME OF ORGANIZATION
|org4 = NAME OF ORGANIZATION
|org5 = NAME OF ORGANIZATION
|orgamount1 = AMOUNT FROM 1ST ORGANIZATION 
|orgamount2 = AMOUNT FROM 2ND ORGANIZATION
|orgamount3 = AMOUNT FROM 3RD ORGANIZATION
|orgamount4 = AMOUNT FROM 4TH ORGANIZATION
|orgamount5 = AMOUNT FROM 5TH ORGANIZATION
|}}