MediaWiki:Common.js: Difference between revisions

From Fallenchungus Wiki
Jump to navigation Jump to search
The navbox will be under every page now
 
test
Line 1: Line 1:
// Auto-insert navbox at bottom of every article page
$(function () {
$(function () {
     if (mw.config.get('wgNamespaceNumber') === 0) { // only main/article namespace
     alert("Common.js is working!");
        $('<div>').load('/wiki/Template:FallenchungusNav?action=render').appendTo('#bodyContent');
    }
});
});

Revision as of 19:44, 30 May 2025

$(function () {
    alert("Common.js is working!");
});