Page MenuHomePhabricator

Please implement tri-logic on template params.
Closed, DeclinedPublic

Description

Author: alex.farlie

Description:
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.


Version: unspecified
Severity: enhancement

Details

Reference
bz36579

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:26 AM
bzimport set Reference to bz36579.
bzimport added a subscriber: Unknown Object (MLST).

{{#ifeq: {{{defined|something}}}||empty|{{{defined|undefined}}} }}