[Mediawiki-l] parserfunctions question: evaluate vs. display?

Daniel Barrett danb at VistaPrint.com
Wed Apr 9 16:04:49 UTC 2008


Hmmm, on our 1.12.0 installation, when we do:

{{#if:  {{#some-condition:}}  |  {{#some-big-computation:}} }}

then #some-big-computation is ALWAYS evaluated (but not necessarily
displayed), even if #some-condition is false.  I will try to create a
test case where #some-big-computation has an obvious side-effect (like
creating a file on disk) and show that it happens even when
#some-condition is false.

You asked if we might have the old parser enabled. How would this be
possible to do? (Or how to confirm we're using the new parser?)

DanB

-----Original Message-----
Brion Vibber writes:
> 2.	#some-big-computation is not evaluated at all

#2 (logical shortcut).

I can confirm this is how it works in both 1.12 and trunk (1.13 dev
branch).



More information about the MediaWiki-l mailing list