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

From The Perfect Tower II
Jump to navigation Jump to search
Exe boss (talk | contribs)
Exe boss created the page User:Exe boss/MediaWiki:Gadget-HotCat.js/local defaults using a non-default content model "JavaScript"
 
Exe boss (talk | contribs)
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 14: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]]';
	}
});