Page MenuHomePhabricator

Software variables (e.g. {{ns:user}}) cannot be used to define the source of a template inclusion
Closed, ResolvedPublic

Description

Author: rowan.collins

Description:
The syntax {{{{ns:user}}:Foo/Bar}} ought to behave the same as {{User:Foo/Bar}}
on a wiki where "{{ns:user}}" translates to "User" (i.e. it ought to include
that page). Instead, it breaks and is output directly as "{{User:Foo/Bar}}" (or
whatever the correct value of "{{ns:user}} is).

Apart from just using the local name in the template anyway, there is a
workaround for this: the built-in "canonical names" for the namespaces (which
are the English ones) can be used on any wiki. Therefore {{User:Foo/Bar}} will
include the page {{Benutzer:Foo/Bar}} on a German wiki, and so on.

For that reason, and because other variables, such as {{SITENAME}}, seem to work
OK, I'm going to call this 'minor severity' and 'low priority'.

[+keyword "parser", since this is probably only not working because of the
complexity of making something else work in the current not-a-parser]


Version: unspecified
Severity: enhancement

Details

Reference
bz895

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 7:01 PM
bzimport set Reference to bz895.
bzimport added a subscriber: Unknown Object (MLST).

gangleri wrote:

This bug relates to bug 662. It might be a duplicate of bug 662 or depend on bug
662.

avarab wrote:

It's a duplicate of bug 662

*** This bug has been marked as a duplicate of 662 ***