Template:Progress bar/doc

Usage


This template draws a progress bar. By default, the  to supply as the parameter is the percent, from 0 to 100 (e.g. 1 would mean 1%, .1 would be 0.1%). The text label of the progress bar will always be rounded to the nearest tenth of a percent (rounding up if the hundreds digit is 5; e.g. 50.15 would round to 50.2%). If a value isn't specified or is invalid, the bar displays 0%. Values greater than 100% will display incorrectly, although the text label will be correct.

Optional parameters

 * = height of the progress bar in pixels; defaults to 2
 * = width of the progress bar; defaults to 75%
 * = message to display after %; defaults to: completed (estimate)
 * = amount to use as the denominator (instead of 100), allows the template to compute the percentage on the fly
 * = no (or any value other than "yes", which is the default) suppresses the display of the percentage on the top line
 * = the color of the filled portion of the progress bar
 * = the color of the background of the progress bar