Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Progress bar: Difference between revisions

Template page
i think this works
m make it so px isnt the only unit useable
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="width: {{{width|100}}}px;"><span class="nowrap">{{formatnum:{{{1|50}}}}} / {{formatnum:{{{2|100}}}}} {{small|''({{#expr:((1/2*100))}}%)''}}</span><div style="border: 1px solid #aaa; {{#if:{{{background-color|}}}|background-color: {{{background-color}}};}} height: 1em; position: relative;"><div style="background-color: #1c75bc; width: {{#expr:(({{{1|50}}}/{{{2|100}}})*100)}}%; height: .85em;"></div></div></div>
<includeonly><div style="width: {{{width|100px}}};"><span class="nowrap">{{formatnum:{{{amount|50}}}}} / {{formatnum:{{{total|100}}}}} {{small|''({{#expr: (({{{amount|50}}}/{{{total|100}}}*100)) round 0}}%)''}}</span><div style="border: 1px solid #aaa; {{#if:{{{background-color|}}}|background-color: {{{background-color}}};}} height: 1em; position: relative;"><div style="background-color: {{{bar-color|{{olb}}}}}; width: {{#expr:(({{{amount|50}}}/{{{total|100}}})*100)}}%; height: .85em;"></div></div></div></includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 21:42, 18 October 2024