Page MenuHomePhabricator

Numbered internal links
Closed, DeclinedPublic

Description

Author: sy1234

Description:
Allow [[pagename|]] functionality to create a numbered link the same way that
external references do with [http://example.com] or [http://example.com|]


Version: unspecified
Severity: enhancement

Details

Reference
bz4792

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:05 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz4792.
bzimport added a subscriber: Unknown Object (MLST).

Conflicts with existing syntax.

gangleri wrote:

(In reply to comment #1)

Conflicts with existing syntax.

[[pagename|]] behaves in two different ways in the *main* namespace:
a) it renders according to the pipe trick (code)
b) else it does *not* render


[[|pagename]] seems to be an equivalent of [[pagename]].

This is a "funny" construct and probably not intuitive. Have tried it for the
first time at
http://test.wikipedia.org/w/index.php?title=User:Gangleri/tests/bugzilla/04917/redirect_to_self_%22heading_vertical_line_and_self%22&redirect=no

best regards reinhardt [[user:gangleri]]

robchur wrote:

(In reply to comment #2)

According to the test I did at http://test.wikipedia.org/wiki/Sandbox, it
doesn't render.

sy1234 wrote:

I wanted to follow up with this request. Does it actually conflict with
existing syntax?

If [[pagename|]] won't render anything at all, then this syntax could indeed be
leveraged to create a numbered link.

ayg wrote:

[[pagename|]] will execute the "pipe trick", converting things like
[[Wikipedia:Pipe trick|]] to [[Wikipedia:Pipe trick|Pipe trick]] on save. So
yes, the syntax is already used.