Difference between revisions of "Template:Progression"

From IdleCorp Wiki
Jump to navigation Jump to search
Tags: Mobile edit Mobile web edit
 
 
Line 1: Line 1:
<includeonly>{| style="width:{{#if:{{{width|}}}|{{{width|}}}|50%}}; margin: 0 auto; background: transparent"
+
<includeonly><templatestyles src="Progression/styles.css/><table role="presentation" class="progression" {{#if:{{{width|}}}|style="width: {{{width}}}"}}>
| style="text-align:center;" |{{#if:{{{task|}}}|{{{task|}}}}}已完成{{big|'''{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}round 1}}|0}}}}%'''}}
+
<tr>
|-
+
<td class="progression-header">{{#if:{{{task|}}}|{{{task|}}}:&#32;}}<span>{{formatnum:{{#if:{{{1|0}}}|{{#expr:100*{{{1|0}}}/{{{2|{{{total|100}}}}}}round 1}}}}}}%</span> complete
|
+
</td></tr>
{|style="border:1px solid grey; height:10px; width:100%; border-spacing: 1px;"
+
<tr><td><table role="presentation" class="progression-bar">
{{#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}}%}}"{{!}} }}
+
<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}}}}}}}}|0}}|100|| {{!}}style="background: #E2E2E2;" {{!}} }}
+
</tr></table></td></tr></table></includeonly>
|}
 
|}</includeonly>
 

Latest revision as of 10:59, 14 December 2020