User:Mark Hershberger/vector.js: Difference between revisions

From MWStake
Jump to navigation Jump to search
No edit summary

Revision as of 16:37, 3 May 2019

// Transform raw data into a query string
// @param {array} printouts - example: ['?Capital of', '?Population']
// @param {object} parameters - example: {'limit': 10'}
// @param {array|string} conditions - example: ['[[Category:Cities]]']
var query = new smw.query( "?Date", {'limit':1, "order":"descending"}, '[[Category:Events]]' ).toString();
console.log(query);