Template:Progressbar/doc

From MC Public Wiki
Jump to navigation Jump to search

{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}

Template-info.png Documentation

This template creates a progress bar.

Parameter Function Default value
1 Integer progress value between 0 and 32. Empty tab = 0, half tab = 1, full tab = 2, see examples below. 0
2 Width of each icon in CSS units like "px" or "em". 18px
Code Result
{{progressbar}} File:Empty Pb.png
{{progressbar|0|9px}} File:Empty Pb.png
{{progressbar|1}} File:Half Pb.png
{{progressbar|2}} File:Pb.png
{{progressbar|5}} File:Pb.pngFile:Pb.pngFile:Half Pb.png
{{progressbar|20}} File:Pb.pngFile:Pb.pngFile:Pb.pngFile:Pb.pngFile:Pb.pngFile:Pb.pngFile:Pb.pngFile:Pb.pngFile:Pb.pngFile:Pb.png
{{progressbar|10|10px}} File:Pb.pngFile:Pb.pngFile:Pb.pngFile:Pb.pngFile:Pb.png
{{progressbar|6|48px}} File:Pb.pngFile:Pb.pngFile:Pb.png

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.