Template:Percentage bar/doc

From the Portal Wiki
< Template:Percentage bar
Revision as of 09:09, 25 April 2011 by RJackson (talk | contribs) (TF Wiki, eat COPYPASTA)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template creates a simple status bar representing the completion percent of anything. By default this template assumes that the bar goes from 0% to 100%, so in use:

{{Percentage bar|25}}

generates:

25%  

However the top end can be overridden by specifying the total argument, so in this case:

{{Percentage bar|25|total=200}}

generates:

12%  

As 25 of 200 is 12%, rounded.