Actions

Template

ProgressBar: Difference between revisions

From Betamountain.org

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<div style="
 
  width:{{{width|75%}}};
<noinclude>
{{#ifeq: {{{center|yes}}} | yes |
<includeonly>{| width={{#if:{{{width|}}}|{{{width|}}}|50%}} align=center style="background:transparent"
  margin:auto;
|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
  text-align:center;}}">
|-
{{#ifeq: {{{header|yes}}} | yes
|
| <p>
{|style="border:1px solid gray" cellspacing=1 width=100% height=15x
  {{Big|1=
{{#ifeq:{{#if:{{{1|}}}|{{{1}}}|0}}|0| | {{!}}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}}%}}"{{!}} }}
  '''{{#expr: ( {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}}) * 100 round 1}}%'''
{{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}|100|| {{!}}style="background:#E2E2E2" {{!}} }}
  }}
|}
  {{{text|completed <small>(estimate)</small>}}}
|}</includeonly><noinclude>
  </p>
[[Category:Templates]]
}}
</noinclude>
<p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;">
  <span style="
    width: {{#expr: {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} * 100}}%;
    height: {{{height|2}}}px;
    background:{{{color1|#5FDB00}}};
    float:left;
    ">&nbsp;</span>
  <span style="
    width:{{#expr: 100 - {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} * 100}}%;
    height:{{{height|2}}}px;
    background:{{{color2|#efefef}}};
    float:left;
    ">&nbsp;</span>
</p>
</div>

Latest revision as of 11:09, 10 January 2018

20% completed (estimate)