Help:Extension:ParserFunctions

The extension provides ten additional parser functions to supplement those already present in MediaWiki. All the parser functions provided by this extension take the form:
 *  

#if:

 *  

This function tests whether the first parameter is 'nonzero'. It evaluates to false if the test string is empty or contains only whitespace characters (space, newline, etc).


 *   &rarr;
 *   &rarr;
 *   &rarr;
 *   &rarr;

The test string is always interpreted as pure text, so mathematical expressions are not evaluated:


 *   &rarr;

Either or both the return values may be ommitted:


 *   &rarr;
 *  </tt> &rarr;
 *  </tt> &rarr;

#ifeq:
This parser function compares two strings and determines whether they are identically equal.


 *  </tt>

If both strings are valid numerical values, the strings are compared numerically:


 *  </tt> &rarr; 
 *  </tt> &rarr; 

Otherwise the comparison is made as text; this comparison is case sensitive:


 *  </tt> &rarr; 
 *  </tt> &rarr; 
 *  </tt> &rarr;