Template:Workprogress
Jump to navigation
Jump to search
Usage
Template for a basic progress bar. eg.
{{workprogress|4.25|5|day}}
will produce:
85%
4.25/5 days
{{workprogress|7|26|file}}
will produce:
26.9%
7/26 files
{{workprogress|15|15|day}}
will produce:
Done!
15/15 days
You can leave the text printing out altogether by passing '-' as the unit, eg.
{{workprogress|15|20|-}}
will produce:
An additional parameter can specify the width of the progress bar - by default 200px. The width should be given in a CSS-recognisable format, eg.
{{workprogress|5|8|thing|100px}}
will produce:
62.5%
5/8 fishs
{{workprogress|1|7|day|10em}}
will produce:
14.3%
1/7 days
Further styles can be applied with a final 5th parameter
{{workprogress|5|8|-|100px|height:8px;color:transparent;float:none}}
will look like:
If you go over the total, it displays differently, eg.
{{workprogress|7|5}}
looks like:
140%
7/5