MediaWiki:Common.js

z Kitakija

(rozdźěl mjez wersijomaj)
Dźi do: Nawigacija, Pytać
Dundak (diskusija)
(http://hsb.wikipedia.org/w/index.php?title=Diskusija_z_wu%C5%BEiwarjom%3ADundak&diff=9849&oldid=9436)
Přichodna změna →

Wersija z 07:56, 16. jan 2007

/* Jedes JavaScript hier wird für alle Benutzer für jede Seite geladen. */
 
 // ============================================================
 // BEGIN Configuration for "star" logo at the top of Featured Articles
 
 /** set to false in [[Special:Mypage/monobook.js]] to switch off this "feature" */
 var enable_linkFA = true;
 
 /** 
  * star logo for featured articles in other languages,
  * see [[:Template:Link_FA]] and [[MediaWiki:Common.css]]
  */
 function linkFA() {
     // early exit when diabled
     if (!enable_linkFA) return;
 
     // links are to replaced in p-lang only
     var    pLang   = document.getElementById("p-lang");
     if (!pLang)    return;
     var    lis = pLang.getElementsByTagName("li");
     for (var i=0; i<lis.length; i++) {
          var   li  = lis[i];
          // only links with a corresponding Link_FA template are interesting
          if (!document.getElementById(li.className + "-fa"))   continue;
 
          // additional class so the template can be hidden with CSS
          li.className += " FA";
 
          // change title
          li.title = "Dieser Artikel wurde als exzellent bewertet.";
     }
 }
 // aOnloadFunctions[aOnloadFunctions.length] = linkFA;
 addOnloadHook(linkFA);
 
 // END Configuration for "star" logo at the top of Featured Articles */
 // ============================================================
Wosobinske nastroje