Difference between revisions of "User:Exe boss/MediaWiki:Gadget-HotCat.js/local defaults"

From The Perfect Tower II
Jump to navigation Jump to search
(Exe boss created the page User:Exe boss/MediaWiki:Gadget-HotCat.js/local defaults using a non-default content model "JavaScript")
 
(Add modified local defaults for HotCat)
 
Line 1: Line 1:
 
+
mw.hook('hotcat.ready').add(() => {
 +
const hcm = HotCat.messages;
 +
const defaultUsing = ' using [[Help:Gadget-HotCat|HotCat]]';
 +
if (hcm.using === defaultUsing) {
 +
hcm.using = ' using [[commons:Special:MyLanguage/Help:Gadget-HotCat|HotCat]]';
 +
}
 +
});

Latest revision as of 15:59, 10 March 2026

mw.hook('hotcat.ready').add(() => {
	const hcm = HotCat.messages;
	const defaultUsing = ' using [[Help:Gadget-HotCat|HotCat]]';
	if (hcm.using === defaultUsing) {
		hcm.using = ' using [[commons:Special:MyLanguage/Help:Gadget-HotCat|HotCat]]';
	}
});