Difference between revisions of "Template:Progression"
Jump to navigation
Jump to search
(→add) Tags: Mobile edit Mobile web edit |
(→fix?) |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><templatestyles src="Progression/styles.css/><table role="presentation" class="progression" {{#if:{{{width|}}}|style="width: {{{width}}}"}}> |
− | + | <tr> | |
− | + | <td class="progression-header">{{#if:{{{task|}}}|{{{task|}}}: }}<span>{{formatnum:{{#if:{{{1|0}}}|{{#expr:100*{{{1|0}}}/{{{2|{{{total|100}}}}}}round 1}}}}}}%</span> complete | |
− | + | </td></tr> | |
− | + | <tr><td><table role="presentation" class="progression-bar"> | |
− | {{#ifeq | + | <tr>{{#ifeq:{{{1|0}}}|0| |<td class="progression-done" {{#ifexpr:({{#if:{{{1|0}}}|{{#expr:100*{{{1|0}}}/{{{2|{{{total|100}}}}}}}}}}<1)|style="width: 1%"|{{#if:{{{1|0}}}|style="width: {{#expr:100*{{{1|0}}}/{{{2|{{{total|100}}}}}}round 1}}}}%"}}></td>}}{{#ifeq:{{#if:{{{1|0}}}|{{#expr:100*{{{1|0}}}/{{{2|{{{total|100}}}}}}}}}}|100||<td class="progression-undone"></td>}} |
− | {{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}}} | + | </tr></table></td></tr></table></includeonly> |
− | |||
− |