MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
'p-custom-categorytree', | 'p-custom-categorytree', | ||
'', | '', | ||
' | 'Categories', | ||
'p-navigation' | 'p-navigation' | ||
); | ); | ||
$('<div>') | $('<div>') | ||
.load(' | .load('/SidebarMenu?action=render') | ||
.appendTo('#p-custom-categorytree .body'); | .appendTo('#p-custom-categorytree .body'); | ||
}); | }); | ||
Revision as of 17:01, 3 July 2025
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
if (mw.config.get('wgAction') !== 'view') return;
mw.util.addPortlet(
'p-custom-categorytree',
'',
'Categories',
'p-navigation'
);
$('<div>')
.load('/SidebarMenu?action=render')
.appendTo('#p-custom-categorytree .body');
});