JSPWiki logo
Strona główna
Zbieranina
Serwisy
Porady
Projekty
Humor sektora IT
TODO
Nowości
Ostatnie zmiany
Kontakt

Find pages
Unused pages
Undefined pages
Page Index

Set your name in
UserPreferences

Edit this page


Referenced by
JSP Wiki Plugins
Wiki Variables




JSPWiki v2.2.33


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

The current counter value is accessible also as a WikiVariable. The name of the variable is "counter", or "counter-<name>", if you have defined a counter name.

Parameters

  • name = counter name. You may define as many counters per page as you want; you just need to separate them with the counter name

Example

[{Counter}], [{Counter}], [{Counter}], [{Counter name='aa'}] produces

1, 2, 3, 1.

The value of "counter" at the end is 3 and the value of "counter-aa" is 1.


Back to JSPWikiPlugins.




Go to top   Edit this page   More info...   Attach file...
This page last changed on 19-Oct-2003 18:54:58 GMT by unknown.