This is an old revision of the document!
Table of Contents
DokuPlusPlus Plugin
Compatible with DokuWiki
≥ Lemming
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to autonumbering
Installation
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
Examples/Usage
See the plugin in action in the Official Demo Page.
Counter
You use the @#@
tag in order to insert an automatic counter. Every time you invoke this syntax, the counter is increased and the next number is displayed.
This creates a row of numbers starting at zero: @#@, @#@, @#@, @#@, @#@, @#@ and @#@.
Using this snippet you should see:
This creates a row of numbers starting at zero: 0, 1, 2, 3, 4, 5 and 6.
Reinitialize
Default the counter starts at zero. To start at a higher value you put first @#=number@
.
@#=5@ The following shows the number @#@, and this @#@ showed the next number. After all that comes @#@.
Half way the counter was initialized to 5, for example, you should see this:
The following shows the number 5, and this 6 showed the next number. After all that comes 7.
Syntax
In the current version (dokupp-0
) the following syntax is allowed:
- Use
@#=number@
to (re)initialize the counter.- When left out the counter starts at zero
- You can reinitialize the counter as much as you like.
- Use
@#@
to invoke the counter and display its current value.
Initializing the counter (this produces no observable output by default):
@#=5@ // initializes with the value 5//
Invoking the counter:
The following shows the number @#@, and this @#@ showed the next number. After all that comes @#@.
Limitations
Only one counter can exist in a page. Therefore it is not possible to have another nested counter.
Using insertion plugins like include may break the display of the counter.
Development
This plugin is currently experimental and it is in a very early stage of development. Check the official demo page in order to see what do I have in store for this plugin.
Caveats, bugs and fixes, sample snapshots and a ChangeLog are provided at the official demo site.
FAQ
No questions yet?
Discussion
No discussion yet?