MediaWiki:Common.js: Difference between revisions
The navbox will be under every page now |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
// Auto-insert navbox at bottom of every article page | // Auto-insert navbox at bottom of every article page | ||
$(function () { | $(function () { | ||
if (mw.config.get('wgNamespaceNumber') === 0) { | if (mw.config.get('wgNamespaceNumber') === 0) { | ||
$('<div>').load( | var url = mw.util.getUrl('Template:FallenchungusNav', { action: 'render' }); | ||
$('<div>').load(url).appendTo('#mw-content-text'); | |||
} | } | ||
}); | }); | ||