Wrapping a compound query around a loop.

From semantic-mediawiki.org

I'm trying to combine a compound query (from the compound query extension) with a loop (from the ParserFunctions Loop extension) without much luck.

This occurs in a template:

{{#compound_query: {{#forargs: | key | value | <nowiki/> [[Category:Genre]] [[{{#var: value}}]];?has_introduction| }} format=table }}

Basically, I want this to generate a compound query, including each of the items passed in from the template. The template is called with the following:

{{Influenced|Trap|Post Dubstep}}

Once the loops have been expanded, it should look something like this:

{{#compound_query: [[Category:Genre]] [[Trap]];?has_introduction| [[Category:Genre]] [[Post Dubstep]];?has_introduction| format=table }}

Which works perfectly, just not within the loop function.

I'm using the loop elsewhere without problems.

Anything obvious I'm missing??

13:46, 18 April 2013

I should mention that I've tried the usual suspects of escaping a loop. The compound queries work fine too, unless I combine it with a loop.

14:11, 18 April 2013

It do not think that this is possible. However I may be wrong. The better place to seek help in this case appears to be the Semantic Compound Queries extension help page or the Semantic MediaWiki mailing lists. Cheers

12:48, 20 April 2013