Page MenuHomePhabricator

pipe trick does not work if link contains a target (aka [[mw:foo#bar|]] isn't expanded)
Open, NormalPublic

Description

Details

Reference
bz28730

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 21 2014, 11:27 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz28730.
bzimport added a subscriber: Unknown Object (MLST).

This doesn't seem to have anything to do with LQT.

Test case:
[[w:foo#bar|]]

Expected result:
[[w:foo#bar|foo]] (or maybe even [[w:foo#bar|foo#bar]])

Actual result:
[[w:foo#bar|]] Which is not considered a valid link and rendered as plain text.

Which brings up the question of do we want to expand the pipetrick even more? making [[foo#bar|]] -> [[foo#bar|foo]] would perhaps also make sense, but at some point we get to be going down a slippery slope.

It would be very useful. My reasoning is that the predominance of links would not visibly show the target, and the anchor is hidden at the end. So for me it makes no sense for the target to be shown when utilising the pipe trick.

Jorm removed a subscriber: Jorm.Dec 26 2015, 7:28 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 26 2015, 7:28 PM