summaryrefslogtreecommitdiff
path: root/ikiwiki/directive/progress.mdwn
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-10-22 21:05:40 +0200
committerJonas Smedegaard <dr@jones.dk>2008-10-22 21:05:40 +0200
commit6634fec4377c1d358edc87c3819c280a9e273380 (patch)
tree97e0ad46fbe136e60135248af3b0cf768dd28f00 /ikiwiki/directive/progress.mdwn
Init with ikiwiki 2.67.
Diffstat (limited to 'ikiwiki/directive/progress.mdwn')
-rw-r--r--ikiwiki/directive/progress.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/ikiwiki/directive/progress.mdwn b/ikiwiki/directive/progress.mdwn
new file mode 100644
index 0000000..529f1c3
--- /dev/null
+++ b/ikiwiki/directive/progress.mdwn
@@ -0,0 +1,18 @@
+The `progress` directive is supplied by the [[!iki plugins/progress desc=progress]] plugin.
+
+This directive generates a progress bar.
+
+There are two possible parameter sets. The first is a single parameter
+"percent" which holds a percentage figure of how complete the progress bar is.
+
+The second possible set of parameters is a pair of [[ikiwiki/PageSpec]]s,
+`totalpages` and `donepages`. The directive counts the number of
+pages in each pagespec and shows the percentage of the total pages that are
+done.
+
+For example, to show what percentage of pages have
+discussion pages:
+
+ \[[!progress totalpages="* and !*/Discussion" donepages="*/Discussion"]]
+
+[[!meta robots="noindex, follow"]]