From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This page has been transcluded from Template:Progress bar/Documentation.


Usage

This template displays a colored progress bar, visualizing the parameters given.

Main
  • progress: the amount of progress made (numerator)
  • total: the total progress allowable (denominator)
  • units: the units to display (optional; it's displayed as a percentage if this parameter isn't passed)
  • inner-text: custom override of the text to display (overrides units if both are used)
Styles
  • outer-color: color of the background of the bar (default is gray)
  • outer-border: color of the border around the progress bar (default is black; use "none" to omit border)
  • outer-style: extra styles for the outer progress bar
  • inner-color: color of the inner progress bar (default is yellow-green)
  • inner-font: color of the text inside
  • inner-style: extra styles for the inner progress bar

Examples

Simple With units
{{progress bar|progress=2|total=10}}
{{progress bar|progress=2|total=10|units=cookies}}
20%
2 cookies
Custom text Different styles
{{progress bar
|progress=2
|total=10
|inner-text=A couple cookies}}
{{progress bar
|progress=2
|total=10
|outer-color=white
|outer-border=red
|inner-color=black
|inner-font=yellow}}
A couple cookies
20%