Difference between revisions of "User:Fbstj/gadget/history-test.js"

m
rough thing
m (dang mediawiki)
m (rough thing)
lhnamespace: "6", // File: namespace only
}).then(function(resp) {
let gal = "\n\n<gallery>\n"
console.log(resp.query.pages['-1'].linkshere.map(function(el) { return el.title }))
for (const page of resp.query.pages['-1'].linkshere) {
gal += page.title.split(':')[1] +"| \n"
}
gal += "\n</gallery>"
edit.value += gal
})