Διαφορά μεταξύ των αναθεωρήσεων του «Πρότυπο:Progress bar»

Από wiki.pirateparty.gr
Μετάβαση στην πλοήγηση Πήδηση στην αναζήτηση
Γραμμή 3: Γραμμή 3:


== Usage ==
== Usage ==
This template draws a progress bar.
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%.

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%.
== Optional parameters ==
== Optional parameters ==

height=
height=

width = defaults to 75%
width = defaults to 75%

text = message to display after %; defaults to: completed (estimate)
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
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
header = no (or any value other than "yes", which is the default) suppresses the display of the percentage on the top line

Αναθεώρηση της 02:54, 4 Δεκεμβρίου 2012

{{#ifeq: yes | yes|

{{#expr: ( 20 / 100) * 100 round 1}}% completed (estimate)

}}

   


Usage

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%.

Optional parameters

height=

width = 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