MediaWiki:Common.js: Difference between revisions
test |
testing |
||
Line 1: | Line 1: | ||
// Auto-insert navbox at bottom of every article page | |||
$(function () { | $(function () { | ||
if (mw.config.get('wgNamespaceNumber') === 0) { // Only on main/article pages | |||
$('<div>').load('/wiki/Template:FallenchungusNav?action=render', function () { | |||
console.log("Navbox loaded successfully."); | |||
}).appendTo('#mw-content-text'); | |||
} | |||
}); | }); |