Last modified: 2014-04-26 07:13:42 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 845 - [[#foo|]], [[/bar|]] should be equivalent to [[#foo|foo]], [[/bar|bar]] (new use of "pipe trick")
[[#foo|]], [[/bar|]] should be equivalent to [[#foo|foo]], [[/bar|bar]] (new ...
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement with 14 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: need-parsertest, newparser
: 1489 3003 3114 12285 14734 17675 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-11-09 08:20 UTC by Wikipedia:en:User:Paddu
Modified: 2014-04-26 07:13 UTC (History)
20 users (show)

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


Attachments

Description Wikipedia:en:User:Paddu 2004-11-09 08:20:38 UTC
In many cases a link to a named anchor for a section within the current page
would have an anchor text that is the same as the heading of the section. This
would make such links easier to type. Similar is the case with subpages. Note
that the text displayed should not have obfuscations like ".3F." used in the
anchor (e.g. ".3F." should be "?").
Comment 1 lɛʁi לערי ריינהארט 2004-11-10 03:08:23 UTC
Just for your information:

If the name of a (sub-) section is repeated, " 2", " 3" ... will be append 
to the name of the (transliterated) anchors. See 
[[test:User:Gangleri/tests/anchors#dummy 2]] 
http://test.wikipedia.org/wiki/User:Gangleri/tests/anchors#dummy_2.

Three other anchors are used in there too:
<font id="á" />á with á as a special character
<div id="5" />5
<font id="6" />6

See [[test:User:Gangleri/tests/anchors#5]]. Works.
See [[test:User:Gangleri/tests/anchors#6]]. Works. 
See [[test:User:Gangleri/tests/anchors#á]] translates to 
http://test.wikipedia.org/wiki/User:Gangleri/tests/anchors#%C3%A1 and will 
not work.
http://test.wikipedia.org/wiki/User:Gangleri/tests/anchors#á with á not 
translated would work only if I copy and paste it in my browser (IE).

Regards Reinhardt   See also [[bugzilla:670|bug 670]].
Comment 2 en:User:Paddu 2004-11-10 21:25:41 UTC
Oops! Reinhardt WIEWE seems to have misunderstood what I meant. I'm not worried
about .3F. etc. present in the anchor. What I'm saying is [[#foo?|]] should
produce <a href="#foo.3F." ...>foo?</a> and not <a href="#foo.3F."
...>foo.3F.</a>. Currently [[#foo?|]] does the same as <nowiki>[[#foo?|]]</nowiki>.
Comment 3 Goplat 2004-11-29 03:55:14 UTC
You can already do this for the subpages case. Just add an extra 
slash, like [[/bar/]]
Comment 4 Rowan Collins [IMSoP] 2005-02-08 23:49:25 UTC
*** Bug 1489 has been marked as a duplicate of this bug. ***
Comment 5 Rowan Collins [IMSoP] 2005-02-08 23:51:00 UTC
[added phrase "pipe trick" to the summary to make this bug more searchable]
Comment 6 lɛʁi לערי ריינהארט 2005-03-14 11:07:07 UTC
Dear friends,

See [[meta:Help:Piped link#Automatic conversion of the wikitext (pipe trick)]]:
"if there is a text in parentheses at the end it will be removed"

Many locations are using a comma as [[Chicago, Illinois]]. [[Chicago,
Illinois|]] does not generate a link.

It should be evaluated:
- if comma could trigger the "piped trick"
- if other characters as / should trigger it also
- if the pipe trick should generate always a link ( now not "simple" titles in
the article namespace as [[New York|]] )
- if "multiple" pipes should remouve recursively one prefix after the other

Please see
[[Wikipedia talk:Piped link#Pipe trick for additional 50.2C000 titles]]
http://en.wikipedia.org/wiki/Wikipedia_talk:Piped_link#Pipe_trick_for_additional_50.2C000_titles

Additional test cases at [[User:Gangleri/tests/unknown]]

Best regards Reinhardt [[User:gangleri]]
Comment 7 lɛʁi לערי ריינהארט 2005-06-18 07:58:31 UTC
Hallo!

Please see some test examples at
http://jadesukka.homelinux.org:8180/betawiki/Project:Piped_links

The "piped link trick" should work whenever there is an agreement about a
*single* interpretation.

It is questionable if  [[Project:FAQ#Q 10|]] - "Project:FAQ#Q 10|" should be
[[Project:FAQ#Q 10|FAQ#Q 10]] - "Project:FAQ#Q 10|FAQ#Q 10" according to the
documentation or not.

Best regards Reinhardt [[user:gangleri]]
Comment 8 Rowan Collins [IMSoP] 2005-08-02 21:03:35 UTC
*** Bug 3003 has been marked as a duplicate of this bug. ***
Comment 9 Omegatron 2005-08-06 02:13:13 UTC
"Just add an extra slash, like [[/bar/]]"

That's bizarre.  Why use two different syntaxes for the same thing?
Comment 10 Rowan Collins [IMSoP] 2005-08-11 13:59:59 UTC
*** Bug 3114 has been marked as a duplicate of this bug. ***
Comment 11 Rowan Collins [IMSoP] 2005-08-11 14:00:54 UTC
Pasting an additional comment from dupe:
> This would be only a part of the enhancement. For full usability, full paths
> should also be converted, e. g. [[Programming in Ada/Types/Strings|]] should be
> converted to [[Programming in Ada/Types/Strings|Strings]].
Comment 12 Omegatron 2005-08-11 14:12:23 UTC
(In reply to comment #11)
> Pasting an additional comment from dupe:
> > e. g. [[Programming in Ada/Types/Strings|]] should be
> > converted to [[Programming in Ada/Types/Strings|Strings]].

See also Bug 3058:

Multiple pipes should remove multiple prefixes: [[Foo:Bar:Baz||]] =
[[Foo:Bar:Baz|Baz]]
Comment 13 Lady Aleena 2008-08-08 06:10:07 UTC
Is there any chance that this will ever happen?
Comment 14 Daniel Friesen 2008-08-08 16:37:53 UTC
(In reply to comment #9)
> "Just add an extra slash, like [[/bar/]]"
> 
> That's bizarre.  Why use two different syntaxes for the same thing?

Pipe trick substitutes. The trailing / just hides the /.
Quite simply [[/bar/]] stays as [[/bar/]] while [[Foo:Bar|]] becomes [[Foo:Bar|Bar]].

Actually, # is a similar case. Why not go with that and [[#anchor#]].
Comment 15 Chad H. 2009-07-13 18:39:55 UTC
*** Bug 12285 has been marked as a duplicate of this bug. ***
Comment 16 Chad H. 2009-07-13 18:41:30 UTC
*** Bug 14734 has been marked as a duplicate of this bug. ***
Comment 17 Conrad Irwin 2010-02-07 01:55:11 UTC
*** Bug 17675 has been marked as a duplicate of this bug. ***
Comment 18 Conrad Irwin 2010-02-07 02:17:43 UTC
Fixed in r62076
Comment 20 Purodha Blissenbach 2010-07-29 12:25:17 UTC
(In reply to comment #9)
> That's bizarre.  Why use two different syntaxes for the same thing?

Omegatron, [[/bar] and [[/bar/]] refer to two different pages.
Comment 21 Jean-Sébastien Girard 2011-02-24 19:53:16 UTC
So, what IS the status on this? It makes editing of glossary-type pages with heavy internal cross-referencing incredibly tedious, not to mention 90% of the Wiktionary links would benefit from this (especially if the syntax applied to [[foo#bar|]]).
Comment 22 bud0011 2011-04-09 06:28:42 UTC
(In reply to comment #21)
> So, what IS the status on this? It makes editing of glossary-type pages with
> heavy internal cross-referencing incredibly tedious, not to mention 90% of the
> Wiktionary links would benefit from this (especially if the syntax applied to
> [[foo#bar|]]).

Apparently... no where yet... :(
Comment 23 Mark A. Hershberger 2011-04-12 15:22:50 UTC
Brion has a new parser is under development right now and this enhancement is on his radar for that.
Comment 24 Helder 2012-08-07 15:51:38 UTC
FYI: the new parser is documented on [[mw:Parsoid]].

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


Navigation
Links