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

м
нет описания правки
Нет описания правки
мНет описания правки
Строка 3: Строка 3:
   // Примечания в цитатах
   // Примечания в цитатах
   //
   //
   $('blockquote.quote sup.reference a').each (function () {
   $('blockquote.quote sup.reference a').each (function () {
     var match = $(this).text ().match (/\[([^\[\]]*)\s([\d]+)\]/);
     var match = $(this).text ().match (/\[([^\[\]]*)\s([\d]+)\]/);
     if (match !== null)
     if (match !== null) {
       $(this).addClass ('localRefRef').text (match[2]);
       $(this).text ('[' + match[2] + ']');
      $(this).parent ().addClass ('localCiteRef');
    }
   });
   });