Extension:Loops

What can this extension do?
While an do-while loops similar to those used in programming languages.

Usage
By quirk or design, the preprocessor in v1.12alpha handles the first parameter differently than the rest, so the parser functions ignore it in order for them to work. See bug 12842.

The loop body repeatedly executes so long as the condition statement evaluates to non-white-space.


 * 1) dowhile operates just like #while except the loop body is guaranteed to execute at least once.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

ExtLoops::$maxLoops
This parameter set the maximum number of loops a page is allowed to perform. Setting it to a negative value lets the loops run within the limits of php's environment.