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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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