Template:Progression: Difference between revisions

From Mizuumi Wiki
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|}}}:&nbsp;}}{{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>
</noinclude><includeonly>{{#switch:<translate></translate>
==Usage==
| =
Explained on [https://www.mediawiki.org/wiki/Template:Progression MediaWiki].
<table width={{#if:{{{width|}}}|{{{width|}}}|50%}} align=center style="background:transparent">
[[Category:Universal]][[Category:Templates]]
<tr>
</noinclude>
<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>
</tr>
<tr>
<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>

Latest revision as of 19:36, 1 June 2020


Usage

Explained on MediaWiki.