This page (revision-12) was last changed on 23-Apr-2022 17:05 by Harry Metske

This page was created on 23-Apr-2022 17:06 by UnknownAuthor

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
12 23-Apr-2022 17:05 1 KB Harry Metske to previous
11 23-Apr-2022 17:06 1 KB anoniempje to previous | to last
10 23-Apr-2022 17:06 1 KB Harry Metske to previous | to last
9 23-Apr-2022 17:06 1 KB Harry Metske to previous | to last
8 23-Apr-2022 17:06 1 KB Harry Metske to previous | to last
7 23-Apr-2022 17:06 1 KB Harry Metske to previous | to last
6 23-Apr-2022 17:06 1 KB Harry Metske to previous | to last
5 23-Apr-2022 17:06 1 KB Harry Metske to previous | to last
4 23-Apr-2022 17:06 1 KB Harry Metske to previous | to last
3 23-Apr-2022 17:06 1 KB Harry Metske to previous | to last
2 23-Apr-2022 17:06 1 KB Harry Metske to previous | to last
1 23-Apr-2022 17:06 907 bytes UnknownAuthor to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 changed 2 lines
A simple counter that starts counting at 1 at the top of the page, and each time it is invoked, will increase its value by one.
These counters are transient, and relative to the current page view only - i.e. two persons viewing the same page at the same time get their own counters.
!!Counter
A simple counter that starts counting at 1 at the top of the page, and each time it is invoked, will increase its value.
These counters are transient, and relevant to the current page view only - i.e. two persons viewing the same page at the same time get their own counters.
At line 11 changed one line
* __showResult__ = ''true/false'' (Since 2.8) Can have the value true or false, and determines if the counter value should be visible on the page, the default is true. This parameter is optional.
* __showResult__ = ''true/false'' (Since 2.8) Can be true or false, and determines if the counter value should be visible on the page, the default is true. This parameter is optional.
At line 13 changed one line
!Example
!Examples
At line 15 changed 16 lines
[[{Counter}], [[{Counter}], [[{Counter}], [[{Counter}], [[{Counter name='aa'}]
produces
[{Counter}], [{Counter}], [{Counter}], [{Counter}], [{Counter name='aa'}]
The value of "counter" at the end is [{$counter}] and the value of "counter-aa" is [{$counter-aa}].
__This__
{{{
[{$counter}], [{$counter-aa}]
}}}
__produces this__\\
[{$counter}], [{$counter-aa}]
||Specified value|| Result on page|| Comments
|[[{Counter}], [[{Counter}], [[{Counter}], [[{Counter name='aa'}] |[{Counter}], [{Counter}], [{Counter}], [{Counter name='aa'}] |The value of "counter" at the end is [{$counter}] and the value of "counter-aa" is [{$counter-aa}].
|[[{$counter}], [[{$counter-aa}] |[{$counter}], [{$counter-aa}]|access the counter value via the variable name (without increasing it)
| .[[{Counter showResult=false}]. [[{Counter}]. | .[{Counter showResult=false}].[{Counter}].| the first result(4) is not visible, the second is visible
| [[{Counter start=15}] [[{Counter}] | [{Counter start=15}] [{Counter}]| set the offset to 15 and start counting
| [[{Counter }] [[{Counter increment=10}] | [{Counter }] [{Counter increment=10}]| the second invocation increases with the specified value of 10
At line 32 changed one line
JSPWikiCorePlugins
[JSPWikiPlugins|http://www.jspwiki.org/JSPWikiPlugins]