Page MenuHomePhabricator

Parser function rendered improperly if condition branch begins with wikimarkup for lists
Closed, ResolvedPublic

Description

lorem{{#if:true|#foo|bar}}ipsum

gives

lorem

  1. fooipsum

Special:ExpandTemplates test expands it as:

lorem
#fooipsum

Same with "lorem{{#if:true|*foo|bar}}ipsum" and "lorem{{#if:true|:foo|bar}}ipsum".

So it's impossible to have this kind of results of test as inline text (expected result for first case would be lorem#fooipsum).

While it's impossible to remove the newline, it's easy to add it to have #*: behave as list items.


Version: unspecified
Severity: normal

Details

Reference
bz11262

Event Timeline

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

pyrios 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 ***