MediaWiki:Gadget-Subpages.js: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
(Created page.) |
mNo edit summary |
||
Line 1: | Line 1: | ||
/** subpages **/ | /** subpages **/ | ||
$( function() { | |||
var NSWithoutSubpages = new Array( -1, 6, 8, 14); | var NSWithoutSubpages = new Array( -1, 6, 8, 14); | ||
if ( document.getElementById( 'p-tb' ) && NSWithoutSubpages.indexOf( wgNamespaceNumber ) == -1 ) { | if ( document.getElementById( 'p-tb' ) && NSWithoutSubpages.indexOf( wgNamespaceNumber ) == -1 ) { |
Revision as of 10:34, October 24, 2011
/** subpages **/ $( function() { var NSWithoutSubpages = new Array( -1, 6, 8, 14); 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' ); } });