Difference between revisions of "MediaWiki:Common.js"

626 bytes removed ,  02:20, 12 February 2014
no edit summary
Line 392: Line 392:


addOnloadHook(Projectlinks);
addOnloadHook(Projectlinks);
// gotten from Fire Emblem Wiki on 11/29/2010
// --------------------------------------------------------
// addSubpages
// adds a 'subpages' link to the toolbox bar (excludes File, MediaWiki and Category namespaces)
// --------------------------------------------------------
addOnloadHook(function () {
  var NSWithoutSubpages = new Array(-1, 6, 8, 14);
  if (document.getElementById('p-tb') && NSWithoutSubpages.indexOf(wgNamespaceNumber) == -1)
    {
    var linkSubpages = '/Special:PrefixIndex/' + wgPageName + '/';
    addPortletLink('p-tb', linkSubpages, 'Subpages', 't-subpages', 'Subpages of this page');
    }
});


importScript('MediaWiki:Gadget-HotCat.js');
importScript('MediaWiki:Gadget-HotCat.js');