Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

ProgressBar

Summary: Create visual percentage indicators with (:progress xxx:) markup.
Version: 2006-12-06 - v1.0
Prerequisites: pmwiki 2
Status: beta
Maintainer: MateuszCzaplinski
Categories: Markup, (Update me - enable script on this page)

Question

How can I illustrate the progress of for instance a task?

Answer

You can use the progress bar markup. It uses the following syntax:

(:progress percents-number:) (note: don't use the percent sign '%')
or:
(:progress tasks-done/all-tasks :)
Examples:
(:progress 30:)
(:progress 3/10:)

To install, do as usually:

  1. download progressbar.phpΔ
  2. put the file in your "cookbook/" directory
  3. in your "local/config.php" file add a line of
    include_once("$FarmD/cookbook/progressbar.php");

Notes

  • This recipe uses only CSS and additional HTML to display progress bars. They should simply disappear in textual browsers, so you might want to put additional textual indicators sideways (like: "30%") for users browsing with text-only browsers.
  • I've removed the old recipe existing here, as it was quite empty.
  • This recipe was last tested on PmWiki version: 2.0
  • This recipe requires at least PmWiki version: ?
  • This recipe, version...... was installed here the...(date)

Release Notes

  • 2006-12-06 v1.0 - initial

Comments

By the way; I'm very interested in the reception of my recipes. Therefore, please feel encouraged to write a word or two where/how you use this recipe, if you fancy :). But only if you have time - no force intended here. Greetz, M.

See Also

Contributors

Edit - History - Print - Recent Changes - Search
Page last modified on November 05, 2007, at 06:26 PM