Page MenuHomePhabricator

"Parent" and "sibling" link syntax for wikilinks on subpages
Closed, InvalidPublic

Description

Author: Wally.Hartshorn

Description:
Linking from a subpage to its parent -- [[../|parent]] -- or to one of its
siblings -- [[../sibling|sibling]] -- does not work. No link is created at all.


Version: unspecified
Severity: enhancement

Details

Reference
bz4483

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:59 PM
bzimport set Reference to bz4483.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

That's because that's not valid link syntax. All subpages (when it's enabled)
have "breadcrumbs"-style links at the top, near the title (default skin), which
lead back through the path, but we don't have support for [[..]] or similar link
syntaxes at the moment.

Changing to a feature request.

Wally.Hartshorn wrote:

(In reply to comment #1)

In that case, the documentation is incorrect, because it currently states (at at
http://meta.wikimedia.org/wiki/Help:Link#Subpage_feature):

"Inside a subpage hierarchy the following links can be used:

  • [[../]] - links to the parent of the current subpage.
  • [[../Sibling]] - links to a sibling of the current subpage, e. g. from

[[Parent/Subpage]] [[../Sibling]] links to [[Parent/Sibling]]"

robchur wrote:

I'll double-check. Were subpages properly enabled in the configuration which had
the original problem?

robchur wrote:

Concedo, that's correct. When sub pages are *properly* enabled, [[../]] links
work fine. Resolving this as INVALID, since it's a configuration issue.

Wally.Hartshorn wrote:

(In reply to comment #4)

Okay, I think you've lost me. You appear to be saying that I don't have subpages
properly enabled. I'm not sure how that's possible. They're either enabled or
they're not, aren't they? In my system, they at least APPEAR to be properly
enabled, based on the fact that a parent can link to a subpage (via
/subpage) and at the top of the subpage I can see the breadcrumb trail
linking back to the parent. They only part that doesn't work is that I cannot,
within the subpage, create a link to the parent (via [[../]] or to a sibling
(via [[../sibling]]). I'm not sure how that can be a configuration issue on my
part. Am I misunderstanding something?

robchur wrote:

Hmm. What version of MediaWiki?

Wally.Hartshorn wrote:

(In reply to comment #6)

I was running 1.4.5. After your earlier comment, I installed 1.4.12, just in
case it was something fixed or added since 1.4.5. No change. I'm now looking
into upgrading to 1.5.4, just to be absolutely sure.

robchur wrote:

I think you'll find it's in 1.5 onwards.

Wally.Hartshorn wrote:

(In reply to comment #8)

Bingo! I upgraded to 1.5.4 and now linking to parents/siblings works as
advertised! I didn't find any mention in the release notes about adding this
feature, so it must have been one of the things covered by the phrase "And... A
bunch of stuff we forgot to mention.". :-)

Thanks for your help!