Last modified: 2009-07-13 18:41:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14734 - Pipe trick parsing fails for wikilinks with both a prefix and anchor
Pipe trick parsing fails for wikilinks with both a prefix and anchor
Status: RESOLVED DUPLICATE of bug 845
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-07-05 14:40 UTC by Gavia immer
Modified: 2009-07-13 18:41 UTC (History)
2 users (show)

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


Description Gavia immer 2008-07-05 14:40:23 UTC
"Pipe trick" parsing of wikilinks (terminating a wikilink with a pipe and no argument to invoke some default behavior) fails when a wikilink contains both a colon-separated prefix (either a namespace or interwiki prefix, it doesn't matter) and an anchor; e.g. something like [[Foo:Bar#Quux|]] simply dumps that exact text into the viewed page instead of making any sort of wikilink. By contrast, mixing comma parsing with other syntax the pipe trick recognizes does work - e.g. [[Foo, Bar#Quux|]] is equivalent to [[Foo, Bar#Quux|Foo]]. 

The fix is to generate a wikilink instead. There is some previous discussion at the English Wikipedia's Village Pump ( as to what the generated syntax should be, which supports parsing [[Foo:Bar#Quux]] as [[Foo:Bar#Quux|Quux]]; alternately, the "trim everything you can" approach would render it as [[Foo:Bar#Quux|Bar]], which is consistent with the comma example above.
Comment 1 Chad H. 2009-07-13 18:40:42 UTC

*** This bug has been marked as a duplicate of bug 645 ***
Comment 2 Chad H. 2009-07-13 18:41:30 UTC
Wrong dupe, sorry.

*** This bug has been marked as a duplicate of bug 845 ***

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