/** * Skriptləri yükləmək üçün lokal skript */ var importScript_ = importScript; importScript = function ( page, proj ) { if ( !proj ) { importScript_( page ); } else { if ( proj.indexOf( '.' ) === -1 ) { proj += '.wikipedia.org'; } mw.loader.using( 'mediawiki.util' ).then( function () { mw.loader.load( '//' + proj + '/w/index.php?title=' + mw.util.wikiUrlencode( page ) + '&action=raw&ctype=text/javascript' ); } ); } }; //runAsEarlyAsPossible from ruwiki function runAsEarlyAsPossible( callback, $testElement, func ) { func = func || $; $testElement = $testElement || $( '#footer' ); if ( $testElement.length ) { callback(); } else { func( callback ); } } /** Skript für Vorlage:Galerie */ $(function() { if (document.URL.match(/printable/g)) return; function toggleImageFunction(group, remindex, shwindex) { return function() { document.getElementById("ImageGroupsGr" + group + "Im" + remindex).style.display = "none"; document.getElementById("ImageGroupsGr" + group + "Im" + shwindex).style.display = "block"; return false; }; } var divs = document.getElementsByTagName("div"); var i = 0, j = 0; var units, search; var currentimage; var UnitNode; for (i = 0; i < divs.length; i++) { if (divs[i].className !== "ImageGroup") { continue; } UnitNode = undefined; search = divs[i].getElementsByTagName("div"); for (j = 0; j < search.length; j++) { if (search[j].className !== "ImageGroupUnits") { continue; } UnitNode=search[j]; break; } if (UnitNode === undefined) { continue; } units = []; for (j = 0 ; j < UnitNode.childNodes.length ; j++ ) { var temp = UnitNode.childNodes[j]; if (['center', 'mw-halign-center'].some(function(className) { return temp.classList.contains(className); })) { units.push(temp); } } var rightlink; var commentText; var wrap; for (j = 0; j < units.length; j++) { currentimage = units[j]; wrap = document.createElement('div'); wrap.id = "ImageGroupsGr" + i + "Im" + j; currentimage.parentNode.insertBefore(wrap, currentimage); wrap.appendChild(currentimage); var leftlink = document.createElement("a"); if (commentText !== undefined) { leftlink.setAttribute("title", commentText); } var comment; if (typeof(currentimage.getAttribute("title")) !== "string") { commentText = (j+1) + "/" + units.length; comment = document.createElement("tt").appendChild(document.createTextNode("("+ commentText + ")")); } else { commentText = currentimage.getAttribute("title"); comment = document.createElement("span").appendChild(document.createTextNode(commentText)); currentimage.removeAttribute("title"); } if(rightlink !== undefined) { rightlink.setAttribute("title", commentText); } var imghead = document.createElement("div"); rightlink = document.createElement("a"); if (j !== 0) { leftlink.href = "#"; leftlink.onclick = toggleImageFunction(i, j, j-1); leftlink.appendChild(document.createTextNode("◀")); } if (j != units.length - 1) { rightlink.href = "#"; rightlink.onclick = toggleImageFunction(i, j, j+1); rightlink.appendChild(document.createTextNode("▶")); } imghead.style.fontSize = "110%"; imghead.style.fontweight = "bold"; imghead.appendChild(leftlink); imghead.appendChild(document.createTextNode("\xA0")); imghead.appendChild(comment); imghead.appendChild(document.createTextNode("\xA0")); imghead.appendChild(rightlink); if (units.length > 1) { wrap.insertBefore(imghead,wrap.childNodes[0]); } if (j !== 0) { wrap.style.display = "none"; } } } }); /** Interwiki links to featured articles *************************************** * * Description: Highlights interwiki links to featured articles (or * equivalents) by changing the bullet before the interwiki link * into a star. * Maintainers: [[User:R. Koot]] */ /** * NAVFRAME */ //Messages var listFA = { fa:'Bu başqa dildəki seçilmiş məqalədir', fl:'Bu başqa dildəki seçilmiş siyahıdır', ga:'Bu başqa dildəki yaxşı məqalədir'}; var zeroSectionTip = 'Girişi redaktə et'; var NavigationBarHide = '[gizlət]'; var NavigationBarShow = '[göstər]'; var NavigationBarShowDefault = 2; function LinkFA(){ var ll, s; $('#p-lang li').each( function(i, iw){ ll = iw.className.replace(/^.*?(interwiki-)/, '$1').replace(/\s.*$/, '') + '-'; for( var s in listFA ) if( document.getElementById(ll + s) && !$( iw ).hasClass( 'badge-featuredarticle' ) && !$( iw ).hasClass( 'badge-goodarticle' ) && !$( iw ).hasClass( 'badge-featuredlist' ) ) $( iw ) .addClass( s.toUpperCase() ) .attr( 'title', listFA[s] + textFA ); }); } var NavigationBarShowDefault; if ( typeof NavigationBarShowDefault === 'undefined' ) { NavigationBarShowDefault = 1; } // table.collapsible function makeCollapsibleMwCollapsible( $content ) { var $tables = $content .find( 'table.collapsible:not(.mw-collapsible)' ) .addClass( 'mw-collapsible' ); $.each( $tables, function( index, table ) { // mw.log.warn( 'This page is using the deprecated class collapsible. Please replace it with mw-collapsible.'); if( $( table ).hasClass( 'collapsed') ) { $( table ).addClass( 'mw-collapsed' ); // mw.log.warn( 'This page is using the deprecated class collapsed. Please replace it with mw-collapsed.'); } } ); if( $tables.length > 0 ) { mw.loader.using( 'jquery.makeCollapsible' ).then( function() { $tables.makeCollapsible(); } ); } } mw.hook( 'wikipage.content' ).add( makeCollapsibleMwCollapsible ); /** * Add support to mw-collapsible for autocollapse, innercollapse and outercollapse * * Maintainers: TheDJ */ function mwCollapsibleSetup( $collapsibleContent ) { var $element, $toggle, autoCollapseThreshold = 2; $.each( $collapsibleContent, function (index, element) { $element = $( element ); if ( $element.hasClass( 'collapsible' ) ) { $element.find('tr:first > th:first').prepend( $element.find('tr:first > * > .mw-collapsible-toggle')); } if ( $collapsibleContent.length >= autoCollapseThreshold && $element.hasClass( 'autocollapse' ) ) { $element.data( 'mw-collapsible' ).collapse(); } else if ( $element.hasClass( 'innercollapse' ) ) { if ( $element.parents( '.outercollapse' ).length > 0 ) { $element.data( 'mw-collapsible' ).collapse(); } } // because of colored backgrounds, style the link in the text color // to ensure accessible contrast $toggle = $element.find( '.mw-collapsible-toggle' ); if ( $toggle.length ) { // Make the toggle inherit text color if( $toggle.parent()[0].style.color ) { $toggle.find( 'a' ).css( 'color', 'inherit' ); } } } ); } mw.hook( 'wikipage.collapsibleContent' ).add( mwCollapsibleSetup ); /** * Dynamic Navigation Bars (experimental) * * Description: See [[Wikipedia:NavFrame]]. * Maintainers: UNMAINTAINED */ var collapseCaption = 'gizlə'; var expandCaption = 'göstər'; // Set up the words in your language var navigationBarHide = '[' + collapseCaption.toLowerCase() + ']'; var navigationBarShow = '[' + expandCaption.toLowerCase() + ']'; /** * Shows and hides content and picture (if available) of navigation bars. * * @param {number} indexNavigationBar The index of navigation bar to be toggled * @param {jQuery.Event} event Event object */ function toggleNavigationBar( indexNavigationBar, event ) { var navToggle = document.getElementById( 'NavToggle' + indexNavigationBar ); var navFrame = document.getElementById( 'NavFrame' + indexNavigationBar ); var navChild; if ( !navFrame || !navToggle ) { return false; } // If shown now if ( navToggle.firstChild.data === navigationBarHide ) { for ( navChild = navFrame.firstChild; navChild !== null; navChild = navChild.nextSibling ) { if ( $( navChild ).hasClass( 'NavContent' ) ) { navChild.style.display = 'none'; } } navToggle.firstChild.data = navigationBarShow; // If hidden now } else if ( navToggle.firstChild.data === navigationBarShow ) { for ( navChild = navFrame.firstChild; navChild !== null; navChild = navChild.nextSibling ) { if ( $( navChild ).hasClass( 'NavContent' ) ) { navChild.style.display = 'block'; } } navToggle.firstChild.data = navigationBarHide; } event.preventDefault(); } /* [[Şablon:Yarımbaşlıq]] üçün */ function sousTitreH1( $content ) { $( '#firstHeading > #second_header_h1' ).remove(); var $span = $content.find( '#second_header_h1' ); if ( $span.length ) { $span.prepend( ' ' ); $( '#firstHeading' ).append( $span ); } } mw.hook( 'wikipage.content' ).add( sousTitreH1 ); /** * Adds show/hide-button to navigation bars. * * @param {jQuery} $content */ function createNavigationBarToggleButton( $content ) { var i, j, navChild, navToggle, navToggleText, isCollapsed, indexNavigationBar = 0; // Iterate over all < div >-elements var $divs = $content.find( 'div.NavFrame:not(.mw-collapsible)' ); $divs.each( function ( i, navFrame ) { indexNavigationBar++; navToggle = document.createElement( 'a' ); navToggle.className = 'NavToggle'; navToggle.setAttribute( 'id', 'NavToggle' + indexNavigationBar ); navToggle.setAttribute( 'href', '#' ); $( navToggle ).on( 'click', $.proxy( toggleNavigationBar, null, indexNavigationBar ) ); isCollapsed = $( navFrame ).hasClass( 'collapsed' ); /** * Check if any children are already hidden. This loop is here for backwards compatibility: * the old way of making NavFrames start out collapsed was to manually add style="display:none" * to all the NavPic/NavContent elements. Since this was bad for accessibility (no way to make * the content visible without JavaScript support), the new recommended way is to add the class * "collapsed" to the NavFrame itself, just like with collapsible tables. */ for ( navChild = navFrame.firstChild; navChild !== null && !isCollapsed; navChild = navChild.nextSibling ) { if ( $( navChild ).hasClass( 'NavPic' ) || $( navChild ).hasClass( 'NavContent' ) ) { if ( navChild.style.display === 'none' ) { isCollapsed = true; } } } if ( isCollapsed ) { for ( navChild = navFrame.firstChild; navChild !== null; navChild = navChild.nextSibling ) { if ( $( navChild ).hasClass( 'NavPic' ) || $( navChild ).hasClass( 'NavContent' ) ) { navChild.style.display = 'none'; } } } navToggleText = document.createTextNode( isCollapsed ? navigationBarShow : navigationBarHide ); navToggle.appendChild( navToggleText ); // Find the NavHead and attach the toggle link (Must be this complicated because Moz's firstChild handling is borked) for ( j = 0; j < navFrame.childNodes.length; j++ ) { if ( $( navFrame.childNodes[j] ).hasClass( 'NavHead' ) ) { navToggle.style.color = navFrame.childNodes[j].style.color; navFrame.childNodes[j].appendChild( navToggle ); } } navFrame.setAttribute( 'id', 'NavFrame' + indexNavigationBar ); } ); } mw.hook( 'wikipage.content' ).add( createNavigationBarToggleButton ); /** "Technical restrictions" title fix ***************************************** * * Description: * Maintainers: User:Interiot, User:Mets501, User:Freakofnurture */ // // For pages that have something like Template:Lowercase, replace the title, but only if it is cut-and-pasteable as a valid wikilink. // (for instance iPod's title is updated. But [[C#]] is not an equivalent // wikilink, so [[C Sharp]] doesn't have its main title changed) // Likewise for users who have selected the U.K. date format ("1 March") the // titles of day-of-the-year articles will appear in that style. Users with any // other date setting are not affected. // // The function looks for a banner like this: // <div id="RealTitleBanner"> ... <span id="RealTitle">title</span> ... </div> // An element with id=DisableRealTitle disables the function. // var disableRealTitle = 0; // users can set disableRealTitle = 1 locally to disable. if (mw.config.get('wgIsArticle')) { // don't display the RealTitle when editing, since it is apparently inconsistent (doesn't show when editing sections, doesn't show when not previewing) $(function() { try { var realTitleBanner = document.getElementById("RealTitleBanner"); if (realTitleBanner && !document.getElementById("DisableRealTitle") && !disableRealTitle ) { var realTitle = document.getElementById("RealTitle"); if (realTitle) { var realTitleHTML = realTitle.innerHTML; realTitleText = pickUpText(realTitle); var isPasteable = 0; //var containsHTML = /</.test(realTitleHTML); // contains ANY HTML var containsTooMuchHTML = /</.test( realTitleHTML.replace(/<\/?(sub|sup|small|big)>/gi, "") ); // contains HTML that will be ignored when cut-n-pasted as a wikilink // calculate whether the title is pasteable var verifyTitle = realTitleText.replace(/^ +/, ""); // trim left spaces verifyTitle = verifyTitle.charAt(0).toUpperCase() + verifyTitle.substring(1, verifyTitle.length); // uppercase first character // if the namespace prefix is there, remove it on our verification copy. If it isn't there, add it to the original realValue copy. if (mw.config.get('wgNamespaceNumber') != 0) { if (mw.config.get('wgCanonicalNamespace') == verifyTitle.substr(0, mw.config.get('wgCanonicalNamespace').length).replace(/ /g, "_") && verifyTitle.charAt(mw.config.get('wgCanonicalNamespace').length) == ":") { verifyTitle = verifyTitle.substr(mw.config.get('wgCanonicalNamespace').length + 1); } else { realTitleText = mw.config.get('wgCanonicalNamespace').replace(/_/g, " ") + ":" + realTitleText; realTitleHTML = mw.config.get('wgCanonicalNamespace').replace(/_/g, " ") + ":" + realTitleHTML; } } // verify whether wgTitle matches verifyTitle = verifyTitle.replace(/[\s_]+/g, " "); // underscores and multiple spaces to single spaces verifyTitle = verifyTitle.replace(/^\s+/, "").replace(/\s+$/, ""); // trim left and right spaces verifyTitle = verifyTitle.charAt(0).toUpperCase() + verifyTitle.substring(1, verifyTitle.length); // uppercase first character if ( (verifyTitle == mw.config.get('wgTitle')) || (verifyTitle == mw.config.get('wgTitle').replace(/^(.+)?(January|February|March|April|May|June|July|August|September|October|November|December)\s+([12]?[0-9]|3[0123])([^\d].*)?$/g, "$1$3 $2$4") )) isPasteable = 1; var h1 = document.getElementsByTagName("h1")[0]; if (h1 && isPasteable) { h1.innerHTML = containsTooMuchHTML ? realTitleText : realTitleHTML; if (!containsTooMuchHTML) realTitleBanner.style.display = "none"; } document.title = realTitleText + " - Wikipedia, the free encyclopedia"; } } } catch (e) { /* Something went wrong. */ } }); } // similar to innerHTML, but only returns the text portions of the insides, excludes HTML function pickUpText(aParentElement) { var str = ""; function pickUpTextInternal(aElement) { var child = aElement.firstChild; while (child) { if (child.nodeType == 1) // ELEMENT_NODE pickUpTextInternal(child); else if (child.nodeType == 3) // TEXT_NODE str += child.nodeValue; child = child.nextSibling; } } pickUpTextInternal(aParentElement); return str; } //fix edit summary prompt for undo //this code fixes the fact that the undo function combined with the "no edit summary prompter" causes problems if leaving the //edit summary unchanged //this was added by [[User:Deskana]], code by [[User:Tra]] $(function () { if (document.location.search.indexOf("undo=") != -1 && document.getElementsByName('wpAutoSummary')[0]) { document.getElementsByName('wpAutoSummary')[0].value=''; } }) /** * Qeydiyyatdan keçmiş istifadəçilər üçün gizli kateqoriyaların göstərilməsi üçün (+) düyməsini əlavə edən funksiya */ function hiddencat( $ ) { if (mw.util.getParamValue('printable') === 'yes') { return; } var cl = document.getElementById('catlinks'); if (!cl) { return; } var $hc = $('#mw-hidden-catlinks'); if ( !$hc.length ) { return; } if ( $hc.hasClass('mw-hidden-cats-user-shown') ) { return; } if ( $hc.hasClass('mw-hidden-cats-ns-shown') ) { $hc.addClass('mw-hidden-cats-hidden'); } var nc = document.getElementById('mw-normal-catlinks'); if ( !nc ) { var catline = document.createElement('div'); catline.id = 'mw-normal-catlinks'; var a = document.createElement('a'); a.href = ''; a.title = ''; a.appendChild(document.createTextNode('Kateqoriyalar')); catline.appendChild(a); catline.appendChild(document.createTextNode(' : ')); nc = cl.insertBefore(catline, cl.firstChild); } var lnk = document.createElement('a'); lnk.id = 'mw-hidden-cats-link'; lnk.title = 'Bu məqalədə gizli kateqoriyalar var'; lnk.style.cursor = 'pointer'; lnk.style.color = 'black'; lnk.style.marginLeft = '0.3em'; $(lnk).click(toggleHiddenCats); lnk.appendChild(document.createTextNode('[+]')); nc.appendChild(lnk); } function toggleHiddenCats(e) { var $hc = $('#mw-hidden-catlinks'); if ( $hc.hasClass('mw-hidden-cats-hidden') ) { $hc.removeClass('mw-hidden-cats-hidden'); $hc.addClass('mw-hidden-cat-user-shown'); $(e.target).text('[–]'); } else { $hc.removeClass('mw-hidden-cat-user-shown'); $hc.addClass('mw-hidden-cats-hidden'); $(e.target).text('[+]'); } } mw.loader.using('mediawiki.util').then( function () { $( hiddencat ); }); /** Add dismiss button to watchlist-message ************************************* * * Description: Hide the watchlist message for one week. * Maintainers: [[User:Ruud Koot|Ruud Koot]] */ function addDismissButton() { var watchlistMessage = document.getElementById("watchlist-message"); if ( watchlistMessage == null ) return; if ( document.cookie.indexOf( "hidewatchlistmessage=yes" ) != -1 ) { watchlistMessage.style.display = "none"; } var Button = document.createElement( "span" ); var ButtonLink = document.createElement( "a" ); var ButtonText = document.createTextNode( "dismiss" ); ButtonLink.setAttribute( "id", "dismissButton" ); ButtonLink.setAttribute( "href", "javascript:dismissWatchlistMessage();" ); ButtonLink.setAttribute( "title", "Hide this message for one week" ); ButtonLink.appendChild( ButtonText ); Button.appendChild( document.createTextNode( "[" ) ); Button.appendChild( ButtonLink ); Button.appendChild( document.createTextNode( "]" ) ); watchlistMessage.appendChild( Button ); } function dismissWatchlistMessage() { var e = new Date(); e.setTime( e.getTime() + (7*24*60*60*1000) ); document.cookie = "hidewatchlistmessage=yes; expires=" + e.toGMTString() + "; path=/"; var watchlistMessage = document.getElementById("watchlist-message"); watchlistMessage.style.display = "none"; } $( addDismissButton ); /** MediaWiki media player ******************************************************* * * Description: A Java player for in-browser playback of media files. * Created by: [[User:Gmaxwell]] */ mw.loader.load('//en.wikipedia.org/w/index.php?title=Mediawiki:Wikimediaplayer.js&action=raw&ctype=text/javascript'); mw.hook( 've.loadModules' ).add( function( addPlugin ) { /** * Vikiləşdirinin vizual redaktorda görünməsi */ addPlugin( function () { return mw.loader.using( 'ext.gadget.wikificator' ); } ); } ); // Sidebar Dəyişiklikləri function ModifySidebar(action, section, name, link) { try { switch (section) { case "Başqa dillərdə": var target = "p-lang"; break; case "Alətlər sandığı": var target = "p-tb"; break; case "rəhbər": var target = "p-navigation"; break; default: var target = "p-" + section; break; } if (action == "add") { var node = document.getElementById(target) .getElementsByTagName('div')[0] .getElementsByTagName('ul')[0]; var aNode = document.createElement('a'); var liNode = document.createElement('li'); aNode.appendChild(document.createTextNode(name)); aNode.setAttribute('href', link); liNode.appendChild(aNode); liNode.className='plainlinks'; node.appendChild(liNode); } if (action == "remove") { var list = document.getElementById(target) .getElementsByTagName('div')[0] .getElementsByTagName('ul')[0]; var listelements = list.getElementsByTagName('li'); for (var i = 0; i < listelements.length; i++) { if (listelements[i].getElementsByTagName('a')[0].innerHTML == name || listelements[i].getElementsByTagName('a')[0].href == link) { list.removeChild(listelements[i]); } } } } catch(e) { // lets just ignore what's happened return; } } //</source> // Results from Wikidata // [[File:Wdsearch_script_screenshot.png]] if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' || ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) { mw.loader.load("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript"); } /** * Imagemap Highlight */ if ( $( '.imageMapHighlighter' ).length && $( '<canvas>' )[ 0 ].getContext ) { importScript( 'MediaWiki:Imagemap-Highlight.js' ); } /** * imgToggle */ if ( $( 'div.img_toggle' ).length ) { mw.loader.load( 'ext.gadget.imgToggle' ); } /** * withJS * İzah: URL keçidləri ilə MediaViki skriptlərinin işə salınması * @mənbə: www.mediawiki.org/wiki/Snippets/Load_JS_and_CSS_by_URL */ mw.loader.using('mediawiki.util').then(() => { var extraCSS = mw.util.getParamValue( 'withCSS' ), extraJS = mw.util.getParamValue( 'withJS' ); if ( extraCSS ) { if ( extraCSS.match( /^Media[VW]iki:[^&<>=%#]*\.css$/ ) ) { mw.loader.load( '/w/index.php?title=' + extraCSS + '&action=raw&ctype=text/css', 'text/css' ); } else { mw.notify( 'Yalnız MediaViki ad fəzasındakı səhifələrə icazə verilir.', { title: 'Yanlış "withCSS" dəyəri' } ); } } if ( extraJS ) { if ( extraJS.match( /^Media[VW]iki:[^&<>=%#]*\.js$/ ) ) { mw.loader.load( '/w/index.php?title=' + extraJS + '&action=raw&ctype=text/javascript' ); } else { mw.notify( 'Yalnız MediaViki ad fəzasındakı səhifələrə icazə verilir.', { title: 'Yanlış "withJS" dəyəri' } ); } } }); /** * Magic editintros * İzah: Yaşayan insanların məqalələrini redaktə edərkən göstərilən xəbərdarlıq qutusu * Müəllif: [[User:RockMFR]] */ function addEditIntro( name ) { $( '.mw-editsection, #ca-edit, #ca-ve-edit' ).find( 'a' ).each( function ( i, el ) { el.href = $( this ).attr( 'href' ) + '&editintro=' + name; } ); } if ( mw.config.get( 'wgNamespaceNumber' ) === 2 || mw.config.get( 'wgNamespaceNumber' ) === 3) { $( function () { if ( document.getElementById( 'userpageedn' ) ) { addEditIntro( 'Şablon:Editnotice_userpage' ); } } ); } if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) { $( function () { if ( document.getElementById( 'disambigbox' ) ) { addEditIntro( 'Şablon:Disambig_editintro' ); } } ); $( function () { var cats = mw.config.get('wgCategories'); if ( !cats ) { return; } if ( $.inArray( 'Yaşayan insanlar', cats ) !== -1 || $.inArray( 'Yaşayan uzunömürlülər', cats ) !== -1 ) { addEditIntro( 'Şablon:BLP_editintro' ); } } ); $( function () { mw.loader.using('mediawiki.api').then(() => { new mw.Api({userAgent: 'Common.js/azwiki'}).get({ action: 'parse', page: `Müzakirə:${mw.config.get('wgTitle')}`, format: 'json' }).done(data => { if (/id="refideas-anchor"/.test(data.parse.text['*'])) addEditIntro('Şablon:Faydalı_istinad_editnotice') }) }); }); } // Web2Cit mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Diegodlh/Web2Cit/script.js&action=raw&ctype=text/javascript' ); // Backlink: [[:en:User:Diegodlh/Web2Cit/script.js]] mw.hook( 've.activationComplete' ).add( function () { mw.loader.load( 'ext.gadget.summaryButtons' ); } ); // "collapsed" sinifli <table> elementləri "autocollapse" vəziyyətinə gətirilir mw.hook('wikipage.content').add(() => { document.querySelectorAll('table.collapsed').forEach(tab => { tab.classList.replace('collapsed', 'autocollapse') }) }) wikipedia, oxu, kitab, kitabxana, axtar, tap, meqaleler, kitablar, oyrenmek, wiki, bilgi, tarix, tarixi, endir, indir, yukle, izlə, izle, mobil, telefon ucun, azeri, azəri, azerbaycanca, azərbaycanca, sayt, yüklə, pulsuz, pulsuz yüklə, haqqında, haqqinda, məlumat, melumat, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, şəkil, muisiqi, mahnı, kino, film, kitab, oyun, oyunlar, android, ios, apple, samsung, iphone, pc, xiomi, xiaomi, redmi, honor, oppo, nokia, sonya, mi, web, computer, komputer
Vikipediya azad ensiklopediya Etdiyiniz deyisikliklerin yayimlanandan sonra effekt vermesi ucun brauzerinizin kesini temizlemeye ehtiyaciniz ola biler Bunun ucun Chrome Firefox Edge yaxud Safari istifadecisisinizse klaviaturanizin Shift duymesini sixaraq brauzerin sehife yenilemek duymesini klik ede bilersiniz Skriptleri yuklemek ucun lokal skript var importScript importScript importScript function page proj if proj importScript page else if proj indexOf 39 39 1 proj 39 wikipedia org 39 mw loader using 39 mediawiki util 39 then function mw loader load 39 39 proj 39 w index php title 39 mw util wikiUrlencode page 39 amp action raw amp ctype text javascript 39 runAsEarlyAsPossible from ruwiki function runAsEarlyAsPossible callback testElement func func func testElement testElement 39 footer 39 if testElement length callback else func callback Skript fur Vorlage Galerie function if document URL match printable g return function toggleImageFunction group remindex shwindex return function document getElementById ImageGroupsGr group Im remindex style display none document getElementById ImageGroupsGr group Im shwindex style display block return false var divs document getElementsByTagName div var i 0 j 0 var units search var currentimage var UnitNode for i 0 i lt divs length i if divs i className ImageGroup continue UnitNode undefined search divs i getElementsByTagName div for j 0 j lt search length j if search j className ImageGroupUnits continue UnitNode search j break if UnitNode undefined continue units for j 0 j lt UnitNode childNodes length j var temp UnitNode childNodes j if 39 center 39 39 mw halign center 39 some function className return temp classList contains className units push temp var rightlink var commentText var wrap for j 0 j lt units length j currentimage units j wrap document createElement 39 div 39 wrap id ImageGroupsGr i Im j currentimage parentNode insertBefore wrap currentimage wrap appendChild currentimage var leftlink document createElement a if commentText undefined leftlink setAttribute title commentText var comment if typeof currentimage getAttribute title string commentText j 1 units length comment document createElement tt appendChild document createTextNode commentText else commentText currentimage getAttribute title comment document createElement span appendChild document createTextNode commentText currentimage removeAttribute title if rightlink undefined rightlink setAttribute title commentText var imghead document createElement div rightlink document createElement a if j 0 leftlink href leftlink onclick toggleImageFunction i j j 1 leftlink appendChild document createTextNode if j units length 1 rightlink href rightlink onclick toggleImageFunction i j j 1 rightlink appendChild document createTextNode imghead style fontSize 110 imghead style fontweight bold imghead appendChild leftlink imghead appendChild document createTextNode xA0 imghead appendChild comment imghead appendChild document createTextNode xA0 imghead appendChild rightlink if units length gt 1 wrap insertBefore imghead wrap childNodes 0 if j 0 wrap style display none Interwiki links to featured articles Description Highlights interwiki links to featured articles or equivalents by changing the bullet before the interwiki link into a star Maintainers User R Koot NAVFRAME Messages var listFA fa 39 Bu basqa dildeki secilmis meqaledir 39 fl 39 Bu basqa dildeki secilmis siyahidir 39 ga 39 Bu basqa dildeki yaxsi meqaledir 39 var zeroSectionTip 39 Girisi redakte et 39 var NavigationBarHide 39 gizlet 39 var NavigationBarShow 39 goster 39 var NavigationBarShowDefault 2 function LinkFA var ll s 39 p lang li 39 each function i iw ll iw className replace interwiki 39 1 39 replace s 39 39 39 39 for var s in listFA if document getElementById ll s amp amp iw hasClass 39 badge featuredarticle 39 amp amp iw hasClass 39 badge goodarticle 39 amp amp iw hasClass 39 badge featuredlist 39 iw addClass s toUpperCase attr 39 title 39 listFA s textFA var NavigationBarShowDefault if typeof NavigationBarShowDefault 39 undefined 39 NavigationBarShowDefault 1 table collapsible function makeCollapsibleMwCollapsible content var tables content find 39 table collapsible not mw collapsible 39 addClass 39 mw collapsible 39 each tables function index table mw log warn 39 This page is using the deprecated class collapsible Please replace it with mw collapsible 39 if table hasClass 39 collapsed 39 table addClass 39 mw collapsed 39 mw log warn 39 This page is using the deprecated class collapsed Please replace it with mw collapsed 39 if tables length gt 0 mw loader using 39 jquery makeCollapsible 39 then function tables makeCollapsible mw hook 39 wikipage content 39 add makeCollapsibleMwCollapsible Add support to mw collapsible for autocollapse innercollapse and outercollapse Maintainers TheDJ function mwCollapsibleSetup collapsibleContent var element toggle autoCollapseThreshold 2 each collapsibleContent function index element element element if element hasClass 39 collapsible 39 element find 39 tr first gt th first 39 prepend element find 39 tr first gt gt mw collapsible toggle 39 if collapsibleContent length gt autoCollapseThreshold amp amp element hasClass 39 autocollapse 39 element data 39 mw collapsible 39 collapse else if element hasClass 39 innercollapse 39 if element parents 39 outercollapse 39 length gt 0 element data 39 mw collapsible 39 collapse because of colored backgrounds style the link in the text color to ensure accessible contrast toggle element find 39 mw collapsible toggle 39 if toggle length Make the toggle inherit text color if toggle parent 0 style color toggle find 39 a 39 css 39 color 39 39 inherit 39 mw hook 39 wikipage collapsibleContent 39 add mwCollapsibleSetup Dynamic Navigation Bars experimental Description See Wikipedia NavFrame Maintainers UNMAINTAINED var collapseCaption 39 gizle 39 var expandCaption 39 goster 39 Set up the words in your language var navigationBarHide 39 39 collapseCaption toLowerCase 39 39 var navigationBarShow 39 39 expandCaption toLowerCase 39 39 Shows and hides content and picture if available of navigation bars param number indexNavigationBar The index of navigation bar to be toggled param jQuery Event event Event object function toggleNavigationBar indexNavigationBar event var navToggle document getElementById 39 NavToggle 39 indexNavigationBar var navFrame document getElementById 39 NavFrame 39 indexNavigationBar var navChild if navFrame navToggle return false If shown now if navToggle firstChild data navigationBarHide for navChild navFrame firstChild navChild null navChild navChild nextSibling if navChild hasClass 39 NavContent 39 navChild style display 39 none 39 navToggle firstChild data navigationBarShow If hidden now else if navToggle firstChild data navigationBarShow for navChild navFrame firstChild navChild null navChild navChild nextSibling if navChild hasClass 39 NavContent 39 navChild style display 39 block 39 navToggle firstChild data navigationBarHide event preventDefault Sablon Yarimbasliq ucun function sousTitreH1 content 39 firstHeading gt second header h1 39 remove var span content find 39 second header h1 39 if span length span prepend 39 39 39 firstHeading 39 append span mw hook 39 wikipage content 39 add sousTitreH1 Adds show hide button to navigation bars param jQuery content function createNavigationBarToggleButton content var i j navChild navToggle navToggleText isCollapsed indexNavigationBar 0 Iterate over all lt div gt elements var divs content find 39 div NavFrame not mw collapsible 39 divs each function i navFrame indexNavigationBar navToggle document createElement 39 a 39 navToggle className 39 NavToggle 39 navToggle setAttribute 39 id 39 39 NavToggle 39 indexNavigationBar navToggle setAttribute 39 href 39 39 39 navToggle on 39 click 39 proxy toggleNavigationBar null indexNavigationBar isCollapsed navFrame hasClass 39 collapsed 39 Check if any children are already hidden This loop is here for backwards compatibility the old way of making NavFrames start out collapsed was to manually add style display none to all the NavPic NavContent elements Since this was bad for accessibility no way to make the content visible without JavaScript support the new recommended way is to add the class collapsed to the NavFrame itself just like with collapsible tables for navChild navFrame firstChild navChild null amp amp isCollapsed navChild navChild nextSibling if navChild hasClass 39 NavPic 39 navChild hasClass 39 NavContent 39 if navChild style display 39 none 39 isCollapsed true if isCollapsed for navChild navFrame firstChild navChild null navChild navChild nextSibling if navChild hasClass 39 NavPic 39 navChild hasClass 39 NavContent 39 navChild style display 39 none 39 navToggleText document createTextNode isCollapsed navigationBarShow navigationBarHide navToggle appendChild navToggleText Find the NavHead and attach the toggle link Must be this complicated because Moz 39 s firstChild handling is borked for j 0 j lt navFrame childNodes length j if navFrame childNodes j hasClass 39 NavHead 39 navToggle style color navFrame childNodes j style color navFrame childNodes j appendChild navToggle navFrame setAttribute 39 id 39 39 NavFrame 39 indexNavigationBar mw hook 39 wikipage content 39 add createNavigationBarToggleButton Technical restrictions title fix Description Maintainers User Interiot User Mets501 User Freakofnurture For pages that have something like Template Lowercase replace the title but only if it is cut and pasteable as a valid wikilink for instance iPod 39 s title is updated But C is not an equivalent wikilink so C Sharp doesn 39 t have its main title changed Likewise for users who have selected the U K date format 1 March the titles of day of the year articles will appear in that style Users with any other date setting are not affected The function looks for a banner like this amp lt div id RealTitleBanner amp gt amp lt span id RealTitle amp gt title amp lt span amp gt amp lt div amp gt An element with id DisableRealTitle disables the function var disableRealTitle 0 users can set disableRealTitle 1 locally to disable if mw config get 39 wgIsArticle 39 don 39 t display the RealTitle when editing since it is apparently inconsistent doesn 39 t show when editing sections doesn 39 t show when not previewing function try var realTitleBanner document getElementById RealTitleBanner if realTitleBanner amp amp document getElementById DisableRealTitle amp amp disableRealTitle var realTitle document getElementById RealTitle if realTitle var realTitleHTML realTitle innerHTML realTitleText pickUpText realTitle var isPasteable 0 var containsHTML lt test realTitleHTML contains ANY HTML var containsTooMuchHTML lt test realTitleHTML replace lt sub sup small big gt gi contains HTML that will be ignored when cut n pasted as a wikilink calculate whether the title is pasteable var verifyTitle realTitleText replace trim left spaces verifyTitle verifyTitle charAt 0 toUpperCase verifyTitle substring 1 verifyTitle length uppercase first character if the namespace prefix is there remove it on our verification copy If it isn 39 t there add it to the original realValue copy if mw config get 39 wgNamespaceNumber 39 0 if mw config get 39 wgCanonicalNamespace 39 verifyTitle substr 0 mw config get 39 wgCanonicalNamespace 39 length replace g amp amp verifyTitle charAt mw config get 39 wgCanonicalNamespace 39 length verifyTitle verifyTitle substr mw config get 39 wgCanonicalNamespace 39 length 1 else realTitleText mw config get 39 wgCanonicalNamespace 39 replace g realTitleText realTitleHTML mw config get 39 wgCanonicalNamespace 39 replace g realTitleHTML verify whether wgTitle matches verifyTitle verifyTitle replace s g underscores and multiple spaces to single spaces verifyTitle verifyTitle replace s replace s trim left and right spaces verifyTitle verifyTitle charAt 0 toUpperCase verifyTitle substring 1 verifyTitle length uppercase first character if verifyTitle mw config get 39 wgTitle 39 verifyTitle mw config get 39 wgTitle 39 replace January February March April May June July August September October November December s 12 0 9 3 0123 d g 1 3 2 4 isPasteable 1 var h1 document getElementsByTagName h1 0 if h1 amp amp isPasteable h1 innerHTML containsTooMuchHTML realTitleText realTitleHTML if containsTooMuchHTML realTitleBanner style display none document title realTitleText Wikipedia the free encyclopedia catch e Something went wrong similar to innerHTML but only returns the text portions of the insides excludes HTML function pickUpText aParentElement var str function pickUpTextInternal aElement var child aElement firstChild while child if child nodeType 1 ELEMENT NODE pickUpTextInternal child else if child nodeType 3 TEXT NODE str child nodeValue child child nextSibling pickUpTextInternal aParentElement return str fix edit summary prompt for undo this code fixes the fact that the undo function combined with the no edit summary prompter causes problems if leaving the edit summary unchanged this was added by User Deskana code by User Tra function if document location search indexOf undo 1 amp amp document getElementsByName 39 wpAutoSummary 39 0 document getElementsByName 39 wpAutoSummary 39 0 value 39 39 Qeydiyyatdan kecmis istifadeciler ucun gizli kateqoriyalarin gosterilmesi ucun duymesini elave eden funksiya function hiddencat if mw util getParamValue 39 printable 39 39 yes 39 return var cl document getElementById 39 catlinks 39 if cl return var hc 39 mw hidden catlinks 39 if hc length return if hc hasClass 39 mw hidden cats user shown 39 return if hc hasClass 39 mw hidden cats ns shown 39 hc addClass 39 mw hidden cats hidden 39 var nc document getElementById 39 mw normal catlinks 39 if nc var catline document createElement 39 div 39 catline id 39 mw normal catlinks 39 var a document createElement 39 a 39 a href 39 39 a title 39 39 a appendChild document createTextNode 39 Kateqoriyalar 39 catline appendChild a catline appendChild document createTextNode 39 39 nc cl insertBefore catline cl firstChild var lnk document createElement 39 a 39 lnk id 39 mw hidden cats link 39 lnk title 39 Bu meqalede gizli kateqoriyalar var 39 lnk style cursor 39 pointer 39 lnk style color 39 black 39 lnk style marginLeft 39 0 3em 39 lnk click toggleHiddenCats lnk appendChild document createTextNode 39 39 nc appendChild lnk function toggleHiddenCats e var hc 39 mw hidden catlinks 39 if hc hasClass 39 mw hidden cats hidden 39 hc removeClass 39 mw hidden cats hidden 39 hc addClass 39 mw hidden cat user shown 39 e target text 39 39 else hc removeClass 39 mw hidden cat user shown 39 hc addClass 39 mw hidden cats hidden 39 e target text 39 39 mw loader using 39 mediawiki util 39 then function hiddencat Add dismiss button to watchlist message Description Hide the watchlist message for one week Maintainers User Ruud Koot Ruud Koot function addDismissButton var watchlistMessage document getElementById watchlist message if watchlistMessage null return if document cookie indexOf hidewatchlistmessage yes 1 watchlistMessage style display none var Button document createElement span var ButtonLink document createElement a var ButtonText document createTextNode dismiss ButtonLink setAttribute id dismissButton ButtonLink setAttribute href javascript dismissWatchlistMessage ButtonLink setAttribute title Hide this message for one week ButtonLink appendChild ButtonText Button appendChild document createTextNode Button appendChild ButtonLink Button appendChild document createTextNode watchlistMessage appendChild Button function dismissWatchlistMessage var e new Date e setTime e getTime 7 24 60 60 1000 document cookie hidewatchlistmessage yes expires e toGMTString path var watchlistMessage document getElementById watchlist message watchlistMessage style display none addDismissButton MediaWiki media player Description A Java player for in browser playback of media files Created by User Gmaxwell mw loader load 39 en wikipedia org w index php title Mediawiki Wikimediaplayer js amp action raw amp ctype text javascript 39 mw hook 39 ve loadModules 39 add function addPlugin Vikilesdirinin vizual redaktorda gorunmesi addPlugin function return mw loader using 39 ext gadget wikificator 39 Sidebar Deyisiklikleri function ModifySidebar action section name link try switch section case Basqa dillerde var target p lang break case Aletler sandigi var target p tb break case rehber var target p navigation break default var target p section break if action add var node document getElementById target getElementsByTagName 39 div 39 0 getElementsByTagName 39 ul 39 0 var aNode document createElement 39 a 39 var liNode document createElement 39 li 39 aNode appendChild document createTextNode name aNode setAttribute 39 href 39 link liNode appendChild aNode liNode className 39 plainlinks 39 node appendChild liNode if action remove var list document getElementById target getElementsByTagName 39 div 39 0 getElementsByTagName 39 ul 39 0 var listelements list getElementsByTagName 39 li 39 for var i 0 i lt listelements length i if listelements i getElementsByTagName 39 a 39 0 innerHTML name listelements i getElementsByTagName 39 a 39 0 href link list removeChild listelements i catch e lets just ignore what 39 s happened return lt source gt Results from Wikidata File Wdsearch script screenshot png if mw config get 39 wgCanonicalSpecialPageName 39 39 Search 39 mw config get 39 wgArticleId 39 0 amp amp mw config get 39 wgCanonicalSpecialPageName 39 false mw loader load en wikipedia org w index php title MediaWiki Wdsearch js amp action raw amp ctype text javascript Imagemap Highlight if 39 imageMapHighlighter 39 length amp amp 39 lt canvas gt 39 0 getContext importScript 39 MediaWiki Imagemap Highlight js 39 imgToggle if 39 div img toggle 39 length mw loader load 39 ext gadget imgToggle 39 withJS Izah URL kecidleri ile MediaViki skriptlerinin ise salinmasi menbe www mediawiki org wiki Snippets Load JS and CSS by URL mw loader using 39 mediawiki util 39 then gt var extraCSS mw util getParamValue 39 withCSS 39 extraJS mw util getParamValue 39 withJS 39 if extraCSS if extraCSS match Media VW iki amp lt gt css mw loader load 39 w index php title 39 extraCSS 39 amp action raw amp ctype text css 39 39 text css 39 else mw notify 39 Yalniz MediaViki ad fezasindaki sehifelere icaze verilir 39 title 39 Yanlis withCSS deyeri 39 if extraJS if extraJS match Media VW iki amp lt gt js mw loader load 39 w index php title 39 extraJS 39 amp action raw amp ctype text javascript 39 else mw notify 39 Yalniz MediaViki ad fezasindaki sehifelere icaze verilir 39 title 39 Yanlis withJS deyeri 39 Magic editintros Izah Yasayan insanlarin meqalelerini redakte ederken gosterilen xeberdarliq qutusu Muellif User RockMFR function addEditIntro name 39 mw editsection ca edit ca ve edit 39 find 39 a 39 each function i el el href this attr 39 href 39 39 amp editintro 39 name if mw config get 39 wgNamespaceNumber 39 2 mw config get 39 wgNamespaceNumber 39 3 function if document getElementById 39 userpageedn 39 addEditIntro 39 Sablon Editnotice userpage 39 if mw config get 39 wgNamespaceNumber 39 0 function if document getElementById 39 disambigbox 39 addEditIntro 39 Sablon Disambig editintro 39 function var cats mw config get 39 wgCategories 39 if cats return if inArray 39 Yasayan insanlar 39 cats 1 inArray 39 Yasayan uzunomurluler 39 cats 1 addEditIntro 39 Sablon BLP editintro 39 function mw loader using 39 mediawiki api 39 then gt new mw Api userAgent 39 Common js azwiki 39 get action 39 parse 39 page Muzakire mw config get 39 wgTitle 39 format 39 json 39 done data gt if id refideas anchor test data parse text 39 39 addEditIntro 39 Sablon Faydali istinad editnotice 39 Web2Cit mw loader load 39 en wikipedia org w index php title User Diegodlh Web2Cit script js amp action raw amp ctype text javascript 39 Backlink en User Diegodlh Web2Cit script js mw hook 39 ve activationComplete 39 add function mw loader load 39 ext gadget summaryButtons 39 collapsed sinifli lt table gt elementleri autocollapse veziyyetine getirilir mw hook 39 wikipage content 39 add gt document querySelectorAll 39 table collapsed 39 forEach tab gt tab classList replace 39 collapsed 39 39 autocollapse 39 Menbe https az wikipedia org w index php title MediaViki Common js amp oldid 8249699
