Template:Progress bar

  

Description
This template allows you to create a highly customizable progress bar anywhere in a wiki page. Just call it this way:

Calculation methods
There are two methods you can use to make your bar represent a progression.

The first method is by simply specifying the  parameter. You specify the percentage and the bar reflects it. Simple.

The second method can be used when you want to display a bar showing progression through a finite set of values. You give the,   and   parameters, and the percentage is calculated using the following formula:



If both methods are used, the first one takes precedence.

How the text displayed on the bar and in the tooltip is determined
The tooltip and the bar are the two "zones" where text is displayed on the progression bar. Each one has its own "master parameter",  for the tooltip and   for the bar. If you provide one of these parameters, you will see the text you entered in the corresponding area.

If you skip one of these parameters (or both), the text which is displayed is determined automatically. It consists of the percentage represented by the bar (whether given directly through the first method or calculated through the second), followed by the content of the  parameter if specified. However, if you used the second calculation method, then you can force the text to show the content of the  parameter instead of the percentage, by adding the   parameter to your template call.

Note: to see the tooltip, just put your mouse over the bar. A little box containing the tooltip text should appear.