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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16734, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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 (http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&diff=prev&oldid=223151295) 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.


Navigation
Links