MediaWiki:Common.js — различия между версиями

Материал из ANT-Inform documentation
Перейти к: навигация, поиск
(test)
(importScript('MediaWiki:Collapsebuttons.js') always to see changes in edit preview also)
 
(не показаны 4 промежуточные версии этого же участника)
Строка 15: Строка 15:
 
  */
 
  */
  
alert('qwerty');
+
/* Statistics */
 
+
 
   var _gaq = _gaq || [];
 
   var _gaq = _gaq || [];
 
   _gaq.push(['_setAccount', 'UA-38366739-1']);
 
   _gaq.push(['_setAccount', 'UA-38366739-1']);
Строка 26: Строка 25:
 
     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 
     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 
   })();
 
   })();
 +
 +
/*
 +
Copy of http://wiki.ru.grepolis.com/wiki/MediaWiki:Common.js to allow work Шаблон:спойлер
 +
*/
 +
/* if(wgAction == 'view' || wgAction == 'submit') { */
 +
  importScript('MediaWiki:Collapsebuttons.js');
 +
/*}*/

Текущая версия на 13:04, 23 декабря 2014

/* Размещённый здесь код JavaScript будет загружаться пользователям при обращении к каждой странице */
 
/* http://en.wikipedia.org/wiki/User:Js/ajaxPreview
importScript('User:Js/ajaxPreview.js'); // [[user:js/ajaxPreview]]
 */
 
/* http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/External_editor
 
addOnloadHook(function() {
    var editTab = document.getElementById("ca-edit");
    if (!editTab) return;
    var editURL = editTab.getElementsByTagName("a")[0].href;
    addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", "");
});
 */
 
/* Statistics */
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-38366739-1']);
  _gaq.push(['_trackPageview']);
 
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
 
/*
Copy of http://wiki.ru.grepolis.com/wiki/MediaWiki:Common.js to allow work Шаблон:спойлер
*/
/* if(wgAction == 'view' || wgAction == 'submit') { */
  importScript('MediaWiki:Collapsebuttons.js');
/*}*/