Qeyd: Dəyişiklikləri yayımladıqdan sonra etdiyiniz dəyişikliklərin görünməsi üçün brauzerinizin keşinin təmizlənməsi lazım ola bilər.

  • Firefox / Safari: Reload düyməsinə basılı tutarkən Shift düyməsinə basın, və ya Ctrl+F5 və ya Ctrl+R (Mac üçün ⌘-R )
  • Google Chrome: Ctrl-Shift-R (Mac üçün ⌘-Shift-R)
  • Internet Explorer / Edge: Ctrl düyməsini basılı tutarkən Refresh düyməsinə basın, və ya sadəcə Ctrl+F5
  • Opera: Ctrl+F5.
function addOtherProjects() {
	var cfSkin = mw.config.get( 'skin' );
	
	if (
		mw.config.get( 'wgAction' ) !== 'view' ||
		mw.config.get( 'wgNamespaceNumber' ) % 2 ||
		mw.config.get( 'wgWikibaseItemId' ) === null
	) {
		return;
	}

	function initMove( $list ) {
		var $tWikibase = $( '#t-wikibase' );
		var $pOtherLink = $tWikibase.clone()
			.addClass( 'wb-otherproject-link wb-otherproject-wikidata' )
			.css( 'display', 'list-item' )
			.appendTo( $list );
		$tWikibase.remove();
	}

	function moveWikidataElementLink() {
		var $pPrintExport = $( '#p-coll-print_export,#p-electronpdfservice-sidebar-portlet-heading' );
		if ( $pPrintExport.length === 0 ) {
			return;
		}
		
		$pOther = $pPrintExport
			.first()
			.clone()
			.removeClass( 'emptyPortlet' )
			.attr( 'id', 'p-wikibase-otherprojects' );
			
		var $pOtherLabel = $pOther.find( cfSkin === 'vector' ? '.vector-menu-heading-label' : 'h3' );
		$pOtherList = $pOther.find( 'ul' ).empty();
		$pOtherLabel.text( mw.msg( 'wikibase-otherprojects' ) );

		if ( cfSkin === 'vector' ) {
			$pOther.attr( 'aria-labelledby', 'p-wikibase-otherprojects-label' );
			$pOtherLabel.attr( 'id', 'p-wikibase-otherprojects-label' );
		}
		
		initMove( $pOtherList );
		
		var $pLang = $( '#p-lang' );
		var $mwSidebar = $pPrintExport.parent();
		if( $pLang.length > 0 ) {
			if ( cfSkin === 'timeless' ) {
				$pOther.insertAfter( $pLang );
			} else {
				$pOther.insertBefore( $pLang );
			}
		} else if( $mwSidebar.length > 0 ) {
			$pOther.appendTo( $mwSidebar );
		}
	}

	var $pOther = $( '#p-wikibase-otherprojects' );
	var $pOtherList = $pOther.find( 'ul' );

	if ( $pOther.length > 0 ) {
		$pOther.removeClass( 'emptyPortlet' );
		initMove( $pOtherList );
	} else {
		if ( mw.config.get( 'wgUserLanguage' ) === 'az' ) {
			mw.messages.set( 'wikibase-otherprojects', 'Digər layihələrdə' );
			moveWikidataElementLink();
		} else {
			$.when( mw.loader.using( [ 'mediawiki.api' ] ) )
				.then( function () {
					return new mw.Api().loadMessagesIfMissing( [
						'wikibase-otherprojects'
					] );
				} )
				.then( moveWikidataElementLink );
		}
	}
}

if ( typeof runAsEarlyAsPossible === 'undefined' ) {
	$( addOtherProjects );
} else {
	runAsEarlyAsPossible( addOtherProjects );
}
Mənbə — ""

Informasiya Melumat Axtar

Anarim.Az

Sayt Rehberliyi ile Elaqe

Saytdan Istifade Qaydalari

Anarim.Az 2004-2023