Template:Progression: Difference between revisions
Jump to navigation
Jump to search
(Test to see if MW version looks better) |
m (Added categories) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| style="width:{{#if:{{{width|}}}|{{{width|}}}|50%}}; margin: 0 auto; background: transparent" | |||
| style="text-align:center;" |{{#if:{{{task|}}}|{{{task|}}}: }}{{big|'''{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}round 1}}|0}}}}%'''}} complete | |||
|- | |||
| | |||
{|style="border:1px solid grey; height:10px; width:100%; border-spacing: 1px;" | |||
{{#ifeq:{{#if:{{{1|}}}|{{{1}}}|0}}|0| | {{!}}style="background: #5FDB00; width: {{#ifexpr:({{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}}}|0}}<1)|1%|{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}round 1}}|0}}%}}"{{!}} }} | |||
{{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}}}|0}}|100|| {{!}}style="background: #E2E2E2;" {{!}} }} | |||
|} | |||
|}</includeonly> | |||
<noinclude> | <noinclude> | ||
==Usage== | |||
Explained on [https://www.mediawiki.org/wiki/Template:Progression MediaWiki]. | |||
[[Category:Universal]][[Category:Templates]] | |||
</noinclude> | |||
</ | |||