Jump to content

MediaWiki:Gadget-SupPages.js: Difference between revisions

From Episode D6: Star Wars D6 Wiki
Created page with "→* subpages *: addOnloadHook( function() { var NSWithoutSubpages = new Array( -1, 6, 8, 12, 13, 14, 15, 104, 105); if ( document.getElementById( 'p-tb' ) && NSW..."
 
Undo revision 14040 by WikiSysop (talk)
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 04:43, 20 July 2011

/** subpages **/
addOnloadHook( function() {
        var NSWithoutSubpages = new Array( -1, 6, 8, 12, 13, 14, 15, 104, 105);
        if ( document.getElementById( 'p-tb' ) && NSWithoutSubpages.indexOf( wgNamespaceNumber ) == -1 ) {
                var subpagesLink = '/wiki/Special:PrefixIndex/' + wgPageName + '/';
                addPortletLink( 'p-tb', subpagesLink, 'Subpages', 't-subpages', 'Subpages of this page' );
        }
});