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

imported>Vanisaac
m (→‎Custom total: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Jonesey95
m (Fix Linter errors using AutoEd)
10번째 줄: 10번째 줄:


=== Optional parameters ===
=== Optional parameters ===
*<tt>height</tt> = height of the progress bar in pixels; defaults to 2
*<code>height</code> = height of the progress bar in pixels; defaults to 2
*<tt>width</tt> = width of the progress bar; defaults to 75%
*<code>width</code> = width of the progress bar; defaults to 75%
*<tt>text</tt>  = message to display after %; defaults to: completed <small>(estimate)</small>
*<code>text</code>  = message to display after %; defaults to: completed <small>(estimate)</small>
*<tt>total</tt> = 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
*<tt>header</tt> = 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


=== Examples ===
=== Examples ===

2020년 6월 4일 (목) 03:14 판

모듈: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=75%}} :

5% completed (estimate)

   

Custom total

{{Progress bar|5|total=5}} :

100% completed (estimate)

   

package.lua 80번째 줄에서 Lua 오류: module 'Module:Navbox/configuration' not found.


• 현재 페이지 URL 줄이기