Difference between revisions of "Template:Net worth PIG"

From Ballotpedia
Jump to: navigation, search
Line 9: Line 9:
 
-->{{#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>|}}<!--
 
-->{{#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>|}}<!--
  
-->{{#if:{{{2012|}}}|<tr><td style="color:white;background-color:#444;text-align:center">'''Growth from {{{Year 0|}}} to 2012:'''</td><td style="text-align:center">'''{{#ifexpr:{{{2012|}}} = 0|N/A|{{#ifexpr:{{{2012|}}} > 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}}}}}}%'''}}</td><td style="text-align:center">'''{{formatnum:{{#expr:((71000 - {{{Citizen 0|0}}})/{{{Citizen 0|0}}}*100)round2}}}}%'''</td></tr>|}}</table><noinclude>{{Documentation}}{{reflist}}[[Category:Congress templates]]</noinclude>
+
-->{{#if:{{{Year 0|}}}|<tr><td style="color:white;background-color:#444;text-align:center">'''Growth from {{{Year 0|}}} to 2012:'''</td><td style="text-align:center">'''{{#ifexpr:{{{2012|}}} = 0|N/A|{{#ifexpr:{{{2012|}}} > 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}}}}}}%'''}}</td><td style="text-align:center">'''{{formatnum:{{#expr:((71000 - {{{Citizen 0|0}}})/{{{Citizen 0|0}}}*100)round2}}}}%'''</td></tr>|}}</table><noinclude>{{Documentation}}{{reflist}}[[Category:Congress templates]]</noinclude>

Revision as of 11:52, 2 April 2014

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