Page MenuHomePhabricator

Queries for values not functioning as expected for format=template
Closed, DeclinedPublic

Description

Author: cparmstrong

Description:
The query "{{#ask: [[{{FULLPAGENAME}}]] | ?testString| format=table}}" returns a table with one row per testString property on the page. According to the documentation on http://semantic-mediawiki.org/wiki/Help:Template_format#Using_templates_for_custom_formatting "If a template is specified, all result «rows» are formatted using this template." However this does not appear to be the case. The query "{{#ask: [[{{FULLPAGENAME}}]] | ?testString| format=template | template=testTemplate}}" only uses the template once sending a long string of each value separated by commas as {{{1}}}.

I've made a page demonstrating the problem here: http://sandbox.semantic-mediawiki.org/wiki/Record_Query_Test


Version: unspecified
Severity: normal
URL: http://sandbox.semantic-mediawiki.org/wiki/Record_Query_Test

Details

Reference
bz25177

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:19 PM
bzimport set Reference to bz25177.
Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.