845 [[#foo|]], [[/bar|]] should be equivalent to [[#foo|foo]], [[/bar|bar]] (new use of "pipe trick")

Last modified: 2008-08-08 16:37:53 UTC

First Last Prev Next    No search results available
Details
: [[#foo|]], [[/bar|]] should be equivalent to [[#foo|foo]]...
Bug#: 845
: MediaWiki
: Page rendering
Status: NEW
: All
: All
: unspecified
: enhancement

:
: need-parsertest
:
:
People
:



Description:   Opened: 2004-11-09 08:20 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 From 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 From 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 From 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 From Rowan Collins [IMSoP] 2005-02-08 23:49:25 UTC -------
*** Bug 1489 has been marked as a duplicate of this bug. ***
------- Comment #5 From 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 From 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 From 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 From Rowan Collins [IMSoP] 2005-08-02 21:03:35 UTC -------
*** Bug 3003 has been marked as a duplicate of this bug. ***
------- Comment #9 From 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 From Rowan Collins [IMSoP] 2005-08-11 13:59:59 UTC -------
*** Bug 3114 has been marked as a duplicate of this bug. ***
------- Comment #11 From 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 From 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 From Lady Aleena 2008-08-08 06:10:07 UTC -------
Is there any chance that this will ever happen?
------- Comment #14 From 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#]].

Note

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



First Last Prev Next    No search results available


You are viewing a mobilized version of this site...
View original page here

How do you rate mobile version of this page?

Mobilized by Mowser Mowser