fbpx
Wikipedia

MediaViki:Common.js

Diqqət Dəyişiklikləri yayımladıqdan sonra etdiyiniz dəyişiklikləri görmək üçün brauzerinizin keşinin yenilə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: Refresh düyməsini basılı tutarkən Ctrl düyməsinə basın, və ya sadəcə Ctrl-F5
  • Opera: Ctrl-F5.
/**  * 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' ).done( 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 );  } }  // Switch language variants of messages (from zh) function wgULS(latn,arab){  //  az=latn||arab;  az=az;  latn=latn;  arab=arab;  switch(mw.config.get('wgUserLanguage')){  case "az": return ku;  case "az-arab": return arab;  case "az-latn": return latn;  default: return "";  } }  /** 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 (temp.className === "center") { units.push(temp); }  }  var rightlink;  var commentText;  for (j = 0; j < units.length; j++) {  currentimage = units[j];  currentimage.id = "ImageGroupsGr" + i + "Im" + j;  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) {  currentimage.insertBefore(imghead,currentimage.childNodes[0]);  }  if (j !== 0) {  currentimage.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 );  }); }   function editZeroSection(){  if( !mw.config.get('wgArticleId') ) return;  mw.util.$content.find('h2')  .children('.mw-editsection:first')  .clone().prependTo('#bodyContent')  .css('float','right')  .find('a')  .each(function(index) {  $( this ).attr('title', zeroSectionTip);  if ($( this ).attr('class') === "mw-editsection-visualeditor" ) {  $( this ).attr('href', mw.config.get('wgScript') + '?title='+mw.util.wikiUrlencode(mw.config.get('wgPageName')) + '&veaction=edit&vesection=0');  } else {  $( this ).attr('href', mw.config.get('wgScript') + '?title='+mw.util.wikiUrlencode(mw.config.get('wgPageName')) + '&action=edit&section=0');  }  }); }   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:   // &lt;div id="RealTitleBanner"&gt; ... &lt;span id="RealTitle"&gt;title&lt;/span&gt; ... &lt;/div&gt;  // 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', 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');  // Choice of multiple search engines // Autor: Jakob Voss, Guillaume (tret de de:MediaWiki:SpezialSuche.js) // Version: 0.3.8 // Published as Public Domain  // Map of search engines and some OpenSearch-based fields var searchEngines = {  mediawiki: {  ShortName: "MediaViki axtarışı",  Template: "/w/index.php?search={searchTerms}"  },  globalwpsearch: {  ShortName: "Qlobal vikipediyalar",  Template: "http://vs.aka-online.de/cgi-bin/globalwpsearch.pl?timeout=120&search={searchTerms}"  },  google: {  ShortName: "Google",  Template: "http://www.google.cat/search?as_sitesearch=az.wikipedia.org&hl={language}&q={searchTerms}"  },  wikiwix: {  ShortName: "Wikiwix",  Template: "http://www.wikiwix.com/index.php?action={searchTerms}&lang=az"  },  yahoo: {  ShortName: "Yahoo!",  Template: "http://search.yahoo.com/search?p={searchTerms}&vs=az.wikipedia.org"  },  wlive: {  ShortName: "Windows Live",  Template: "http://search.live.com/results.aspx?q={searchTerms}&q1=site:http://az.wikipedia.org"  } };   function externalSearchEngines() {  if (typeof SpecialSearchEnhanced2Disabled != 'undefined') return;    var mainNode = document.getElementById("powersearch");  if (!mainNode) mainNode = document.getElementById("search");  if (!mainNode) return;   var beforeNode = document.getElementById("mw-search-top-table");  if (!beforeNode) return;  beforeNode = beforeNode.nextSibling;  if (!beforeNode) return;   var firstEngine = "mediawiki";   var choices = document.createElement("div");  choices.setAttribute("id","searchengineChoices");  choices.style.textAlign = "center";   var lsearchbox = document.getElementById("searchText");  var initValue = lsearchbox.value;   var space = "";   for (var id in searchEngines) {  var engine = searchEngines[id]; if(engine.ShortName)  {  if (space) choices.appendChild(space);  space = document.createTextNode(" ");   var attr = {  type: "radio",  name: "searchengineselect",  value: id,  onFocus: "changeSearchEngine(this.value)",  id: "searchengineRadio-"+id  };   var html = "<input";  for (var a in attr) html += " " + a + "='" + attr[a] + "'";  html += " />";  var span = document.createElement("span");  span.innerHTML = html;   choices.appendChild( span );  var label  if (engine.Template.indexOf('http') == 0) {  label = document.createElement("a");  label.href = engine.Template.replace("{searchTerms}", initValue).replace("{language}", "fr");  } else {  label = document.createElement("label");  }   label.appendChild( document.createTextNode( engine.ShortName ) );  choices.appendChild( label );  }  }  mainNode.insertBefore(choices, beforeNode);   var input = document.createElement("input");  input.id = "searchengineextraparam";  input.type = "hidden";   mainNode.insertBefore(input, beforeNode);   changeSearchEngine(firstEngine, initValue); }  function changeSearchEngine(selectedId, searchTerms) {   var currentId = document.getElementById("searchengineChoices").currentChoice;  if (selectedId == currentId) return;   document.getElementById("searchengineChoices").currentChoice = selectedId;  var radio = document.getElementById('searchengineRadio-' + selectedId);  radio.checked = "checked";   var engine = searchEngines[selectedId];  var p = engine.Template.indexOf('?');  var params = engine.Template.substr(p+1);   var form;  if (document.forms["search"]) {  form = document.forms["search"];  } else {  form = document.getElementById("powersearch");  }  form.setAttribute("action", engine.Template.substr(0,p));   var l = ("" + params).split("&");  for (var idx = 0;idx < l.length;idx++) {  var p = l[idx].split("=");  var pValue = p[1];   if (pValue == "{language}") {  } else if (pValue == "{searchTerms}") {  var input;  input = document.getElementById("searchText");   input.name = p[0];  } else {  var input = document.getElementById("searchengineextraparam");   input.name = p[0];  input.value = pValue;  }  } }  if (mw.config.get('wgCanonicalSpecialPageName') == "Search") {  $(externalSearchEngines); } if (mw.config.get('wgAction') == "edit" || mw.config.get('wgAction') == "submit") {  importScript('MediaWiki:Editpage.js');  mw.loader.load('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  */  // На странице есть как минимум один элемент .imageMapHighlighter, а браузер поддерживает <canvas>  if ( $( '.imageMapHighlighter' ).length && $( '<canvas>' )[ 0 ].getContext ) {  importScript( 'MediaWiki:Imagemap-Highlight.js' );  }  /**  * imgToggle  */  // На странице есть как минимум один элемент div.img_toggle  if ( $( 'div.img_toggle' ).length ) {  mw.loader.load( 'ext.gadget.imgToggle' );  }  //****************************************************************** // Metaqutu şablonu üçün //******************************************************************   /* Funcionament de la Plantilla:Metacaixa  Implementat per: Usuari:Peleguer.  Actualitzat per Joanjoc seguint les indicacions d'en Martorell  */   function MetaCaixaInit(){  //S'executa al carregar-se la pàgina, si hi ha metacaixes,  // s'assignen els esdeveniments als botons  //alert("MetaCaixaInit");   var i=0 //Inicialitzem comptador de caixes  for (i=0;i<=34;i++){  var vMc = document.getElementById("mc"+i);  if (!vMc) break;  //alert("MetaCaixaInit, trobada Metacaixa mc"+i);   var j=1 //Inicialitzem comptador de botons dins de la caixa  var vPsIni = 0 //Pestanya visible inicial  for (j=1;j<=34;j++){  var vBt = document.getElementById("mc"+i+"bt"+j);  if (!vBt) break;  //alert("MetaCaixaInit, trobat botó mc"+i+"bt"+j);  vBt.onclick = MetaCaixaMostraPestanya; //A cada botó assignem l'esdeveniment onclick  //alert (vBt.className);  if (vBt.className=="mcBotoSel") vPsIni=j; //Si tenim un botó seleccionat, en guardem l'index  }  //alert ("mc="+i+", ps="+j+", psini="+vPsIni );  if (vPsIni == 0) { //Si no tenim cap botó seleccionat, n'agafem un aleatòriament  vPsIni = 1+Math.floor((j-1)*Math.random()) ;  //alert ("Activant Pestanya a l'atzar; _mc"+i+"bt"+vPsIni +"_");  document.getElementById("mc"+i+"ps"+vPsIni).style.display = "block";  document.getElementById("mc"+i+"ps"+vPsIni).style.visibility = "visible";  document.getElementById("mc"+i+"bt"+vPsIni).className="mcBotoSel";  }  }  }   function MetaCaixaMostraPestanya(){  //S'executa al clicar una pestanya,  //aquella es fa visible i les altres s'oculten  var vMcNom = this.id.substr(0,3); //A partir del nom del botó, deduïm el nom de la caixa  var vIndex = this.id.substr(5,1); //I l'index   var i=1  for (i=1;i<=34;i++){ //busquem totes les pestanyes d'aquella caixa  //alert(vMcNom+"ps"+i);  var vPsElem = document.getElementById(vMcNom+"ps"+i);  if (!vPsElem) break;  if (vIndex==i){ //Si és la pestanya bona la mostrem i canviem la classe de botó  vPsElem.style.display = "block";  vPsElem.style.visibility = "visible";  document.getElementById(vMcNom+"bt"+i).className="mcBotoSel";  } else { //Sinó, l'ocultem i canviem la classe de botó  vPsElem.style.display = "none";  vPsElem.style.visibility = "hidden";  document.getElementById(vMcNom+"bt"+i).className="mcBoto";  }  }  return false; //evitem la recàrrega de la pàgina  }  $(MetaCaixaInit); // metaqutunun sonu  /**  * Magic editintros ****************************************************  *  * Description: Adds editintros on disambiguation pages and BLP pages.  * Maintainers: [[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( 'Template: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( 'Template:BLP_editintro' );  }  } ); } 

mediaviki, common, diqqət, dəyişiklikləri, yayımladıqdan, sonra, etdiyiniz, dəyişiklikləri, görmək, üçün, brauzerinizin, keşinin, yenilənməsi, lazım, bilər, firefox, safari, reload, düyməsinə, basılı, tutarkən, shift, düyməsinə, basın, ctrl, ctrl, üçün, google. Diqqet Deyisiklikleri yayimladiqdan sonra etdiyiniz deyisiklikleri gormek ucun brauzerinizin kesinin yenilenmesi lazim ola biler Firefox Safari Reload duymesine basili tutarken Shift duymesine basin ve ya Ctrl F5 ve ya Ctrl R Mac ucun R Google Chrome Ctrl Shift R Mac ucun Shift R Internet Explorer Edge Refresh duymesini basili tutarken Ctrl duymesine basin ve ya sadece Ctrl F5 Opera Ctrl F5 Skriptleri yuklemek ucun 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 done function mw loader load proj w index php title mw util wikiUrlencode page amp action raw amp ctype text javascript runAsEarlyAsPossible from ruwiki function runAsEarlyAsPossible callback testElement func func func testElement testElement footer if testElement length callback else func callback Switch language variants of messages from zh function wgULS latn arab az latn arab az az latn latn arab arab switch mw config get wgUserLanguage case az return ku case az arab return arab case az latn return latn default return 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 temp className center units push temp var rightlink var commentText for j 0 j lt units length j currentimage units j currentimage id ImageGroupsGr i Im j 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 currentimage insertBefore imghead currentimage childNodes 0 if j 0 currentimage 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 basqa dildeki secilmis meqaledir fl Bu basqa dildeki secilmis siyahidir ga Bu basqa dildeki yaxsi meqaledir var zeroSectionTip Girisi redakte et var NavigationBarHide gizlet var NavigationBarShow goster 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 amp amp iw hasClass badge featuredarticle amp amp iw hasClass badge goodarticle amp amp iw hasClass badge featuredlist iw addClass s toUpperCase attr title listFA s textFA function editZeroSection if mw config get wgArticleId return mw util content find h2 children mw editsection first clone prependTo bodyContent css float right find a each function index this attr title zeroSectionTip if this attr class mw editsection visualeditor this attr href mw config get wgScript title mw util wikiUrlencode mw config get wgPageName amp veaction edit amp vesection 0 else this attr href mw config get wgScript title mw util wikiUrlencode mw config get wgPageName amp action edit amp section 0 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 gt 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 gt th first prepend element find tr first gt gt mw collapsible toggle if collapsibleContent length gt autoCollapseThreshold amp amp element hasClass autocollapse element data mw collapsible collapse else if element hasClass innercollapse if element parents outercollapse length gt 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 gizle var expandCaption goster 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 Sablon Yarimbasliq ucun function sousTitreH1 content firstHeading gt 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 lt div gt 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 amp amp 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 lt 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 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 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 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 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 amp amp 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 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 wpAutoSummary 0 document getElementsByName wpAutoSummary 0 value Qeydiyyatdan kecmis istifadeciler ucun gizli kateqoriyalarin gosterilmesi ucun duymesini elave eden 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 meqalede 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 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 amp action raw amp ctype text javascript Choice of multiple search engines Autor Jakob Voss Guillaume tret de de MediaWiki SpezialSuche js Version 0 3 8 Published as Public Domain Map of search engines and some OpenSearch based fields var searchEngines mediawiki ShortName MediaViki axtarisi Template w index php search searchTerms globalwpsearch ShortName Qlobal vikipediyalar Template http vs aka online de cgi bin globalwpsearch pl timeout 120 amp search searchTerms google ShortName Google Template http www google cat search as sitesearch az wikipedia org amp hl language amp q searchTerms wikiwix ShortName Wikiwix Template http www wikiwix com index php action searchTerms amp lang az yahoo ShortName Yahoo Template http search yahoo com search p searchTerms amp vs az wikipedia org wlive ShortName Windows Live Template http search live com results aspx q searchTerms amp q1 site http az wikipedia org function externalSearchEngines if typeof SpecialSearchEnhanced2Disabled undefined return var mainNode document getElementById powersearch if mainNode mainNode document getElementById search if mainNode return var beforeNode document getElementById mw search top table if beforeNode return beforeNode beforeNode nextSibling if beforeNode return var firstEngine mediawiki var choices document createElement div choices setAttribute id searchengineChoices choices style textAlign center var lsearchbox document getElementById searchText var initValue lsearchbox value var space for var id in searchEngines var engine searchEngines id if engine ShortName if space choices appendChild space space document createTextNode var attr type radio name searchengineselect value id onFocus changeSearchEngine this value id searchengineRadio id var html lt input for var a in attr html a attr a html gt var span document createElement span span innerHTML html choices appendChild span var label if engine Template indexOf http 0 label document createElement a label href engine Template replace searchTerms initValue replace language fr else label document createElement label label appendChild document createTextNode engine ShortName choices appendChild label mainNode insertBefore choices beforeNode var input document createElement input input id searchengineextraparam input type hidden mainNode insertBefore input beforeNode changeSearchEngine firstEngine initValue function changeSearchEngine selectedId searchTerms var currentId document getElementById searchengineChoices currentChoice if selectedId currentId return document getElementById searchengineChoices currentChoice selectedId var radio document getElementById searchengineRadio selectedId radio checked checked var engine searchEngines selectedId var p engine Template indexOf var params engine Template substr p 1 var form if document forms search form document forms search else form document getElementById powersearch form setAttribute action engine Template substr 0 p var l params split amp for var idx 0 idx lt l length idx var p l idx split var pValue p 1 if pValue language else if pValue searchTerms var input input document getElementById searchText input name p 0 else var input document getElementById searchengineextraparam input name p 0 input value pValue if mw config get wgCanonicalSpecialPageName Search externalSearchEngines if mw config get wgAction edit mw config get wgAction submit importScript MediaWiki Editpage js mw loader load ext gadget wikificator 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 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 lt 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 lt source gt Results from Wikidata File Wdsearch script screenshot png if mw config get wgCanonicalSpecialPageName Search mw config get wgArticleId 0 amp amp mw config get wgCanonicalSpecialPageName false mw loader load en wikipedia org w index php title MediaWiki Wdsearch js amp action raw amp ctype text javascript Imagemap Highlight Na stranice est kak minimum odin element imageMapHighlighter a brauzer podderzhivaet lt canvas gt if imageMapHighlighter length amp amp lt canvas gt 0 getContext importScript MediaWiki Imagemap Highlight js imgToggle Na stranice est kak minimum odin element div img toggle if div img toggle length mw loader load ext gadget imgToggle Metaqutu sablonu ucun Funcionament de la Plantilla Metacaixa Implementat per Usuari Peleguer Actualitzat per Joanjoc seguint les indicacions d en Martorell function MetaCaixaInit S executa al carregar se la pagina si hi ha metacaixes s assignen els esdeveniments als botons alert MetaCaixaInit var i 0 Inicialitzem comptador de caixes for i 0 i lt 34 i var vMc document getElementById mc i if vMc break alert MetaCaixaInit trobada Metacaixa mc i var j 1 Inicialitzem comptador de botons dins de la caixa var vPsIni 0 Pestanya visible inicial for j 1 j lt 34 j var vBt document getElementById mc i bt j if vBt break alert MetaCaixaInit trobat boto mc i bt j vBt onclick MetaCaixaMostraPestanya A cada boto assignem l esdeveniment onclick alert vBt className if vBt className mcBotoSel vPsIni j Si tenim un boto seleccionat en guardem l index alert mc i ps j psini vPsIni if vPsIni 0 Si no tenim cap boto seleccionat n agafem un aleatoriament vPsIni 1 Math floor j 1 Math random alert Activant Pestanya a l atzar mc i bt vPsIni document getElementById mc i ps vPsIni style display block document getElementById mc i ps vPsIni style visibility visible document getElementById mc i bt vPsIni className mcBotoSel function MetaCaixaMostraPestanya S executa al clicar una pestanya aquella es fa visible i les altres s oculten var vMcNom this id substr 0 3 A partir del nom del boto deduim el nom de la caixa var vIndex this id substr 5 1 I l index var i 1 for i 1 i lt 34 i busquem totes les pestanyes d aquella caixa alert vMcNom ps i var vPsElem document getElementById vMcNom ps i if vPsElem break if vIndex i Si es la pestanya bona la mostrem i canviem la classe de boto vPsElem style display block vPsElem style visibility visible document getElementById vMcNom bt i className mcBotoSel else Sino l ocultem i canviem la classe de boto vPsElem style display none vPsElem style visibility hidden document getElementById vMcNom bt i className mcBoto return false evitem la recarrega de la pagina MetaCaixaInit metaqutunun sonu Magic editintros Description Adds editintros on disambiguation pages and BLP pages Maintainers User RockMFR function addEditIntro name mw editsection ca edit ca ve edit find a each function i el el href this attr href amp editintro name if mw config get wgNamespaceNumber 2 mw config get wgNamespaceNumber 3 function if document getElementById userpageedn addEditIntro Sablon Editnotice userpage if mw config get wgNamespaceNumber 0 function if document getElementById disambigbox addEditIntro Template Disambig editintro function var cats mw config get wgCategories if cats return if inArray Yasayan insanlar cats 1 inArray Yasayan uzunomurluler cats 1 addEditIntro Template BLP editintro Menbe https az wikipedia org w index php title MediaViki Common js amp oldid 6402857, wikipedia, oxu, kitab, kitabxana, axtar, tap, hersey,

ne axtarsan burda

, en yaxsi meqale sayti, meqaleler, kitablar, oyrenmek, wiki, bilgi, tarix, seks, porno, indir, yukle, sex, azeri sex, azeri, seks yukle, sex yukle, izle, seks izle, porno izle, mobil seks, telefon ucun, chat, azeri chat, tanisliq, tanishliq, azeri tanishliq, sayt, medeni, medeni saytlar, chatlar, mekan, tanisliq mekani, mekanlari, yüklə, pulsuz, pulsuz yüklə, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, şəkil, muisiqi, mahnı, kino, film, kitab, oyun, oyunlar.