Author: upssdr
Description:
Using {{#ifeq: 03|3|eq|ne}}, it gives eq but not ne. This shows what ifeq compares are
not strings but numbers.
According to m:ParserFunctions#ifeq, ifeq should compares strings other than numbers.
But in http://meta.wikimedia.org/wiki/User:Upssdr/tmp you see how it is.
In ParserFunctions.php (http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/
ParserFunctions/ParserFunctions.php?view=markup&pathrev=13773), the ifeq function is:
if ( $left == $right ) {
return $then;
} else {
return $else;
}.
The "==" may be the cause of problem.
Version: unspecified
Severity: normal
OS: Windows 2000
Platform: PC
URL: http://meta.wikimedia.org/wiki/User:Upssdr/tmp