Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Template:ProgressBar

From Minecraft Wiki
Jump to: navigation, search
[view | edit | history | purge]Documentation

This template shows a percentage completed between two values in the form of a progress bar. This may be useful for showing the completion of a project.

Usage[edit]

{{ProgressBar
|completed things
|total things
|width=bar width with measurement (e.g. %, px)
|type=Replaces "pages" in the text above the bar
|text=Replaces the entire text shown above the bar
|notext=Don't show the text above the bar
|style=Overall styling
|textstyle=Text styling
|barstyle=Progress bar styling
|completedstyle=Completed bar styling
}}

The completed things, total things and percentage of completed things can be shown in the text by using these variables in the text parameter:

$1, number of completed items
$2, the number of total items
$%, percentage completed

Examples[edit]

{{ProgressBar|50|100}}

50 of 100 pages have been completed



{{ProgressBar
|120
|200
|width=200px
|style=margin: 0
|barstyle=border-color: #CCC; background-color: #F9F9F9
|completedstyle=background-color: #729FCF
|notext=1
}}


{{ProgressBar
|50
|38
|width=80%
|type=item pages
}}

50 of 38 item pages have been completed



{{ProgressBar
|12
|60
|width=80%
|text=Of the $2 entity pages: <big>'''$%'''</big> have been processed by project members.
}}

Of the 60 entity pages: 20% have been processed by project members.


[view | edit | history | purge]The above documentation is transcluded from Template:ProgressBar/doc.