Last modified: 2011-03-13 18:05:53 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 3058 - Multiple pipe trick: [[Foo:Bar:Baz||]] = [[Foo:Bar:Baz|Baz]]
Multiple pipe trick: [[Foo:Bar:Baz||]] = [[Foo:Bar:Baz|Baz]]
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Lowest enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://meta.wikimedia.org/wiki/Help_t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-06 02:18 UTC by Omegatron
Modified: 2011-03-13 18:05 UTC (History)
1 user (show)

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


Attachments

Description Omegatron 2005-08-06 02:18:50 UTC
Since the pipe trick doesn't get rid of all prepended words, multiple pipes
should get rid of multiple words, like so:

[[Wikipedia:en:Wikipedia:test]] --> Wikipedia:en:Wikipedia:test

[[Wikipedia:en:Wikipedia:test|]] --> en:Wikipedia:test

[[Wikipedia:en:Wikipedia:test||]] --> Wikipedia:test

[[Wikipedia:en:Wikipedia:test|||]] --> test

Not sure where in this heirarchy parenthetical expressions or section names
should be removed...
Comment 1 Antoine "hashar" Musso (WMF) 2005-08-15 22:01:08 UTC
This will cause too many problem with the parser. Such occurences
should use the proper syntax.
Comment 2 Omegatron 2006-03-22 14:44:41 UTC
(In reply to comment #1)
> This will cause too many problem with the parser. Such occurences
> should use the proper syntax.

Why?
Comment 3 Ilmari Karonen 2006-10-07 09:10:34 UTC
The intended behavior, at least for my recent edits to the code (see bug 6826)
and, as far as I've been able to determine, for the original implementation as
well, is to strip all valid namespace and interwiki prefixes.  Unfortunately,
this won't always work with stacked interwiki prefixes, for the simple reason
that, once MediaWiki encounters an interwiki prefix, it assumes that the rest of
the title is meant for the target wiki, which may have different namespaces and
interwiki prefixes, and thus can't be meaningfully parsed locally.

For example, consider this pathological link: [[meta:w:fr:ja:de:zh:fi:en:Main
Page]].  This will take you to [[Main Page]] on enwiki, but it'll need seven
HTTP redirects to get you there.  What on earth should the parser make of such a
link, given that it may not know how all those other wikis are configured?
Comment 4 Ilmari Karonen 2006-10-07 09:12:54 UTC
Seems the bugzilla parser just gave up on it.  Oh well, you can always try the
URL directly: http://en.wikipedia.org/wiki/meta:w:fr:ja:de:zh:fi:en:Main_Page

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


Navigation
Links