Last modified: 2013-03-08 11:21:46 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 T38579, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36579 - Please implement tri-logic on template params.
Please implement tri-logic on template params.
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-06 23:28 UTC by alex.farlie
Modified: 2013-03-08 11:21 UTC (History)
1 user (show)

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


Attachments

Description alex.farlie 2012-05-06 23:28:07 UTC
Having spent an extended period trying to figure out how to handle a particular situation where a template param can have 

 - A defined value
 - A defined but empty/null value
 - an undefined state

and being seemingly unable to write code that actually follows the desired logic consistently, I'd like to request that as well as being able to write {{{defined|undefined}}} it should be possible to write {{{defined|undefined|empty}}} style constructions. 

This would greatly assist in getting some tiresome code working consistently.
Comment 1 Platonides 2013-03-08 11:21:46 UTC
{{#ifeq: {{{defined|something}}}||empty|{{{defined|undefined}}} }}

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


Navigation
Links