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
add bar-color and background-color
m make it so px isnt the only unit useable
 
Line 1: Line 1:
<includeonly><div style="width: {{{width|100}}}px;"><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>
<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