Page MenuHomePhabricator

DPL ignores shownamespace parameter when using mode=userformat, listseperators=%PAGE%
Closed, InvalidPublic

Description

Author: kward

Description:
<DPL>
namespace = Category
shownamespace = false
mode = userformat
listseparators = * Categories,\n** [[%PAGE%]],,
</DPL>

Creates the following list ...

*Categories
Category:Title1
Category:Title2

... it should take into account the shownamespace parameter (false in this case) which would prodcue the
list ...

*Categories
Title1
Title2


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

Details

Reference
bz9090

Event Timeline

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

gero.scholz wrote:

In mode=userformat the decision whether to show the namespace or not is decided by the use of %PAGE% (which always comes with namespace) and %TITLE% (which
always has no namespace). Thus you can write something like <nowiki>[[%PAGE%|%TITLE]]</nowiki>. This will ensure that the link works and only the base name is
shown.

I changed the manual to explain this behaviour in more detail.

-Gero