Template:Progression: Difference between revisions

From Mizuumi Wiki
Jump to navigation Jump to search
(Test to see if MW version looks better)
(Undo revision 45110 by Jotamide (talk))
Tag: Undo
Line 1: Line 1:
<noinclude>
<includeonly>{| style="width:{{#if:{{{width|}}}|{{{width|}}}|50%}}; margin: 0 auto; background: transparent"
</noinclude><includeonly>{{#switch:<translate></translate>
| style="text-align:center;" |{{#if:{{{task|}}}|{{{task|}}}:&nbsp;}}{{big|'''{{formatnum:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}round 1}}|0}}}}%'''}} complete
| =
|-
<table width={{#if:{{{width|}}}|{{{width|}}}|50%}} align=center style="background:transparent">
|
<tr>
{|style="border:1px solid grey; height:10px; width:100%; border-spacing: 1px;"
<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|}}}|{{{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:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}}}|0}}|100|| {{!}}style="background: #E2E2E2;" {{!}} }}
<tr>
|}
<td>
|}</includeonly>
<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:40, 3 April 2019