Diferencia entre revisiones de «Usuario:Argent/common.js»

m
sin resumen de edición
m
m
// 2019-0304-0304 autofill artist pages
;mw.hook('wikipage.editform').add(function () {
 
titles: page_name,
lhnamespace: "6", // File: namespace only
"lhlimit": "max", // don't limit to 10
}).then(function(resp) {
const pid = Object.keys(resp.query.pages)[0]
} else {
// create a gallery at the bottom of the page
edit.value += "\n\n<gallery mode=\"packed\" heights=150px>\n"+ new_files.join("\n") +"\n</gallery>\n"
// TODO: don't add galleries to article section edits
}
}) // api.get.then