Ero sivun ”Widget:ThreadsX” versioiden välillä
Järvi-meriwikistä
Rivi 10: | Rivi 10: | ||
var searchStr = "action=query"; | var searchStr = "action=query"; | ||
− | searchStr += "&list=threads&thdir=older&thlimit=" + ( | + | searchStr += "&list=threads&thdir=older&thlimit=" + amountNr.toString(); |
− | if (page != 'x') { | + | if (page != 'x') { searchStr += '&thpage=' + page; } |
− | |||
− | |||
//searchStr += "&thrender=true"; | //searchStr += "&thrender=true"; | ||
searchStr += "&thprop=subject|page|parent|created|author|id"; | searchStr += "&thprop=subject|page|parent|created|author|id"; | ||
searchStr += "&format=json"; | searchStr += "&format=json"; | ||
+ | |||
console.log(searchStr); | console.log(searchStr); | ||
+ | |||
function success(request) { | function success(request) { | ||