DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:dokupp

This is an old revision of the document!


DokuPlusPlus Plugin

Compatible with DokuWiki

≥ Lemming

plugin DokuPP (DokuPlusPlus) provides automatic counters

Last updated on
2011-02-02
Provides
Syntax

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

Tagged with counter, formatting, numbering

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.

Other Plugins by
Luis Machuca:
progrecss
tooltip
clock
divalign2
countdown
noiewarning
hide
gil

FAQ

No questions yet?

Discussion

No discussion yet?

plugin/dokupp.1379662320.txt.gz · Last modified: 2013-09-20 09:32 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki