KIFfel:Franz/monobook.js: Unterschied zwischen den Versionen

Aus KIF
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/*-----------------------------------------------------------------------------------------*/
/* Jedes JavaScript hier wird für alle Benutzer für jede Seite geladen. */
/* ACHTUNG! Common.css enthält die gemeinsamen Skin-Anpassungen der deutschsprachigen Wikipedia */
/*-----------------------------------------------------------------------------------------*/
   
   
/* Common.css ist in drei grundlegende Abschnitte gegliedert: */
//=============================================================
//*** Configuration for "star" logo in front of interwiki links to Featured Articles
   
   
/* 1. Editierbare Seiteninhalte */
/** set to false in Special:Mypage/monobook.js to switch off this "feature" */
/* 2. Sonstige Anpassungen (Spezialseiten, u.a.) */
var linkFA_enabled = true;
  /* 3. Hauptseitenspezifisches */
   
   
/* Jede Ergänzung/Änderung muss vorher jeweils für alle Skins auf Tauglichkeit getestet werden, */
/** description that is displayed when cursor hovers above FA interwiki links */
/* individuell per User.css! Ist hier erstmal geändert, dauert es dank Cache eine Weile, bis die */
var linkFA_description = "Dieser Artikel wurde als exzellent bewertet.";
/* Änderungen bei allen Nutzern sichtbar oder, bei Fehlern, korrigiert sind. */
   
   
// linkFA_bullet and linkFA_style werden nur für cologneblue, nostalgia and standard verwendet,
// für monobook und simple siehe [[MediaWiki:Common.css]]
   
   
/* +++++ 1. ANPASSUNGEN DER ANZEIGE VON EDITIERBAREN SEITENINHALTEN +++++ */
/** image to use instead of the standard bullet (for cologneblue, nostalgia and standard */
var linkFA_bullet = "http://upload.wikimedia.org/wikipedia/commons/d/d0/Monobook-bullet-star-transparent.png";
   
   
/* Personennamen in Kapitälchen: class="Person" */
/** style to use for the linkFA_bullet img */
var linkFA_style = "margin-right: 0.2em;";
   
   
  .Person {
/**
     display: inline;
  * star logo for featured articles in other languages,
    font-variant: small-caps;
* see Template:Link_FA and MediaWiki:Common.css
     font-style: normal;
*/
}
addOnloadHook(function() {
     // early exit when disabled
     if (!linkFA_enabled) return;
   
   
/* [[Wikipedia:Zitate|Zitate]] (siehe [[Vorlage:Zitat]]) */
    // skins need to be treated differently
    if (skin == "monobook" || skin == "simple") {
        newer();
    }
    else if (skin == "cologneblue" || skin == "nostalgia" || skin == "standard") {
        older();
    }
   
   
p.Zitat {
    /** skin == "monobook" || skin == "simple" */
    font-style: normal;
    function newer() {
    margin-bottom: 0em;
        // links are to replaced in p-lang only
}
        var pLang = document.getElementById("p-lang");
p.cite {
        if (!pLang) return;
    margin-top: 0em;
        var lis = pLang.getElementsByTagName("li");
    padding-left: 1em;
        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 = linkFA_description;
        }
    }
   
   
/* [[Wikipedia:Quellenangaben|Quellenangaben]] nicht kursiv, da sie ggf. verschiedene Bestandteile enthalten */
    /** skin == "cologneblue" || skin == "nostalgia" || skin == "standard" */
    function older() {
        // these root elements can contain FA-links
        var rootIds = new Array("topbar", "footer");
        for (var i=0; i<rootIds.length; i++) {
            var rootId  = rootIds[i];
            var root    = document.getElementById(rootId);
            if (!root)  continue;
   
   
cite {
            // if the root exists, try to decorate all the links within
    font-style: normal;
            var links  = root.getElementsByTagName("a");
}
            for (var j=0; j<links.length; j++) {
                var link    = links[j];
/* Stylesheet-Ergänzung zu Standard-[[Wikipedia:Navigationsleisten|Navigationsleisten]] */
                decorate(link);
            }
div.BoxenVerschmelzen,
        }
div.NavFrame {
     }
    margin: 0px;
    padding: 2px;
    border: 1px solid #aaaaaa;
    text-align: center;
    border-collapse: collapse;
    font-size: 95%;
        clear:both;
}
div.BoxenVerschmelzen div.NavFrame {
    border-style: none;
    border-style: hidden;
}
div.NavFrame + div.NavFrame {
    border-top-style: none;
    border-top-style: hidden;
}
div.NavPic {
    background-color: #ffffff;
    margin: 0px;
    padding: 2px;
    float: left;
}
div.NavFrame div.NavHead {
    height: 1.6em;
    font-weight: bold;
    font-size: 100%;
    background-color: #efefef;
}
div.NavFrame p {
    font-size: 100%;
}
div.NavFrame div.NavContent {
    font-size: 100%;
}
div.NavFrame div.NavContent p {
    font-size: 100%;
}
div.NavEnd {
    margin: 0px;
     padding: 0px;
    line-height: 1px;
    clear: both;
}
/* Stylesheet fuer den 'Ausklappen'-Button an Navileisten, der in [[MediaWiki:Common.js]] implementiert wird */
.NavToggle {
      font-size: x-small;
      float:right;
}
/* Abstand vor Navigationsleisten */
   
   
div.BoxenVerschmelzen,
    /** id necessary, modify a link to show the FA-star (older) */
div.NavFrame {
    function decorate(link) {
  margin-top: 1.5em;
        // exit if not a FA-link
}
        var lang    = link.title.split(":")[0]; // not precise enough
div.BoxenVerschmelzen div.NavFrame {
        var fa      = document.getElementById("interwiki-" + lang + "-fa");
  margin-top: 0;
        if (!fa)   return;
}
        // possible problem owing the standard skin: "Link FA" template is transcluded with a non-interwiki parameter, for example "Special"
div.NavFrame + div.NavFrame {
        // result: links to special pages in the topbar and/or footer might also be marked as a Featured Article
   margin-top: 0;
}
   
   
/* Navigationsleisten nicht mit ausdrucken */
        // build an image-node for the FA-star
        var img = document.createElement("img");
        img.setAttribute("src",    linkFA_bullet);
        img.setAttribute("alt",    linkFA_description);
        img.setAttribute("style",  linkFA_style);
   
   
@media print{
        // decorate the link with the image
    .NavFrame {
        link.appendChild(img);
         display: none;
         link.appendChild(link.removeChild(link.firstChild));
    }
        link.setAttribute("title", linkFA_description);
    .BoxenVerschmelzen {
        display: none;
     }
     }
}
});
   
   
/* Stylesheet-Ergänzung zu SideBoxen (ehedem [[Wikipedia:TownBox|TownBox]]) */
//==============================================================================
//*** Fügt einen Link "Alle Sprachen" auf der Hauptseite unter die Sprachverweise hinzu
   
   
div.sideBox {
addOnloadHook(function() {
    position: relative;
  // only on the main page
    float: right;
  if ( wgTitle != 'Hauptseite' || wgNamespaceNumber != 0 )    return;
    background: white;
    margin-left: 1em;
    border: 1px solid gray;
    padding: 0.3em;
    width: 200px;
    overflow: hidden;
    clear: right;
}
div.sideBox dl {
    padding: 0;
    margin: 0 0 0.3em 0;
    font-size: 96%;
}
div.sideBox dl dt {
    background: none;
    margin: 0.4em 0 0 0;
}
div.sideBox dl dd {
    margin: 0.1em 0 0 1.1em;
    background-color: #f3f3f3;
}
   
   
/* Stylesheet-Ergänzung zu [[Wikipedia:Taxoboxen|Taxoboxen]] */
  try {
      var node = document.getElementById( "p-lang" )
                          .getElementsByTagName('div')[0]
                          .getElementsByTagName('ul')[0];
   
   
table.taxobox {
      var aNode = document.createElement( 'a' );
        border-collapse: collapse;
      var liNode = document.createElement( 'li' );
        border: 1px solid gray;
        float: right;
        margin-left: 0.5em;
        background-color:white;
}
table.taxobox th {
        background-color: #9BCD9B;
        border: solid 1px gray;
        text-align: center;
        font-weight: bold;
}
table.taxobox td {
        vertical-align:top;
}
table.taxobox .Person {
        font-style: normal;
}
table.taxobox div.thumb,
table.taxobox div.thumb * {
        margin: auto;
        padding: 0;
        float: none;
        border: none;
        background-color:#F9F9F9;
}
table.taxobox div.magnify {
        display: none;
}
table.taxobox tr td div.thumb div div.thumbcaption {
        text-align:center;
}
table.taxobox td.Person {
        text-align:center;
        display:block;
}
table.taxobox td.taxo-name {
        text-align:center;
}
table.taxobox td.taxo-bild {
        text-align:center;
}
   
   
/* Stylesheet-Ergänzung zu [[Wikipedia:Paläoboxen|Paläoboxen]] */
       aNode.appendChild( document.createTextNode( 'Alle Sprachen' ) );
       aNode.setAttribute( 'href' , 'http://de.wikipedia.org/wiki/Wikipedia:Sprachen' );
table.palaeobox {
      liNode.appendChild( aNode );
      border-collapse: collapse;
      liNode.className = 'interwiki-completelist';
      border: 1px solid gray;
      node.appendChild( liNode );
      float: right;
     } catch(e) {
       margin-left: 0.5em;
        // lets just ignore what's happened
      background-color:white;
     }
}
});
table.palaeobox th {
      background-color: #e7dcc3;
      border: solid 1px gray;
       text-align: center;
      font-weight: bold;
}
table.palaeobox td {
      vertical-align:top;
}
table.palaeobox .Person {
      font-style: normal;
}
table.palaeobox div.thumb,
table.palaeobox div.thumb * {
      margin: 0;
      padding: 0;
      float: none;
      border: none;
}
table.palaeobox div.magnify {
      display:none;
}
table.palaeobox tr td div.thumb div div.thumbcaption {
      text-align:left;
}
table.palaeobox td.Person {
      text-align:center;
      display:block;
}
table.palaeobox td.taxo-name {
      text-align:center;
}
table.palaeobox td.taxo-bild {
      text-align:center;
}
table.palaeobox td.taxo-zeit {
      text-align:center;
}
table.palaeobox td.taxo-ort {
      text-align:left;
}
/* aus Vorlage zur Entlastung, skinabhängigen Darstellung und Kombinierbarkeit hierher ausgelagert */
.wikitable,
.prettytable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #AAA solid;
  border-collapse: collapse;
  empty-cells:show;
}
.wikitable th, .wikitable td,
.prettytable th, .prettytable td {
  border: 1px #AAA solid;
  padding: 0.3em;
}
.wikitable caption,
.prettytable caption {
  margin-left: inherit;
  margin-right: inherit;
  font-weight: bold;
}
.nogrid th, .nogrid td {border: none;}
.float-left { float: left; clear: left; }
.float-right { float: right; clear: right; margin: 1em 0 1em 1em; }
.centered { margin-left: auto; margin-right: auto; }
/* Bitte KEINE weiteren Definitionen dieser Art für Boxen hier, das gehört in entsprechende Vorlagen! */
/* Hier 20 Mal Trivialitäten wie "text-align:center" zu definieren verlangsamt alles und ist nicht */
/* Sinn der Sache. (Und wer nicht weiß warum, hat's nicht verstanden.) */
/* Do not expand [[Wikipedia:WikiProjekt Georeferenzierung|kvaleberg.com-URLs]] for printing */
#content span.coordinates a.external.text:after, #content span.coordinates a.external.autonumber:after { content: ""; }
#content div.coordinates a.external.text:after, #content div.coordinates a.external.autonumber:after { content: ""; }
/* Do not expand URLs for printing */
#content span.plainlinks-print a.external.text:after, #content span.plainlinks-print a.external.autonumber:after { content: ""; }
#content div.plainlinks-print a.external.text:after, #content div.plainlinks-print a.external.autonumber:after { content: ""; }
/* Metadaten (bspw. [[Wikipedia:Personendaten|Personendaten]]) */
table.metadata {
    border: 1px solid #aaaaaa;
     display: none;
}
.metadata-label {
    color: #aaaaaa;
}
/*
  * Farbdefinitionen für Rahmen und Hintergründe von [[Wikipedia:Textbausteine|Textbausteinen]].
  * Hier: Standardvorgaben für "dunkle Schrift auf hellem Grund".
  * Für Hell-auf-dunkel-Skins ([[MediaWiki:Amethyst.css|Amethyst]]) müssen dort entsprechende Definitionen
  * zusätzlich eingetragen werden! Anpassungen für andere Skins sind optional.
  * (Die Angaben der Rahmenstärke dienen der Bequemlichkeit, so dass man
  * für dünne Rahmen nur noch "border-style" angeben muss.)
  */
.rahmenfarbe1 { /* Wie Inhaltsverzeichnis */
    border-color: #aaaaaa;
    border-width: 1px;
}
.rahmenfarbe2 { /* Unauffällig, geringer Kontrast */
     border-color: #e9e9e9;
    border-width: 1px;
}
.rahmenfarbe3 { /* "Rot", auffällig */
    border-color: #c00000;
    border-width: 1px;
}
.rahmenfarbe4 { /* Neutrale Farbe, deutlich */
    border-color: #8888aa;
    border-width: 1px;
}
.rahmenfarbe5 { /* "Schwarz", hoher Kontrast */
    border-color: #000000;
    border-width: 1px;
}
.hintergrundfarbe1 { /* Wie Inhaltsverzeichnis */
    background-color: #f9f9f9;
}
.hintergrundfarbe2 { /* "Weiß", für Nicht-Artikel-Seiten, neutral */
    background-color: #ffffff;
}
.hintergrundfarbe3 { /* "Gelb", auffällig */
    background-color: #ffff40;
}
.hintergrundfarbe4 { /* Sehr auffällig */
    background-color: #ffaa00;
}
.hintergrundfarbe5 { /* Neutral, abgesetzt */
    background-color: #e0e0e0;
}
.hintergrundfarbe6 { /* Allgemein „bunt“, für Hervorhebungen und Unterscheidungen */
    background-color: #b3b7ff;
}
.hintergrundfarbe7 { /* Allgemein „bunt“, für Hervorhebungen und Unterscheidungen */
    background-color: #ffcbcb;
}
.hintergrundfarbe8 { /* Allgemein „bunt“, für Hervorhebungen und Unterscheidungen */
    background-color: #ffebad;
}
.hintergrundfarbe9 { /* Allgemein „bunt“, für Hervorhebungen und Unterscheidungen */
    background-color: #b9ffc5;
}
/* Keine Vergrößerung der Zeilenhöhe durch hochgestellte Zahlen der Fußnoten */
.reference, .references sup {
    font-size: 91%;
    vertical-align: text-top;
    position: relative;
    top: -0.3em;
}
/* Hervorhebung der angeklickten Fußnoten und der Rückverweise in blau */
ol.references > li:target {
    background-color: #DEF;
}
sup.reference:target {
    background-color: #DEF;
}
/* Für <hiero></hiero> */
   
   
.mw-hierotable { border: 0px; }
.mw-hierotable th, .mw-hierotable td { border: 0px; }
   
   
/* Für [[MediaWiki:Anoneditwarning]] */
//==============================================================================
//*** Verändert die Tabellensortierfunktion so, dass auch deutsche Tausenderpunkt und Dezimalkommata gehen
// Original aus sv.wikipedia.org
   
   
#mw-anon-edit-warning {
function ts_parseFloat(num) {
background-color: #ffce7b;
    if (!num) return 0;
border: 1px solid #ffa500;
    num = num.replace(/\./g, "");
color: black;
    num = num.replace(/,/, ".");
font-weight: bold;
    num = parseFloat(num);
margin: 2em 0 1em;
    return (isNaN(num) ? 0 : num);
padding: .5em 1em;
vertical-align: middle;
}
}
   
   
/* +++++ 2. SONSTIGE ANPASSUNGEN (Spezialseiten u. a.) +++++ */
//==============================================================================
//*** forcePreview: erzwungene vorschau für IPs
/* Markierung von Redirects in [[Special:Allpages]], [[Special:Watchlist]], Kategorien */
.allpagesredirect {
        font-style: italic;
}
.watchlistredir {
        font-style: italic;
}
.redirect-in-category {
        font-style: italic;
}
/* Einmal gelesene Bestandteile (z.B. in der Sitenotice) ausblenden, sobald css geladen ist */
#gelesen {
        display:none;
}
/* Größerer Abstand zwischen TOC-Nummerierung und TOC-Eintrag */
span.tocnumber {margin-right:0.3em;}
/* Skinabhängige absolute Positionierungen ausblenden */
/* Bitte [[MediaWiki Diskussion:Common.css#Absolute_Positionierungen]] beachten */
#coordinates_3_ObenRechts, #issnlink, #editcount, #shortcut, #artikelstadium {
    display: none;
}
  /* CommonsTicker styles */
  .tickerList ul,    .tickerList ul li    { list-style: none; text-indent:-2em; margin-left:2em;  text-align:left; }
  .tickerList ul ul, .tickerList ul ul li { list-style: none; text-indent:0;    margin-left:1.5em; text-align:left; }
  .tickerAction_deleted:before    { content:" WEG "; color: #FF0000; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_restored:before    { content:" RST "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_replaced:before    { content:" ERS "; color: #CC88FF; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_addedTag:before    { content:" +LA "; color: #FF8800; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_removedTag:before  { content:" -LA "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_addedBad:before    { content:" +LA "; color: #FF8800; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_removedBad:before  { content:" -LA "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_addedGood:before  { content:" +OK "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_removedGood:before { content:" -OK "; color: #FF8800; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerUsage  { font-size:80%; }  /* ticker usage list */
  .tickerTemplateEntry    { font-weight: bold; } /* entry applies to a template used by multiple images */
  /* per-status styles  */ 
  .tickerStatus_done:before {content:" Fixed "; color: #00AA00; font-family:monospace; font-weight:bold; font-size:90%; text-decoration: none;}
  .tickerStatus_done { text-decoration:line-through; font-size: small; }
   
   
  /* strike through when entry has been handeled (done) */
/*
  /*.tickerStatus_done .tickerAction_deleted:before  { content:" "; text-decoration: none;}*/
  * Zwingt IPs zuerst die Vorschau zu benutzen, bevor sie speichern können.
  .tickerStatus_done .tickerAction_deleted:before  { text-decoration: none; }
  * Copyright Marc Mongenet, 2006 aus frwp
  /* local reupload */ 
  .tickerStatus_local {text-decoration:line-through; font-size: small; }
  .tickerStatus_local .tickerAction_deleted:before {content:" "; text-decoration: none;}
  .tickerStatus_local:before { content:" re-uploaded locally "; color: #00AA00; font-family:monospace; font-weight:bold; font-size:90%; text-decoration: none;}
  /* in process of fixing */
  .tickerStatus_fixing .tickerAction_deleted:before  {content:" "; text-decoration: none;}
  .tickerStatus_fixing:before {content:"fixing"; color: #FF8800; font-family:monospace; font-weight:bold; font-size:90%;}
  /* Won'tfix */
  .tickerStatus_wontfix .tickerAction_deleted:before  {text-decoration: none;}
  .tickerStatus_wontfix {text-decoration: line-through;}
  .tickerStatus_wontfix:before {content:"Will not fix"; color: #CC0000; font-family:monospace; font-weight:bold; font-size:90%;text-decoration:none;} 
  /* similiar */
  .tickerStatus_similiar .tickerAction_deleted:before  {text-decoration: none;}
  .tickerStatus_similiar {text-decoration: line-through;}
  .tickerStatus_similiar:before {content:"REPL Article;no fix"; color: #FF4400; font-family:monospace; font-weight:bold; font-size:90%;text-decoration:none;}
  /* NA */
  .tickerStatus_NA .tickerAction_deleted:before  {text-decoration: none;}
  .tickerStatus_NA:before {content:"No NEG"; color: #00FF20;}
  ul span.tickerStatus_NA + ul span.tickerUsage {display:none;}
  span.tickerStatus_NA  span.tickerUsage {display:none;}
  /*Needed so that both subentrys and non-subentrys both are invisivble */
/* Anpassungen für [[:Template:Link_FA]] */
/* hide the template */
#bodyContent span.FA {
    display: none;
}
/* change the bullets for links to special articles */
#p-lang li.FA {
    /* hier immer auch linkFA_bullet in Common.js mit anpassen für die älteren skins! */
    list-style-image: url("http://upload.wikimedia.org/wikipedia/commons/d/d0/Monobook-bullet-star-transparent.png");
  }
/* without this, special bullets go too far to the left */
/*
.portlet li {
  list-style-image: url("http://upload.wikimedia.org/wikipedia/commons/1/18/Monobook-bullet.png");
}
  */
  */
addOnloadHook(function() {
    if (wgUserName != null || wgAction != "edit") return;
    saveButton = document.getElementById("wpSave");
    if (!saveButton) return;
    saveButton.disabled = true;
    saveButton.value = "Seite speichern (Bitte erst die Vorschau benutzen)";
    saveButton.style.fontWeight = "normal";
    document.getElementById("wpPreview").style.fontWeight = "bold";
});
   
   
/* DIVs in ImageMaps inlinen (Vorschlag von Revolus) */
//==============================================================================
.imagemap-inline div {
//*** Fügt der Suche weitere Suchengines hinzu (kopiert aus eswp)
      display: inline;
}
   
   
/* [[Special:Hochladen]]: Warnmeldung auf bestehende Dateien, unerwünschte Prefixe usw. deutlicher hervorheben. */
/*
document.write('<script type="text/javascript" src="'
        + '/w/index.php?title=MediaWiki:SpezialSuche.js'
        + '&action=raw&ctype=text/javascript&dontcountme=s&smaxage=3600"></script>');
*/
   
   
#wpDestFile-warning ul {
//================================================================================
      border:solid red 1px;
//*** force the loading of another JavaScript file (Kopie von [[Commons:Common.js]])
      padding: 1.5em;
// Local Maintainer: [[Commons:User:Dschwen]]
}
   
   
/* Tabellenhintergründe transparent machen */
function includePage(name) {
/* Vor allem auf Spezialseiten, da diese eine andere Hintergrundfarbe haben. */
    document.write('<script type="text/javascript" src="' + wgScript + '?title='
/* Update 21. März 2008: Wurde mit [[rev:32269]] und [[rev:32270]] zentralisiert. */
        + name
        + '&action=raw&ctype=text/javascript"><\/script>');
}
   
   
table.searchResultImage, table#mw-sitematrix-table, table.mw-specialpages-table,
//================================================================================
table.mw-listgrouprights-table, table.diff
//*** import Onlyifuploading-functions
  {
// SEE ALSO [[MediaWiki:Onlyifuploading.js]]
      background-color: transparent;
  }
   
   
/* +++++ 3. NEUE [[Hauptseite|HAUPTSEITE]] (ab 2006) +++++ */
if (wgCanonicalSpecialPageName == "Upload") {
    document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:Onlyifuploading.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}
   
   
/* Kategorie verbergen */
//================================================================================
body.page-Hauptseite #catlinks {
//*** Dynamic Navigation Bars
  display:none;
}
   
   
#hauptseite h2 {
// set up the words in your language
      background-color: #d8e8ff;
var NavigationBarHide = 'Einklappen';
      border: 1px solid #8898bf;
var NavigationBarShow = 'Ausklappen';
      font-size: 1em;
      font-weight: bold;
      margin-top: 0;
      margin-bottom: 0;
      padding-top: 0.1em;
      padding-bottom: 0.1em;
}
#hauptseite .inhalt {
      background-color: #ffffff;
      border: 1px solid #8898bf;
      border-top: 0px solid white;
      padding: 0.3em 0.8em 0.4em 0.8em;
}
#hauptseite .inhalt hr {
      background-color: #8898bf;
      color: #8898bf;
      height: 1px;
      margin:0.5em 0;
      padding: 0;
}
#hauptseite .inhalt .mehr {
      clear: both;
      font-size: 95%;
      margin-top: 0.8em;
      text-align: right;
}
.hauptseite-oben,
.hauptseite-links,
.hauptseite-rechts {
      margin-bottom: 1em;
}
.hauptseite-links {
      margin-right: 0.5em;
}
.hauptseite-rechts {
      margin-left: 0.5em;
}
.hauptseite-oben h2,
.hauptseite-unten h2 {
      text-align: center;
}
.hauptseite-oben .inhalt .portale {
      font-weight: bold;
      margin-top: 0.2em;
      margin-bottom: 0.2em;
}
.hauptseite-oben .inhalt .intern {
      font-size: 90%;
      text-align: center;
}
.hauptseite-links h2,
.hauptseite-rechts h2 {
      text-indent: 0.8em;
}
#hauptseite-schwesterprojekte .inhalt a {
      font-weight: bold;
}
   
   
/* p.catlinks span a[href*="/wiki/Kategorie:Arbeitskategorie"] { display:none } wegen HIDDENCAT nicht mehr notwendig */
// set up max count of Navigation Bars on page,
// if there are more, all will be hidden
// NavigationBarShowDefault = 0; // all bars will be hidden
// NavigationBarShowDefault = 1; // on pages with more than 1 bar all bars will be hidden
if (typeof NavigationBarShowDefault == 'undefined' ) {
    var NavigationBarShowDefault = 1;
}
   
   
/* Remove underline from IPA links */
// shows and hides content and picture (if available) of navigation bars
.IPA a:link, .IPA a:visited {
// Parameters:
    text-decoration: none;
//    indexNavigationBar: the index of navigation bar to be toggled
}
function toggleNavigationBar(indexNavigationBar)
{
  var NavToggle = document.getElementById("NavToggle" + indexNavigationBar);
  var NavFrame = document.getElementById("NavFrame" + indexNavigationBar);
   
   
span.Unicode
  if (!NavFrame || !NavToggle) {
{
      return false;
  font-family:
  }
  'Code2000',
  'Sun-ExtA',
  'Arial Unicode MS',
  'NSimSun',
  sans-serif;
}
   
   
span.Unicode1
  // if shown now
{
  if (NavToggle.firstChild.data == NavigationBarHide) {
  font-family:
      for (
  'Code2001',
              var NavChild = NavFrame.firstChild;
  'Quivira',
              NavChild != null;
  'MPH 2B Damase',
              NavChild = NavChild.nextSibling
  sans-serif;
          ) {
}
          if (NavChild.className == 'NavPic') {
              NavChild.style.display = 'none';
          }
          if (NavChild.className == 'NavContent') {
              NavChild.style.display = 'none';
          }
          if (NavChild.className == 'NavToggle') {
              NavChild.firstChild.data = NavigationBarShow;
          }
      }
   
   
span.Unicode2
  // if hidden now
{
  } else if (NavToggle.firstChild.data == NavigationBarShow) {
  font-family:
      for (
  'Sun-ExtB',
              var NavChild = NavFrame.firstChild;
  'Code2002',
              NavChild != null;
  sans-serif;
              NavChild = NavChild.nextSibling
}
          ) {
          if (NavChild.className == 'NavPic') {
              NavChild.style.display = 'block';
          }
          if (NavChild.className == 'NavContent') {
              NavChild.style.display = 'block';
          }
          if (NavChild.className == 'NavToggle') {
              NavChild.firstChild.data = NavigationBarHide;
          }
      }
  }
}
   
   
span.IPA
// adds show/hide-button to navigation bars
{
function createNavigationBarToggleButton()
  font-family:
{
   'Quivira',
   var indexNavigationBar = 0;
  'Code2000',
   // iterate over all < div >-elements
   'Sun-ExtA',
   var divs = document.getElementsByTagName("div");
   'DejaVu Sans',
   for (var i=0;  i<divs.length; i++) {
   'Gentium',
      var NavFrame = divs[i];
  'Arial Unicode MS',
      // if found a navigation bar
  'Lucida Sans Unicode',
      if (NavFrame.className == "NavFrame") {
  sans-serif;
}
   
   
span.IAST
          indexNavigationBar++;
{
          var NavToggle = document.createElement("a");
  font-family:
          NavToggle.className = 'NavToggle';
  'Code2000',
          NavToggle.setAttribute('id', 'NavToggle' + indexNavigationBar);
  'SunExtA',
          NavToggle.setAttribute('href', 'javascript:toggleNavigationBar(' + indexNavigationBar + ');');
  'Arial Unicode MS',
  sans-serif;
}
   
   
span.altitalisch
          var NavToggleText = document.createTextNode(NavigationBarHide);
{
          NavToggle.appendChild(NavToggleText);
  font-family:
  'Quivira',
  'Code2001',
  'MPH 2B Damase',
  sans-serif;
}
   
   
          // add NavToggle-Button as first div-element
          // in < div class="NavFrame" >
          NavFrame.insertBefore(
              NavToggle,
              NavFrame.firstChild
          );
          NavFrame.setAttribute('id', 'NavFrame' + indexNavigationBar);
      }
  }
  // if more Navigation Bars found than Default: hide all
  if (NavigationBarShowDefault < indexNavigationBar) {
      for(
              var i=1;
              i<=indexNavigationBar;
              i++
      ) {
          toggleNavigationBar(i);
      }
  }
   
   
span.gotisch
}
{
  font-family:
  'Quivira',
  'Code2001',
  'MPH 2B Damase',
  sans-serif;
}
   
   
span.hebrew
addOnloadHook(createNavigationBarToggleButton);
{
  font-family:
  'Quivira',
  'Sun-ExtA',
  'Arial Unicode MS',
  'SBL Hebrew',
  'Code2000',
  'MPH 2B Damase',
  sans-serif;
}
   
   
span.spanAr
//================================================================================
{
//*** import Onlyifediting-functions
  font-family:
// SEE ALSO [[MediaWiki:Onlyifediting.js]]
  'Arial Unicode MS',
  'Code2000',
  'MPH 2B Damase',
  'DejaVu Sans',
  sans-serif;
}
   
   
if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0) {
span.music-symbol
    document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:Onlyifediting.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
{
}
  font-family:
  'Musical Symbols',
  'Euterpe',
  'Code2001',
  sans-serif;
}

Version vom 11. Mai 2008, 15:38 Uhr

/* Jedes JavaScript hier wird für alle Benutzer für jede Seite geladen. */

//============================================================= //*** Configuration for "star" logo in front of interwiki links to Featured Articles

/** set to false in Special:Mypage/monobook.js to switch off this "feature" */ var linkFA_enabled = true;

/** description that is displayed when cursor hovers above FA interwiki links */ var linkFA_description = "Dieser Artikel wurde als exzellent bewertet.";

// linkFA_bullet and linkFA_style werden nur für cologneblue, nostalgia and standard verwendet, // für monobook und simple siehe MediaWiki:Common.css

/** image to use instead of the standard bullet (for cologneblue, nostalgia and standard */ var linkFA_bullet = "Monobook-bullet-star-transparent.png";

/** style to use for the linkFA_bullet img */ var linkFA_style = "margin-right: 0.2em;";

/**

* star logo for featured articles in other languages,
* see Template:Link_FA and MediaWiki:Common.css
*/

addOnloadHook(function() {

   // early exit when disabled
   if (!linkFA_enabled) return;

   // skins need to be treated differently
   if (skin == "monobook" || skin == "simple") {
       newer();
   } 
   else if (skin == "cologneblue" || skin == "nostalgia" || skin == "standard") {
       older();
   } 

   /** skin == "monobook" || skin == "simple" */
   function newer() {
       // 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 = linkFA_description;
       }
   }

   /** skin == "cologneblue" || skin == "nostalgia" || skin == "standard" */
   function older() {
       // these root elements can contain FA-links
       var rootIds = new Array("topbar", "footer");
       for (var i=0; i<rootIds.length; i++) {
           var rootId  = rootIds[i];
           var root    = document.getElementById(rootId);
           if (!root)  continue;

           // if the root exists, try to decorate all the links within
           var links   = root.getElementsByTagName("a");
           for (var j=0; j<links.length; j++) {
               var link    = links[j];
               decorate(link);
           }
       }
   }

   /** id necessary, modify a link to show the FA-star (older) */
   function decorate(link) {
       // exit if not a FA-link
       var lang    = link.title.split(":")[0]; // not precise enough
       var fa      = document.getElementById("interwiki-" + lang + "-fa");
       if (!fa)    return;
       // possible problem owing the standard skin: "Link FA" template is transcluded with a non-interwiki parameter, for example "Special"
       // result: links to special pages in the topbar and/or footer might also be marked as a Featured Article

       // build an image-node for the FA-star
       var img = document.createElement("img");
       img.setAttribute("src",     linkFA_bullet);
       img.setAttribute("alt",     linkFA_description);
       img.setAttribute("style",   linkFA_style);

       // decorate the link with the image
       link.appendChild(img);
       link.appendChild(link.removeChild(link.firstChild));
       link.setAttribute("title", linkFA_description);
   }

});

//============================================================================== //*** Fügt einen Link "Alle Sprachen" auf der Hauptseite unter die Sprachverweise hinzu

addOnloadHook(function() {

  // only on the main page
  if ( wgTitle != 'Hauptseite' || wgNamespaceNumber != 0 )    return;

  try {
      var node = document.getElementById( "p-lang" )
                          .getElementsByTagName('div')[0]
                          .getElementsByTagName('ul')[0];

      var aNode = document.createElement( 'a' );
      var liNode = document.createElement( 'li' );

      aNode.appendChild( document.createTextNode( 'Alle Sprachen' ) );
      aNode.setAttribute( 'href' , 'http://de.wikipedia.org/wiki/Wikipedia:Sprachen' );
      liNode.appendChild( aNode );
      liNode.className = 'interwiki-completelist';
      node.appendChild( liNode );
   } catch(e) {
       // lets just ignore what's happened
   }

});


//============================================================================== //*** Verändert die Tabellensortierfunktion so, dass auch deutsche Tausenderpunkt und Dezimalkommata gehen // Original aus sv.wikipedia.org

function ts_parseFloat(num) {

   if (!num) return 0;
   num = num.replace(/\./g, "");
   num = num.replace(/,/, ".");
   num = parseFloat(num);
   return (isNaN(num) ? 0 : num);

}

//============================================================================== //*** forcePreview: erzwungene vorschau für IPs

/*

* Zwingt IPs zuerst die Vorschau zu benutzen, bevor sie speichern können.
* Copyright Marc Mongenet, 2006 aus frwp
*/

addOnloadHook(function() {

   if (wgUserName != null || wgAction != "edit") return;
   saveButton = document.getElementById("wpSave");
   if (!saveButton) return;
   saveButton.disabled = true;
   saveButton.value = "Seite speichern (Bitte erst die Vorschau benutzen)";
   saveButton.style.fontWeight = "normal";
   document.getElementById("wpPreview").style.fontWeight = "bold";

});

//============================================================================== //*** Fügt der Suche weitere Suchengines hinzu (kopiert aus eswp)

/* document.write('<script type="text/javascript" src="'

       + '/w/index.php?title=MediaWiki:SpezialSuche.js'
       + '&action=raw&ctype=text/javascript&dontcountme=s&smaxage=3600"></script>');
  • /

//================================================================================ //*** force the loading of another JavaScript file (Kopie von Commons:Common.js) // Local Maintainer: Commons:User:Dschwen

function includePage(name) {

   document.write('<script type="text/javascript" src="' + wgScript + '?title='
       + name 
       + '&action=raw&ctype=text/javascript"><\/script>');

}

//================================================================================ //*** import Onlyifuploading-functions // SEE ALSO MediaWiki:Onlyifuploading.js

if (wgCanonicalSpecialPageName == "Upload") {

   document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:Onlyifuploading.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');

}

//================================================================================ //*** Dynamic Navigation Bars

// set up the words in your language var NavigationBarHide = 'Einklappen'; var NavigationBarShow = 'Ausklappen';

// set up max count of Navigation Bars on page, // if there are more, all will be hidden // NavigationBarShowDefault = 0; // all bars will be hidden // NavigationBarShowDefault = 1; // on pages with more than 1 bar all bars will be hidden if (typeof NavigationBarShowDefault == 'undefined' ) {

   var NavigationBarShowDefault = 1;

}

// shows and hides content and picture (if available) of navigation bars // Parameters: // indexNavigationBar: the index of navigation bar to be toggled function toggleNavigationBar(indexNavigationBar) {

  var NavToggle = document.getElementById("NavToggle" + indexNavigationBar);
  var NavFrame = document.getElementById("NavFrame" + indexNavigationBar);

  if (!NavFrame || !NavToggle) {
      return false;
  }

  // if shown now
  if (NavToggle.firstChild.data == NavigationBarHide) {
      for (
              var NavChild = NavFrame.firstChild;
              NavChild != null;
              NavChild = NavChild.nextSibling
          ) {
          if (NavChild.className == 'NavPic') {
              NavChild.style.display = 'none';
          }
          if (NavChild.className == 'NavContent') {
              NavChild.style.display = 'none';
          }
          if (NavChild.className == 'NavToggle') {
              NavChild.firstChild.data = NavigationBarShow;
          }
      }

  // if hidden now
  } else if (NavToggle.firstChild.data == NavigationBarShow) {
      for (
              var NavChild = NavFrame.firstChild;
              NavChild != null;
              NavChild = NavChild.nextSibling
          ) {
          if (NavChild.className == 'NavPic') {
              NavChild.style.display = 'block';
          }
          if (NavChild.className == 'NavContent') {
              NavChild.style.display = 'block';
          }
          if (NavChild.className == 'NavToggle') {
              NavChild.firstChild.data = NavigationBarHide;
          }
      }
  }

}

// adds show/hide-button to navigation bars function createNavigationBarToggleButton() {

  var indexNavigationBar = 0;
  // iterate over all < div >-elements
  var divs = document.getElementsByTagName("div");
  for (var i=0;  i<divs.length; i++) {
      var NavFrame = divs[i];
      // if found a navigation bar
      if (NavFrame.className == "NavFrame") {

          indexNavigationBar++;
          var NavToggle = document.createElement("a");
          NavToggle.className = 'NavToggle';
          NavToggle.setAttribute('id', 'NavToggle' + indexNavigationBar);
          NavToggle.setAttribute('href', 'javascript:toggleNavigationBar(' + indexNavigationBar + ');');

          var NavToggleText = document.createTextNode(NavigationBarHide);
          NavToggle.appendChild(NavToggleText);

          // add NavToggle-Button as first div-element 
          // in < div class="NavFrame" >
          NavFrame.insertBefore(
              NavToggle,
              NavFrame.firstChild
          );
          NavFrame.setAttribute('id', 'NavFrame' + indexNavigationBar);
      }
  }
  // if more Navigation Bars found than Default: hide all
  if (NavigationBarShowDefault < indexNavigationBar) {
      for(
              var i=1; 
              i<=indexNavigationBar; 
              i++
      ) {
          toggleNavigationBar(i);
      }
  }

}

addOnloadHook(createNavigationBarToggleButton);

//================================================================================ //*** import Onlyifediting-functions // SEE ALSO MediaWiki:Onlyifediting.js

if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0) {

   document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:Onlyifediting.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');

}