Difference between revisions of "Template:ProgressBarBlock"
From A Wiki in the Desert
Line 1: | Line 1: | ||
<templatestyles src="ProgressBarBlock/main.css" /> | <templatestyles src="ProgressBarBlock/main.css" /> | ||
− | {{#vardefine:current|{{#expr:{{{1| | + | {{#vardefine:current|{{#expr:{{{1|2}}}}}}}{{#vardefine:progressing|{{#expr:{{{2|6}}}}}}}{{#vardefine:count|{{#expr:{{{3|10}}}}}}}{{#vardefine: w|{{#expr:(100.0 / {{#var:count}})-0.25}}}}<div class="bar"> |
− | {{#loop: i | 0 | {{#var:current}} |<nowiki/><div class="bar-block" style="background-color: | + | {{#loop: i | 0 | {{#var:current}} |<nowiki/><div class="bar-block" style="background-color: seagreen;"></div>}} |
+ | {{#loop: i | 0 | {{#var:progressing}} |<nowiki/><div class="bar-block" style="background-color: lightgreen;"></div>}} | ||
+ | {{#loop: i | 0 | {{#expr:{{#var:count}}-{{#var:current}}-{{#var:progressing}}}}|<div class="bar-block" style="background-color: salmon;"></div>}} | ||
</div> | </div> |