Extension:Autoincrement
|
Autoincrement Release status: stable |
|||
|---|---|---|---|
| Implementation | Parser extension | ||
| Description | A variable hook that adds an autoincrementing variable, {{AUTOINCREMENT}} | ||
| Author(s) | Ævar Arnfjörð Bjarmasontalk | ||
| MediaWiki | 1.12+ | ||
| Database changes | no | ||
| License | GPL | ||
| Download |
SVN [?]:
|
||
|
|||
| Check usage and version matrix | |||
The Autoincrement extension adds an autoincrementing variable, {{AUTOINCREMENT}}. Each time the hook is used on a page it will return a number increased by one from the last use.
Purpose and usage [edit]
This template can be used to aid in constructing complex templates, keep track of the number of entries in a table, or any other place you need an incrementing variable, especially in conjunction with ParserFunctions.
| Wiki Markup | Result | |||
|---|---|---|---|---|
| {{AUTOINCREMENT}}, {{AUTOINCREMENT}}, {{AUTOINCREMENT}} | 1, 2, 3 | |||
|
{| |
There are 3 animals listed in the table above. |
Installation [edit]
To install this, download the latest snapshot and extract it to your extensions directory, the add a line to your LocalSettings.php like
require_once( "$IP/extensions/Autoincrement/Autoincrement.php" );