Difference between revisions of "Template:Progress bar"

From GATE
 
Line 38: Line 38:
 
{{Progress_bar|14|total=200}}<br />
 
{{Progress_bar|14|total=200}}<br />
 
<br />
 
<br />
 +
 +
Instead of numeric values, it is also possible to insert [[mw:Help:Magic_words#Variables|variables]]. E.g.:<br />
 +
 +
<code><nowiki>{{Progress_bar|{{formatnum:{{PAGESINCATEGORY:EBC Proofread|all}}|R}}|total={{formatnum:{{PAGESINCATEGORY:EBC Letters|all}}|R}}}}</nowiki></code><br />
 +
 +
gives this:<br />
 +
 +
{{Progress_bar|{{formatnum:{{PAGESINCATEGORY:EBC Proofread|all}}|R}}|total={{formatnum:{{PAGESINCATEGORY:EBC Letters|all}}|R}}}}<br />
 +
 
Other configurable parameters:
 
Other configurable parameters:
 
* height =
 
* height =

Latest revision as of 08:31, 16 January 2018


Use as follows:

{{Progress_bar|<numeric value>|total=<numeric value>}}

E.g.:

{{Progress_bar|14|total=200}}

gives this:

7% completed

   



Instead of numeric values, it is also possible to insert variables. E.g.:

{{Progress_bar|{{formatnum:{{PAGESINCATEGORY:EBC Proofread|all}}|R}}|total={{formatnum:{{PAGESINCATEGORY:EBC Letters|all}}|R}}}}

gives this:

55.2% completed

   


Other configurable 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