MediaWiki:Common.js

Материал из Энциклопедия Аквариумистики
importScript_ = importScript
importScript = function (page, proj){
 if (!proj) importScript_(page)
 else {
   importScriptURI('//www.aquawiki.ru/load?action=raw&ctype=text/javascript&title='+encodeURIComponent(page.replace(/ /g,'_')))
 }
}


if( wgCanonicalNamespace == 'Special' ) {
   if (/^(Uplo|Sear|Stat|Spec|Abus)/i.test(wgCanonicalSpecialPageName)) importScript_('MediaWiki:'+wgCanonicalSpecialPageName+'.js')
} else if (wgAction != 'history') {
  if (navigator.appName=='Microsoft Internet Explorer' && document.createStyleSheet) {
    document.createStyleSheet().addRule('.IPA', 'font-family: "Doulos SIL", "Charis SIL", Gentium, "DejaVu Sans", Code2000, "TITUS Cyberbit Basic", "Arial Unicode MS", "Lucida Sans Unicode", "Chrysanthi Unicode";')
  }
  if (wgArticleId==4401) importScript_('MediaWiki:Mainpage.js')
  if (wgAction=='edit' || wgAction=='submit') importScript_('MediaWiki:Editpage.js')
}

importScriptURI('/MediaWiki:Wikificator.js?action=raw&ctype=text/javascript')