MediaWiki:Common.js: Difference between revisions

From Fallenchungus Wiki
Jump to navigation Jump to search
test
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
// Auto-insert navbox at bottom of every article page
$(function () {
$(function () {
     alert("Common.js is working!");
     if (mw.config.get('wgNamespaceNumber') === 0) {
        var url = mw.util.getUrl('Template:FallenchungusNav', { action: 'render' });
        $('<div>').load(url).appendTo('#mw-content-text');
    }
});
});

Latest revision as of 19:52, 30 May 2025

// Auto-insert navbox at bottom of every article page
$(function () {
    if (mw.config.get('wgNamespaceNumber') === 0) {
        var url = mw.util.getUrl('Template:FallenchungusNav', { action: 'render' });
        $('<div>').load(url).appendTo('#mw-content-text');
    }
});