Template:Progress bar
20% mapped (estimate)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
{{Progress bar|value}}
This template draws a progress bar. By default, the value
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.
This template might be useful to document map progress in <country>/Progress sites.
Optional parameters
- height = height of the progress bar in pixels; defaults to 2
- width = width of the progress bar; defaults to 75%
- suffix = message to display after %; defaults to: mapped (estimate)
- prefix = message to display before %; defaults to nothing. Useful for listing map features
- total = amount to use as the denominator (instead of 100), allows the template to compute the percentage on the fly
- header = no (or any value other than "yes", which is the default) suppresses the display of the percentage on the top line
- color1 = color of the completed part; defaults to red(<33%), yellow(<66%), green(<100%), lightgreen(=100%)
- color2 = color of the uncompleted part; defaults to gray
- comment = message below bar; defaults to nothing.
Examples
Default configuration
{{Progress bar|5}}
:
5% mapped (estimate)
With custom header text
{{Progress bar|5|text=done}}
:
5% mapped (estimate)
Without header text
{{Progress bar|5|header=no|suffix=does not display here}}
:
Changing all text
{{Progress bar|5|prefix=Buildings:|suffix=done|comment=Missing features mostly along the shores}}
:
Buildings: 5% done
Missing features mostly along the shores
Custom height and width
{{Progress bar|80|height=4|width=75%}}
:
5% mapped (estimate)
Custom total
{{Progress bar|5|total=5}}
:
100% mapped (estimate)