Page MenuHomePhabricator

Pipe-trick doesn't work with empty template parameters
Closed, ResolvedPublic

Description

Author: alogrin

Description:
I wanted to create an "adapter" to use a template, which has pipe-trick structures, like {{{Domain|{{{Lang}}}}}}. To handle a general situation, I always needed to pass all parameters, though some of them might have empty values, like "|Lang=english| Domain= }}" or "|Lang=english| Domain={{something}} }}". It's appeared, that at the moment, when a template resolver identifies "Domain" parameter in the call, it raises a flag, that "Domain" value exist, so it shouldn't look any more in the "second leg" of a pipe {{{Domain|{{{Lang}}}}}}. The only option so far - is to get rid of all pipe-tricks in the used template and use "#if:" instead (which works).


Version: unspecified
Severity: minor
URL: http://en.wikipedia.org/wiki/User:Alogrin/Template:Test

Details

Reference
bz20269

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:51 PM
bzimport set Reference to bz20269.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 15704 ***