Template:Progress bar/Documentation
From StrategyWiki, the video game walkthrough and strategy guide wiki
Usage
This template displays a coloured progress bar, visualising the parameters given.
- progress: the amount of progress made (denominator)
- total: the total progress allowable (numerator)
- units: the units to display (optional; it's displayed as a percentage if this parameter isn't passed)
- subunits: the subunits to display if progress is less than 1 (optional)
- supraunits: the supraunits to display if progress is greater than or equal to total (optional)
- ratio: the number of subunits in a unit and units in a supraunit, for use with subunits and supraunits
Simple examples
{{progress bar|progress=15|total=30}}
{{progress bar|progress=69|total=70|units=GiB}}
Ratio-based examples
{{progress bar|progress=0.001|total=70|units=MiB|subunits=KiB|supraunits=GiB|ratio=1024}}
{{progress bar|progress=2048|total=4096|units=MiB|subunits=KiB|supraunits=GiB|ratio=1024}}