Template:Progression: Difference between revisions

From Mizuumi Wiki
Jump to navigation Jump to search
(Removed call to non-existent template)
(Test to see if MW version looks better)
Line 1: Line 1:
<includeonly>{| style="width:{{#if:{{{width|}}}|{{{width|}}}|50%}}; margin: 0 auto; background: transparent"
<noinclude>
| style="text-align:center;" |{{#if:{{{task|}}}|{{{task|}}}:&nbsp;}}{{big|'''{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}round 1}}|0}}}}%'''}} complete
</noinclude><includeonly>{{#switch:<translate></translate>
|-
| =
|
<table width={{#if:{{{width|}}}|{{{width|}}}|50%}} align=center style="background:transparent">
{|style="border:1px solid grey; height:10px; width:100%; border-spacing: 1px;"
<tr>
{{#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}}%}}"{{!}} }}
<td align=center>{{#if:{{{task|}}}|{{{task|}}}:&nbsp;}}<translate><!--T:1--> <big>'''<tvar|1>{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}}}</>%'''</big> complete</translate></td>
{{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}}}|0}}|100|| {{!}}style="background: #E2E2E2;" {{!}} }}
</tr>
|}
<tr>
|}</includeonly>
<td>
<table style="border:1px solid gray" cellspacing=1 width=100% height=15x>
<tr>
{{#ifeq:{{#if:{{{1|}}}|{{{1}}}|0}}|0| | <td style="background:#5FDB00; width:{{#ifexpr:({{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}<1)|1%|{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}%}}">&nbsp;</td> }}
{{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}|100|| <td style="background:#E2E2E2">&nbsp;</td> }}
</tr>
</table></td>
</tr>
</table>
| #default=
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Progression|noshift=1}}
}}</includeonly>

Revision as of 02:38, 3 April 2019