Last modified: 2011-08-17 18:17:46 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 T32424, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30424 - #ask within template for property subquery returns nothing
#ask within template for property subquery returns nothing
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
PC Windows Server 2003
: Unprioritized major (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-17 17:49 UTC by Brandon Plewe
Modified: 2011-08-17 18:17 UTC (History)
1 user (show)

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


Attachments

Description Brandon Plewe 2011-08-17 17:49:30 UTC
[MW 1.17, SMW 1.6]
I'm trying to do a subquery based on a property, as described in:
http://semantic-mediawiki.org/wiki/Help:Selecting_pages#Subqueries_for_properties

If I understand correctly, the general idea is:
-In Page 1: template1 including #ask query for pages that link to this page, returning a given property and formatted using template 2
-In Template 2: #ask query for pages with a property equal to the passed value

I have put together something in the sandbox at:
http://sandbox.semantic-mediawiki.org/wiki/Canada
The two templates are:
http://sandbox.semantic-mediawiki.org/wiki/Template:Subquerytest1
http://sandbox.semantic-mediawiki.org/wiki/Template:Subquerytest2
(I realize it's a wierd useless example, but I was trying to use existing sandbox data)

It returns an odd error there, but on my server, the subquery returns nothing at all, even if I replace {{{2}}} with a literal value.  Is there a setting I'm missing, or is there a bug?
Comment 1 Brandon Plewe 2011-08-17 18:17:46 UTC
Nevermind, it was a typo on my part...

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


Navigation
Links