Template:Progress bar: Difference between revisions

From StrategyWiki, the video game walkthrough and strategy guide wiki
Undone; MW still doesn't like it
(Cleanup to prevent overflows)
(Undone; MW still doesn't like it)
Line 1: Line 1:
<includeonly>{{#vardefine:width|{{#ifexpr:{{{progress|1}}}>={{{total|}}}|100|{{#expr:100*({{{progress|1}}}/{{{total|}}})}}}}}}<div class="progress_bar"><p style="width:{{#var:width}}%" class="progress_bar_inner">{{#if:{{{units|}}}|{{#if:{{{ratio|}}}|{{#ifexpr:{{{progress|1}}}<1|{{#expr:{{{progress|1}}}*{{{ratio}}}}}{{{subunits|}}}|{{#ifexpr:{{{progress|1}}}>={{{ratio}}}|{{#expr:{{{progress|1}}}/{{{ratio}}}}}{{{supraunits|}}}|{{{progress|1}}}{{{units}}}}}}}|{{{progress|1}}}{{{units}}}}}|{{#expr:100*({{{progress|1}}}/{{{total|}}}) round 0}}%}}</p></div></includeonly><noinclude>
<includeonly><div class="progress_bar"><p style="width:{{#expr:100*({{{progress|1}}}/{{{total|}}})}}%" class="progress_bar_inner">{{#if:{{{units|}}}|{{#if:{{{ratio|}}}|{{#ifexpr:{{{progress|1}}}<1|{{#expr:{{{progress|1}}}*{{{ratio}}}}}{{{subunits|}}}|{{#ifexpr:{{{progress|1}}}>={{{ratio}}}|{{#expr:{{{progress|1}}}/{{{ratio}}}}}{{{supraunits|}}}|{{{progress|1}}}{{{units}}}}}}}|{{{progress|1}}}{{{units}}}}}|{{#expr:100*({{{progress|1}}}/{{{total|}}}) round 0}}%}}</p></div></includeonly><noinclude>
{{Progress bar/Documentation}}
{{Progress bar/Documentation}}
[[Category:Templates|P]]</noinclude>
[[Category:Templates|P]]</noinclude>