How To Use Autoincrement: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
(Created page with '{{RightToC}} {{Related|Help:Contents|Wiki Markup Reference|Wiki Templates}} When constructing a template, you may need to use a variable that increments from one use to the next...')
 
imported>Tlosk
(Created page with '{{RightToC}} {{Related|Help:Contents|Wiki Markup Reference|Wiki Templates}} When constructing a template, you may need to use a variable that increments from one use to the next...')
 
(No difference)

Latest revision as of 09:07, 20 May 2009

Related topics: Help:Contents, Wiki Markup Reference, Wiki Templates

When constructing a template, you may need to use a variable that increments from one use to the next. This function adds 1 to the value each time it is used. This function requires the Autoincrement Extension be installed.

Syntax

{{AUTOINCREMENT}}

Usage

For example:

* I went to the store {{AUTOINCREMENT}} time.
* I went to the store {{AUTOINCREMENT}} times.
* I went to the store {{AUTOINCREMENT}} times.
* I went to the store {{AUTOINCREMENT}} times.

displays as:

  • I went to the store time.
  • I went to the store times.
  • I went to the store times.
  • I went to the store times.