move back demo and add example

master
Joey Hess 2008-09-11 17:53:21 -04:00
parent aa37d64d6a
commit d48e55c3d9
2 changed files with 10 additions and 7 deletions

View File

@ -1,5 +1,10 @@
[[!template id=plugin name=pagecount author="[[Joey]]"]]
[[!tag type/meta]]
This plugin implements the [[ikiwiki/directive/pagecount]] [[ikiwiki/directive]].
The directive displays number of pages currently in the wiki.
This plugin provides the [[ikiwiki/directive/pagecount]]
[[ikiwiki/directive]], which displays the number of pages
currently in the wiki.
If it is turned on it can tell us that this wiki includes
[[!pagecount pages="* and !recentchanges"]]
pages, of which [[!pagecount pages="*/Discussion"]] are discussion pages.

View File

@ -1,10 +1,8 @@
The `pagecount` directive is supplied by the [[!iki plugins/pagecount]] plugin.
This directive counts pages currently in the wiki.
This directive counts pages currently in the wiki. Example:
\[[!pagecount pages="*"]]
The optional parameter "pages" can be a [[ikiwiki/PageSpec]] specifying the
pages to count, default is to count them all.
If it is turned on it can tell us that this wiki includes
[[!pagecount pages="* and !recentchanges"]]
pages, of which [[!pagecount pages="*/Discussion"]] are discussion pages.