Page MenuHomePhabricator

#ask does not work inside #ifeq or #switch
Closed, ResolvedPublic

Description

(Is this the right place to report the bug or extension ParserFunctions?)

The parser function #ask does not work inside the parser functions #ifeq or #switch (the other I did not test).

For example this code does not work (translatewiki.net, page User:Jan Luca/Support/Gerrit):

{{#ifeq: {{{project}}} |
{{#ask:[[User:Jan Luca/Use Gerrit/Test2]] [[Use Gerrit::true]] [[ProjectString::{{{project}}}]]

?ProjectString
format=template
limit=1
link=none
headers=hide
template=User:Jan Luca/Support/Gerrit/Body
userparam=intro

}} |
123 |
1 }}

It is always false.


Version: unspecified
Severity: normal

Details

Reference
bz39132

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:03 AM
bzimport set Reference to bz39132.
bzimport added a subscriber: Unknown Object (MLST).

#Ask work fine for me inside #switch on MediaWiki version 1.19.2 + Semantic MediaWiki version 1.8 alpha)

(In reply to comment #1)

#Ask work fine for me inside #switch on MediaWiki version 1.19.2 + Semantic
MediaWiki version 1.8 alpha)

Bug still current?

#ask: within #ifeq: works for MW 1.19.x and SMW 1.8.x. Thus closing as RESOLVED FIXED.