User:Mark Hershberger/vector.js: Difference between revisions
Jump to navigation
Jump to search
m (Mark Hershberger moved page User:Mark Hershberger/vector.js to User:Mark Hershberger/vector.js) |
No edit summary |
||
Line 4: | Line 4: | ||
// @param {object} parameters - example: {'limit': 10'} | // @param {object} parameters - example: {'limit': 10'} | ||
// @param {array|string} conditions - example: ['[[Category:Cities]]'] | // @param {array|string} conditions - example: ['[[Category:Cities]]'] | ||
var query = | var query = smw.query( "?Date", {'limit':1, "order":"descending"}, '[[Category:Events]]' ).toString(); | ||
console.log(query); | console.log(query); |
Revision as of 16:43, 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 = smw.query( "?Date", {'limit':1, "order":"descending"}, '[[Category:Events]]' ).toString();
console.log(query);