Content deleted Content added
no more arrow functions |
No edit summary |
||
Line 2:
const wikiSlash = mw.config.get("wgArticlePath").replace("$1", '');
const links = $(`a[href*='${wikiSlash}']`);
let titles = [];
let finalTitle;
(new mw.Api()).get( {
action: 'query',
prop: 'categories',
titles: finalTitle
}).done(function(data) { console.log(data)});
$(links).each(function() {
finalTitle = titles.join("|");
});
});
|