Last modified: 2006-07-04 09:09:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5195, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3195 - Add conditional statements
Add conditional statements
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 2376
  Show dependency treegraph
 
Reported: 2005-08-19 04:51 UTC by Kellen
Modified: 2006-07-04 09:09 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kellen 2005-08-19 04:51:40 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.
Comment 1 Minh Nguyễn 2006-03-06 00:46:02 UTC
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.
Comment 2 Rob Church 2006-07-04 09:09:50 UTC
Parser functions.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links