Page MenuHomePhabricator

Bug when using colon in ParserFunction #ifeq:
Closed, ResolvedPublic

Description

If I use the following parser code in a category sub-page, e.g.
Category:Test/subpage:

<nowiki>[[{{#ifeq: {{NAMESPACE}} | Category

:}}{{NAMESPACE}}:{{BASEPAGENAME}}]]</nowiki>

I would expect a link back to the root page (Category:Test):

[[:Category:Test]] (wiki code: <nowiki>[[:Category:Test]]</nowiki>)

Instead I get:
[[

Category:Help]]

Which, in wiki code is :

[[
:Category:Help]]

In other words, a newline seems to be inserted before the colon, causing it to
be treated as a blockquote.

This may also affect the other functions, and other symbols, e.g. *.

NB - There doesn't seem to be a ParserFunctions component, so I've put this in
General/Unknown.


Version: unspecified
Severity: normal

Details

Reference
bz8199

Event Timeline

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

PS - Sorry about the <nowiki>'s in the above comment - didn't know how it would
parse.

ta.bu.shi.da.yu wrote:

Even easier way of repro-ing this. Type in:

;Text:more text

webboy wrote:

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

herd wrote:

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