User:Exe boss/MediaWiki:Gadget-HotCat.js/local defaults: Difference between revisions
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]]'; | |||
} | |||
}); | |||