Class Counter

java.lang.Object
org.apache.wiki.plugin.Counter
All Implemented Interfaces:
Plugin

public class Counter extends Object implements Plugin
Provides a page-specific counter, it is reset every time a page is rendered, so it is not usable as a hitcounter.
Stores a variable in the WikiContext called "counter", with the name of the optionally specified variable "name".
For example: If name is "thispage", then the variable name is called "counter-thispage".

Parameters :

  • name - Name of the counter. Optional.
  • increment - The amount to increment, may be a negative value, default is 1. Optional.
  • showResult - Should the counter value be visible on the page, default is true. Optional.
Since:
1.9.30