Template:Progress bar/Documentation
From StrategyWiki, the video game walkthrough and strategy guide wiki
Usage[edit]
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[edit]
Simple | With units |
---|---|
{{progress bar|progress=2|total=10}} |
{{progress bar|progress=2|total=10|units=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}} |