모듈:Message box/ombox.css 문서에 내용이 없습니다.
This is a documentation subpage for 틀:Progress bar. It contains usage information, categories and other content that is not part of the original 틀 page. |
[[Category:MediaWiki documentation pages{{#translation:}}]] 모듈:Message box/ombox.css 문서에 내용이 없습니다.
This 틀 employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Usage[원본 편집]
{{Progress bar|value}}
This template draws a progress bar. By default, the value
to supply as the parameter is the percent, from 0 to 100 (e.g. 1 would mean 1%, .1 would be 0.1%). The text label of the progress bar will always be rounded to the nearest tenth of a percent (rounding up if the hundreds digit is 5; e.g. 50.15 would round to 50.2%). If a value isn't specified or is invalid, the bar displays 0%. Values greater than 100% will display incorrectly, although the text label will be correct.
Optional parameters[원본 편집]
height
= height of the progress bar in pixels; defaults to 2width
= width of the progress bar; defaults to 75%text
= message to display after %; defaults to: completed (estimate)total
= amount to use as the denominator (instead of 100), allows the template to compute the percentage on the flyheader
= no (or any value other than "yes", which is the default) suppresses the display of the percentage on the top line
Examples[원본 편집]
Default configuration[원본 편집]
{{Progress bar|5}}
:
5% completed (estimate)
With custom header text[원본 편집]
{{Progress bar|5|text=done}}
:
5% done
Without header text[원본 편집]
{{Progress bar|80|header=no|text=does not display here}}
:
Custom height and width[원본 편집]
{{Progress bar|80|height=4|width=50%}}
:
80% completed (estimate)
Custom total[원본 편집]
{{Progress bar|5|total=5}}
:
100% completed (estimate)
package.lua 80번째 줄에서 Lua 오류: module 'Module:Navbox/configuration' not found.