틀:Progress bar/doc: 두 판 사이의 차이

imported>Scott
imported>JsfasdF252
correct examples
 
(사용자 11명의 중간 판 14개는 보이지 않습니다)
4번째 줄: 4번째 줄:
{{Esoteric}}
{{Esoteric}}


=== Usage ===
== Usage ==
:<code>'''<nowiki>{{</nowiki>Progress bar|'''''value'''''<nowiki>}}</nowiki>'''</code>


:This template draws a progress bar. The value to supply as the parameter is the percent, from 0 to 0.01 or 0.99 to 1 or 1.01 to 99.99 or 100.  14 would mean 14%, .14 would be 0.14%. If you don't specify a value, it returns 0%.
This template draws a progress bar. By default, the <code>value</code> 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:
=== Optional parameters ===
:height=
*<code>height</code> = height of the progress bar in pixels; defaults to 2
:width = defaults to 75%
*<code>width</code> = width of the progress bar; defaults to 75%
:text  = message to display after %; defaults to: completed <small>(estimate)</small>
*<code>text</code> = message to display after %; defaults to: completed <small>(estimate)</small>
:total = amount to use as the denominator (instead of 100), allows the template to compute the percentage on the fly
*<code>total</code> = amount to use as the denominator (instead of 100), allows the template to compute the percentage on the fly
:header = no (or any value other than "yes", which is the default) suppresses the display of the percentage on the top line
*<code>header</code> = no (or any value other than "yes", which is the default) suppresses the display of the percentage on the top line


=== See also ===
=== Examples ===
* {{t1|Backlog progress bar}}
* {{tl|Percentage bar}}
* {{tl|Percent-done}}
* {{tl|Progress}}
* {{tl|Progress box}}
* {{tl|Progression}}
* {{tl|Progress meter}}
* {{tl|Composition bar}}


<includeonly>
==== Default configuration ====
<code><nowiki>{{Progress bar|5}}</nowiki></code> :
{{Progress bar|5}}
 
==== With custom header text ====
<code><nowiki>{{Progress bar|5|text=done}}</nowiki></code> :
{{Progress bar|5|text=done}}
 
==== Without header text ====
<code><nowiki>{{Progress bar|80|header=no|text=does not display here}}</nowiki></code> :
{{Progress bar|80|header=no|text=does not display here}}
 
==== Custom height and width ====
<code><nowiki>{{Progress bar|80|height=4|width=50%}}</nowiki></code> :
{{Progress bar|80|height=4|width=50%}}
 
==== Custom total ====
<code><nowiki>{{Progress bar|5|total=5}}</nowiki></code> :
{{Progress bar|5|total=5}}
 
{{Progress templates}}
 
<includeonly>{{Sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikipedia utility templates]]
[[Category:Wikipedia utility templates]]
 
[[Category:Wikipedia progress templates]]
[[fr:Barre de progression]]
}}</includeonly>
[[pt:Predefinição:Barradeprogresso]]
[[th:แม่แบบ:Progress bar]]
</includeonly>

2020년 11월 17일 (화) 00:07 기준 최신판

모듈:Message box/ombox.css 문서에 내용이 없습니다.

[[Category:MediaWiki documentation pages{{#translation:}}]] 모듈:Message box/ombox.css 문서에 내용이 없습니다.

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 2
  • width = 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 fly
  • header = 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.


최근 바뀜

더 보기