MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
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'); | |||
} | |||
}); | }); |
Revision as of 19:45, 30 May 2025
// Auto-insert navbox at bottom of every article page $(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'); } });