Page MenuHomePhabricator

Add conditional statements
Closed, ResolvedPublic

Description

Author: kellen

Description:
Please add conditional statements to mediawiki. Simple If-else will do.

These would be most useful for templates with named parameters, such that values
could be omitted and the template could more intelligently display the contents
without ugly {{{VARNAME}}} output. On the wikibooks cookbook, for example, this
could be used to show a different "Recipe Summary" for recipes that have an
Image location passed as a variable, without needed a distinct template for this
purpose.

I hope this isn't getting too "programmy" for mediawiki. I didn't see this in
any resolved bugs.


Version: unspecified
Severity: enhancement

Details

Reference
bz3195

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:46 PM
bzimport set Reference to bz3195.
bzimport added a subscriber: Unknown Object (MLST).

Please see the [[Template:Qif]] or [[b:Template:If]] (although the Qif template
is supposedly more efficient, since it doesn't call an auxiliary template).
There is also a specialized [[m:Template:If defined call]] template.

robchur wrote:

Parser functions.