Extension:Alternate

Description
This is an choose-the-text tag... It's the continuity of the Extension:NumerAlpha which counts how many tags there are in the source... Well this one chose one text from two. If the tag is not even... It chooses the text1 if it is... it chooses the text2.

License
License not specified... you can use it, modify it, distribute it, etc.

Status
experimental

Why this extension?
Well I use it to list characters so the pictures can be one on the left, the other on the right... etc. You can reset it using the parameter reset, and restart the count with the parameter begin

usage
example: from one model I use...

installation
You can install it by


 * copying the following php code:
 * save it with the Alternate.php filename.
 * copy it into your extensions directory
 * and add the inclusion in your [localsettings.php] file. &rarr; require_once("$IP/extensions/Alternate.php");