Template for displaying progress bars.
Usage[]
{{Progress|60|120}}
Parameters[]
<unnamed 1>
The current progress.
(default: "100")
<unnamed 2>The total or goal which is being worked towards.
(default: "transparent")
bg colorMain background color of the bar. Accepts standard HTML color names or RGB hex triplets.
(default: "#AAAAAA")
border colorColor of the box border. Accepts standard HTML color names or RGB hex triplets.
(default: "20")
heightHeight of the bar in px.
(default: "percent")
legendDetermines how the legend, i.e. the textual representation of the progress, is displayed.
Available options:
- absolute: Progress is displayed as an absolute (e.g. "55/100").
- none: No legend displayed.
- percent: Progress is displayed as a percentage (e.g. "87%").
(default: "#00FF00")
progress colorColor of the bar representing the achieved progress. Accepts standard HTML color names or RGB hex triplets.
(default: "#000000")
text colorColor of the text within the bar, i.e. the legend. Accepts standard HTML color names or RGB hex triplets.
(default: "200")
widthWidth of the bar in px.
Examples[]
Standard usage[]
{{Progress|55|120}}
results in:
45.8%
Legend displayed as absolute[]
{{Progress|55|120|legend=absolute}}
results in:
55/120
Different colors[]
{{Progress|55|120|bg color=blue|border color=red|progress color=yellow|text color=#00FF00}}
results in:
45.8%
Different width/height[]
{{Progress|55|120|width=400|height=30}}
results in:
45.8%