DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:dokupp

This is an old revision of the document!


dokupp Plugin

Compatible with DokuWiki

≥ //Lemming//

plugin 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 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.

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.

The following shows the number @#@, and this @#@ showed the next number. After all that comes @#@.

If 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.
  • 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 @#@.

Only one counter can exist in a page. :!: Using insertion plugins like plugin: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?

plugin/dokupp.1296678299.txt.gz · Last modified: 2011-02-02 21:24 by ryan.chappelle

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