MediaWiki:Common.js/top.js

Վիքիգրքեր-ից

Ցուցում` հիշելուց հետո, դուք պետք է շրջանցեք ձեր բռաուզերի քէշը` փոփոխությունները տեսնելու համար: Mozilla / Firefox / Safari` պահեք Shift կոճակը և սեղմեք Reload, կամ սեղմեք Ctrl-Shift-R (Cmd-Shift-R Apple Mac-ի վրա); IE` պահեք Ctrl կոճակը և սեղմեք Refresh, կամ պարզապես սեղմեք Ctrl-F5; Konqueror`: պարզապես սեղմեք Reload կոճակը, կամ սեղմեք F5; Opera օգտագործողները պետք է ամբողջովին ջնջեն իրենց քէշը Tools→Preferences:

// Move icons and navigation to top of content area, which should place them right below the page title

mw.hook('wikipage.content').add(function($where) {
	var $content = mw.util.$content, $what = $where.find('.topicon').css('display', 'inline');
	
	if ( $what.length ) {
		$content.find(':header').eq(0).wrapInner('<span />').append( $('<span id="page-status" />').append($what) );
	}
	
	$what = $where.find('#top-navigation').remove().slice(0,1).addClass('subpages');
	if ( $what.length ) { $content.find('.subpages').eq(0).replaceWith($what); }
	
	$what = $where.find('#bottom-navigation').remove().slice(0,1);
	if ( $what.length ) { $where.append($what); }
});