Extension:MikFunctions

The MikFunctions extension defines an additional set of parser functions that provide dynamic functionality and cannot be cached.

NOTE: This extension currently works only on *NIX servers

Install
NOTE: After installing the extension a directory named "seqences" should be created in the extension folder and write permissions shuold be granted for the wiki directory owner.

Example on linux:

mkdir ../extensions/MikFunctions/sequences;

chown apache:apache ../extensions/MikFunctions/sequences;

Usage
This module defines four functions: seqnext. All of these functions operate in constant time.

#seqnext:
The #seqnext function returns the value of next integer int the defined sequence. The syntax is:

.

The first time the function is used a sequence with the specified seqname will be created returning 1.

Every time the function is called an incremental value of seqname will be returned.

When valpattern and fillchar values are set: if the length of the incremental value of seqname is smaller than valpattern string length, the returned value will match valpattern length replacing with fillchar the missing values. (example will return XX45 when called the fourtyfifth times.