Last modified: 2006-07-04 09:09:50 UTC
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.
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.
Parser functions.