Page MenuHomePhabricator

Pipe trick doesn't work when emptiness is only provided by empty template parameter
Closed, ResolvedPublic

Description

Author: webboy

Description:
The links [[w:Wikipedia|]] and [[w:Wikipedia|{{{showas|}}}]] are the same
(showas is not given), but the result is that link 1 is a link and link 2 is
showing as [[w:Wikipedia|]].


Version: 1.6.x
Severity: normal
OS: Windows XP
Platform: PC
URL: http://en.wikinews.org/w/index.php?title=Wikinews:Sandbox&oldid=169672

Details

Reference
bz4099

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:57 PM
bzimport set Reference to bz4099.
bzimport added a subscriber: Unknown Object (MLST).

Changed subject line to clarify.

The 'pipe trick' name expansion is a transformation performed at page save time
and operates on input text, so won't apply to the results of a template expansion.

The pipe trick also doesn't work in this case:

[[{{ns:project}}:my topic|]]

However, this works:

[[{{ns:project}}:my topic|my topic]]

The pre-save-transform step can't predict to what the templates or arguments will expand in the future, so there is no way to do a correct replacement.

Suggesting WONTFIX

conrad.irwin wrote:

Fixed in r62069