Difference between revisions of "Template:Net worth PIG"

From Ballotpedia
Jump to: navigation, search
(Undo revision 3045739 by Jlhaas (talk))
(Undo revision 3045735 by Jlhaas (talk))
Line 9: Line 9:
 
-->{{#if:{{{2012|}}}|<tr><td style="text-align:center">2012</td><td style="text-align:center">${{formatnum:{{{2012|0}}}}}</td></tr>|}}<!--
 
-->{{#if:{{{2012|}}}|<tr><td style="text-align:center">2012</td><td style="text-align:center">${{formatnum:{{{2012|0}}}}}</td></tr>|}}<!--
  
-->{{#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:{{{Average 0|}}} > 0|{{#ifexpr:{{{Average 0|}}} > 0|{{formatnum:{{#expr:(({{{2012|0}}} - {{{Average 0|0}}})/{{{Average 0|0}}}*100)round1}}}}|N/A}}}}%'''}}</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:{{{Average 0|}}} = 0|N/A|{{#ifexpr:{{{Average 0|}}} > 0|{{formatnum:{{#expr:(({{{2012|0}}} - {{{Average 0|0}}})/{{{Average 0|0}}}*100)round1}}}}|{{formatnum:{{#expr:(({{{2012|0}}} - {{{Average 0|0}}})/{{{Average 0|0}}}*-100)round1}}}}}}%'''}}</td></tr>|}}</table><noinclude>{{Documentation}}{{reflist}}[[Category:Congress templates]]</noinclude>

Revision as of 13:43, 19 June 2014

{{{Name}}} Yearly Net Worth
YearAverage Net Worth
[create] Template-info.png Template documentation