Last modified: 2014-03-06 17:58:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T41132, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39132 - #ask does not work inside #ifeq or #switch
#ask does not work inside #ifeq or #switch
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 39480
  Show dependency treegraph
 
Reported: 2012-08-08 10:33 UTC by Jan Luca
Modified: 2014-03-06 17:58 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jan Luca 2012-08-08 10:33:16 UTC
(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.
Comment 1 Pavel (pastakhov) 2012-11-20 11:58:11 UTC
#Ask work fine for me inside #switch on MediaWiki version 1.19.2 + Semantic MediaWiki version 1.8 alpha)
Comment 2 Nemo 2013-01-08 22:34:40 UTC
(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?
Comment 3 [[kgh]] 2014-03-06 17:58:34 UTC
#ask: within #ifeq: works for MW 1.19.x and SMW 1.8.x. Thus closing as RESOLVED FIXED.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links