Template:Percentage bar: Difference between revisions
Jump to navigation
Jump to search
fix text color in dark mode; this generally works but may cause problems, in which case revert or try specifying a different CSS value |
m 1 revision imported |
||
(No difference)
| |||
Latest revision as of 02:06, 20 July 2026
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
Usage
- Normal usage
{{Percentage bar|0}}→{{Percentage bar|50}}→{{Percentage bar|100}}→{{Percentage bar|50.5}}→
- With label
{{Percentage bar|50|label}}→{{Percentage bar|50|}}→
- With color
{{Percentage bar|50||FF0000}}→{{Percentage bar|50|hex=FF0000}}→{{Percentage bar|50|c=red}}→{{Percentage bar|50|hex=FF0000}}→{{Percentage bar|50|c=red}}→
- With width
{{Percentage bar|50|width=200}}→{{Percentage bar|50|width=25%}}→{{Percentage bar|50|width=55%}}→{{Percentage bar|50|width=75%}}→{{Percentage bar|50|width=100%}}→{{Percentage bar|50.5|width=100%}}→