Difference between revisions of "Template:Net worth PIG"

From Ballotpedia
Jump to: navigation, search
Line 1: Line 1:
 
<table {{#ifeq:{{{Collapse|}}} | Yes | class="collapsible collapsed"|class="collapsible"}} width="600px" border="1" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #a3bfb1 solid; border-collapse: collapse; font-size: 95%;"><tr><!--
 
<table {{#ifeq:{{{Collapse|}}} | Yes | class="collapsible collapsed"|class="collapsible"}} width="600px" border="1" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #a3bfb1 solid; border-collapse: collapse; font-size: 95%;"><tr><!--
  
--><th style="background-color:{{#switch:{{{Political Party|}}}|Democratic=blue|Republican=red|#default=grey|Green Party=green|Libertarian=#FFF380|Constitution=orange}}; color:{{#switch:{{{Political Party|}}}|Libertarian = black||#default=white|Constitution= black}};" colspan="5">{{{Name}}} Yearly Net Worth </th></tr><!--
+
--><th style="background-color:{{#switch:{{{Political Party|}}}|Democratic=blue|Republican=red|#default=grey|Green Party=green|Libertarian=#FFF380|Constitution=orange}}; color:{{#switch:{{{Political Party|}}}|Libertarian = black||#default=white|Constitution= black}};" colspan="3">{{{Name}}} Yearly Net Worth </th></tr><!--
  
--><tr><th>Year</th><th>Avg. Net Worth</th><th>% Difference from previous year</th><th>Avg. Citizen Net Worth</th><th>% Difference from previous year</th></tr><!--
+
--><tr><th>Year</th><th>Avg. Net Worth</th><th>Avg. Citizen Net Worth</th></tr><!--
  
-->{{#if:{{{2012|}}}|<tr><td style="text-align:center">2012</td><td style="text-align:center">${{formatnum:{{{2012|0}}}}}</td><td style="text-align:center">{{#ifexpr:{{{Year 0|}}} = 2011|{{#ifexpr:{{{Average 0|}}} = 0|N/A|{{#ifexpr:{{{Average 0|}}} > 0|{{formatnum:{{#expr:(({{{2012|0}}} - {{{Average 0|0}}})/{{{Average 0|0}}}*100)round2}}}}|{{formatnum:{{#expr:(({{{2012|0}}} - {{{Average 0|0}}})/{{{Average 0|0}}}*-100)round2}}}}}}}}%|{{#ifexpr:{{{2011|}}} = 0|N/A|{{#ifexpr:{{{2011|}}} > 0|{{formatnum:{{#expr:(({{{2012|0}}} - {{{2011|0}}})/{{{2011|0}}}*100)round2}}}}|{{formatnum:{{#expr:(({{{2012|0}}} - {{{2011|0}}})/{{{2011|0}}}*-100)round2}}}}}}}}%}}</td><td style="text-align:center">$71,000</td><td style="text-align:center">-1.36%</td></tr>|}}<!--
+
-->{{#if:{{{2012|}}}|<tr><td style="text-align:center">2012</td><td style="text-align:center">${{formatnum:{{{2012|0}}}}}<td style="text-align:center">$71,000</td></tr>|}}<!--
  
-->{{#if:{{{2011|}}}|<tr><td style="text-align:center">2011</td><td style="text-align:center">${{formatnum:{{{2011|0}}}}}</td><td style="text-align:center">{{#ifexpr:{{{Year 0|}}} = 2010|{{#ifexpr:{{{Average 0|}}} = 0|N/A|{{#ifexpr:{{{Average 0|}}} > 0|{{formatnum:{{#expr:(({{{2011|0}}} - {{{Average 0|0}}})/{{{Average 0|0}}}*100)round2}}}}|{{formatnum:{{#expr:(({{{2011|0}}} - {{{Average 0|0}}})/{{{Average 0|0}}}*-100)round2}}}}}}}}%|{{#ifexpr:{{{2010|}}} = 0|N/A|{{#ifexpr:{{{2010|}}} > 0|{{formatnum:{{#expr:(({{{2011|0}}} - {{{2010|0}}})/{{{2010|0}}}*100)round2}}}}|{{formatnum:{{#expr:(({{{2011|0}}} - {{{2010|0}}})/{{{2010|0}}}*-100)round2}}}}}}}}%}}</td><td style="text-align:center">$71,982</td><td style="text-align:center">-0.025%</td></tr>|}}<!--
+
-->{{#if:{{{Year 0|}}}|<tr><td style="text-align:center">{{{Year 0}}}</td><td style="text-align:center">${{formatnum:{{{Average 0|0}}}}}</td><td style="text-align:center">${{formatnum:{{{Citizen 0|0}}}}}</td></tr>|}}</table><noinclude>{{Documentation}}{{reflist}}[[Category:Congress templates]]</noinclude>
 
+
-->{{#if:{{{2010|}}}|<tr><td style="text-align:center">2010</td><td style="text-align:center">${{formatnum:{{{2010|0}}}}}</td><td style="text-align:center">{{#ifexpr:{{{Average 0|}}} = 0|N/A|{{#ifexpr:{{{Average 0|}}} > 0|{{formatnum:{{#expr:(({{{2010|0}}} - {{{Average 0|0}}})/{{{Average 0|0}}}*100)round2}}}}|{{formatnum:{{#expr:(({{{2010|0}}} - {{{Average 0|0}}})/{{{Average 0|0}}}*-100)round2}}}}}}%}}</td><td style="text-align:center">$72,000</td><td style="text-align:center">{{#ifexpr:{{{Citizen 0|}}} = 0|N/A|{{#ifexpr:{{{Citizen 0|}}} > 0|{{formatnum:{{#expr:((72000 - {{{Citizen 0|0}}})/{{{Citizen 0|0}}}*100)round2}}}}|{{formatnum:{{#expr:((72000 - {{{Citizen 0|0}}})/{{{Citizen 0|0}}}*-100)round2}}}}}}%}}</td></tr>|}}<!--
+
 
+
-->{{#if:{{{Year 0|}}}|<tr><td style="text-align:center">{{{Year 0}}}</td><td style="text-align:center">${{formatnum:{{{Average 0|0}}}}}</td><td style="text-align:center">N/A</td><td style="text-align:center">${{formatnum:{{{Citizen 0|0}}}}}</td><td style="text-align:center">N/A</td></tr>|}}</table><noinclude>{{Documentation}}{{reflist}}[[Category:Congress templates]]</noinclude>
+

Revision as of 11:39, 2 April 2014

{{{Name}}} Yearly Net Worth
YearAvg. Net WorthAvg. Citizen Net Worth
[create] Template-info.png Template documentation