Page MenuHomePhabricator

{{/Subpage}} acts like {{Template:/Subpage}}
Closed, ResolvedPublic

Description

Author: apb

Description:
Constructs like {{/Subpage}} behave like {{Template:/Subpage}}, whereas they should
act like {{{{NAMESPACE}}:{{PAGENAME}}/Subpage}}, by analogy with the behaviour of
/Subpage.

This sort of thing would be useful on [[en:Wikipedia:Votes for deletion]], where there
are a lot of sub pages referenced via {{Wikipedia:Votes for deletion/Subpage}}.


Version: unspecified
Severity: normal
OS: NetBSD
Platform: PC

Details

Reference
bz561

Event Timeline

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

[[foobar]] default to article namespace where as
{{foobar}} default to template namespace.

It's indeed working as intended. You should use something like {{:/subpage}}

river wrote:

{{:/Subpage}} doesn't work either.

wmahan_04 wrote:

The template inclusion code simply doesn't check for subpages. It would be
possible to fix this, but there is an easy workaround: just use the full page
name {{Page/Subpage}}. So I think this should be a lower priority than bug fixes
at the moment.

Maybe we can get the code that manage subpages from replaceinternallink()
and put it in its own function. This way we can call it for both [[ and
{{ .

ilyanep wrote:

Actually...I don't think there is a way to reference the main namespace in a
themplate syntax

wmahan_04 wrote:

Fixed in HEAD. It is already possible to reference the main namespace with {{:foo}}.

1.4 release imminent, resolving as fixed.