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|{{trim|{{{1|0}}}}}}}{{#vardefine:count|{{trim|{{{2|7}}}}}}}{{#vardefine: w|{{#expr:(100.0 / {{#var:count}})-0.25}}}}{{#var:current}} {{#var:count}}<div class="bar"> | + | {{#vardefine:current|{{trim|{{{1|0}}}}}}}{{#vardefine:count|{{trim|{{{2|7}}}}}}}{{#vardefine: w|{{#expr:(100.0 / {{#var:count}})-0.25}}}}{{#var:current}} {{#var:count}} {{#loop: i | 0 | {{#var:current}} |{{#var:i}} }}<div class="bar"> |
{{#loop: i | 0 | {{#var:current}} |<nowiki/><div class="bar-block" style="background-color: green;"></div>}}{{#loop: i | 0 | {{#expr:{{#var:count}}-{{#var:current}}}}|<div class="bar-block"></div>}} | {{#loop: i | 0 | {{#var:current}} |<nowiki/><div class="bar-block" style="background-color: green;"></div>}}{{#loop: i | 0 | {{#expr:{{#var:count}}-{{#var:current}}}}|<div class="bar-block"></div>}} | ||
</div> | </div> |
Revision as of 21:34, 26 June 2021
0 7