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

Daniel Barrett danb at VistaPrint.com
Tue Apr 8 14:07:09 UTC 2008


In a parserfunctions statement like this:

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

if #some-condition is false, which of the following should happen?

1.	#some-big-computation gets fully evaluated, but results are not
displayed
2.	#some-big-computation is not evaluated at all

Looks like choice #1 is happening in MW 1.12.0, which is bad if
#some-big-computation has side-effects or is very expensive.  Is this
correct behavior?

Thanks,
DanB


More information about the MediaWiki-l mailing list