Please check our Instructions to Authors and send your manuscripts to nifs.journal@gmail.com. Next issue: March 2025.
MediaWiki:Common.js/Toolbox.js
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/***** subPagesLink ********
* Adds a link to subpages of current page
* (copied from [[commons:MediaWiki:Common.js]] and slightly modified)
*
* JSconfig items: bool JSconfig.subPagesLink
* (true=enabled (default), false=disabled)
****/
var subPagesLink =
{
wo_ns : [NS_MEDIA, NS_SPECIAL, NS_IMAGE, NS_CATEGORY],
install: function()
{
// honor user configuration
if( !JSconfig.keys['subPagesLink'] ) return;
if ( document.getElementById("p-tb")
&& ! inArray( wgNamespaceNumber, subPagesLink.wo_ns) )
{
addPortletLink( 'p-tb',
Creator.createInternUrl('Special:Prefixindex/' + wgPageName +'/'),
gLang.msg("tb-subpages"), 't-subpages' );
}
}
}
addOnloadHook( function() {
JSconfig.registerKey('subPagesLink', true, gLang.msg("tb-subpages-settings"), 9);
subPagesLink.install();
});