MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
$(function () { | $(function () { | ||
mw.util.addPortlet( | mw.util.addPortlet( | ||
'p- | 'p-test-portlet', | ||
'', | '<p>Test portlet content</p>', | ||
' | 'Test Portlet', | ||
'p-navigation' | 'p-navigation' | ||
); | ); | ||
console.log('Test portlet added'); | |||
}); | }); | ||
Revision as of 17:20, 3 July 2025
$(function () {
mw.util.addPortlet(
'p-test-portlet',
'<p>Test portlet content</p>',
'Test Portlet',
'p-navigation'
);
console.log('Test portlet added');
});