Difference between revisions of "Template:Progress bar"

From BlogNomic Wiki
Jump to navigation Jump to search
(a fix for negative values)
Line 27: Line 27:
  
 
{{progress bar|3|7|color=#f90}}
 
{{progress bar|3|7|color=#f90}}
 +
[[Category:Display templates]]
 
</noinclude>
 
</noinclude>

Revision as of 17:41, 3 August 2024


Template for displaying a progress bar, for use on a gamestate page.

Usage

Regular

{{progress bar|3|7}} produces:

  3/7  


Overfilled bars are capped at the maximum:

  10/7  


Negative numbers show as empty:

  -2/7  


Specify units

{{progress bar|3|7|players}} produces:

  3/7 players  


Colour

{{progress bar|3|7|color=#f90}} produces:

  3/7