Templat:Progress bar/doc

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas

Pemakaian[sunting sumber]

{{Progress bar|<value>}}

Templat ini untuk menggambarkan statistik kemajuan yang dituangkan dalam bentuk baris. value untuk memasukan parameter berupa persen, dari 0 ke 0.01 atau 0.99 ke 1 atau 1.01 ke 99.99 atau 100. 14 berarti 14%, .14 akan menjadi 0.14%. Jika anda tidak memasukan value yang benar, akan kembali menjadi 0%.

Parameter penggunaan[sunting sumber]

  • height =
  • width = default hingga 75%
  • text = message to display after %; defaults to: completed (prakiraan)
  • 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

Contoh pemakaian[sunting sumber]

{{Progress bar
|{{#expr:(100-(({{PAGESINCAT:Mesir}})/280<!-- Here goes the number -->)*100)}}
|text = <small>(prakiraan)</small>
}}

80.4% (prakiraan)