MediaWiki:Common.js: Malsamoj inter versioj

Enhavo forigita Enhavo aldonita
e forigo de ne plu ekzistantaj aspektoj el la funkcio "aliajProjektoj"
Bene* (diskuto | kontribuoj)
Update script to work with the new badges system. Please report any issues or questions at d:Wikidata:Contact the development team. Per [[MediaWiki talk:Common.js#Announced JavaScript change for badges implement...
Linio 394:
var className = matches[1];
// only links with a corresponding Link_FA template are interesting
if (document.getElementById(className + "-fa") && li.className.indexOf("badge-featuredarticle") === -1) {
li.className += " FA"; // additional class so the template can be hidden with CSS
li.title = linkFA_description; // change title
continue;
}
if (document.getElementById(className + "-ga") && li.className.indexOf("badge-goodarticle") === -1) {
li.className += " GA"; // additional class so the template can be hidden with CSS
li.title = linkGA_description; // change title