From Fedora Project Wiki

(utilize the tempdoc template)
(Modernized this a bit, but also made it much more lean. It's now just a progress bar without text)
 
Line 1: Line 1:
{| style="border: 1px solid black" cellspacing=1 width={{{width|75%}}} height=15x align=center
+
<onlyinclude><div style="width:{{{width|100%}}}; height:{{{height|12px}}}; border: 1px solid black; background-color: #FF7F50; margin-bottom:{{{margin|1em}}}">
|+ <big>'''{{{1|0}}}%'''</big>{{{Text| completed <small>(estimate)</small>}}}
+
  <div style="width:{{{1|0}}}%; height:100%; background-color:#7FFF00;"></div>
|align=center width=0.{{{1|000.00}}}% style=background:#7fff00|
+
</div></onlyinclude>
|align=center width={{ #expr: 100-{{{1|000.00}}}}}% style=background:#ff7f50|
+
 
|}<noinclude>{{tempdoc}}</noinclude>
+
{{tempdoc}}
 +
[[Category:Templates]]

Latest revision as of 08:18, 29 June 2010

Template documentation [edit]

This documentation is transcluded from Template:Progress bar/doc. It will not be transcluded on pages that use this template.

This draws a progress bar, the value to supply as the parameter is the percent, from 0 to 0.01 or 0.99 to 1 or 1.01 to 99.99 or 100. 14 would mean 14%, .14 would be 0.14%. If you don't specify a value, it returns 0%.

Options:

  • Width: defaults to 75%
  • Text: message to display after %; defaults to: completed (estimate)
This template was liberated from the Wikipedia template of the same name