Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:PercentageBar/doc: Difference between revisions

Template page
initial edit
(No difference)

Revision as of 08:10, 7 November 2018

Description
This template creates a colored bar depicting a percentage value.
Dependencies
Syntax
Type {{PercentageBar|<percentage>|<primary color>|<secondary color>}} into a table cell.
Sample output
{| class="wikitable"
|-
| {{PercentageBar|35|Cyan|DarkCyan}}
|-
| {{PercentageBar|50|OrangeRed|#592b1a}}
|-
| {{PercentageBar|60|Silver|DimGrey}}
|-
| {{PercentageBar|0|Orange|#59431a}}
|}
gives...
35%
50%
60%
 
See also