MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus VolynWiki
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: Jedes JavaScript hier wird für alle Benutzer für jede Seite geladen.: // Überschrift der Hauptseite nicht mehr anzeigen (aus w:en:MediaWiki:Monobook.js) ...)
 
Zeile 3: Zeile 3:
 
  // Überschrift der Hauptseite nicht mehr anzeigen (aus [[w:en:MediaWiki:Monobook.js]])
 
  // Überschrift der Hauptseite nicht mehr anzeigen (aus [[w:en:MediaWiki:Monobook.js]])
 
  var mpTitle = "VolynWiki:Hauptseite";
 
  var mpTitle = "VolynWiki:Hauptseite";
 +
var isMainPage = (document.title.substr(0, document.title.lastIndexOf(" - ")) == mpTitle);
 +
var isDiff = (document.location.search && (document.location.search.indexOf("diff=") != -1 || document.location.search.indexOf("oldid=") != -1));
 +
if (isMainPage && !isDiff) {
 +
  document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, #contentSub, h1.firstHeading { display: none !important; } /*]]>*/</style>');
 +
}
 +
 +
// Überschrift der Hauptseite nicht mehr anzeigen (aus [[w:en:MediaWiki:Monobook.js]])
 +
var mpTitle = "VolynWiki:Wiki-Startseite";
 
  var isMainPage = (document.title.substr(0, document.title.lastIndexOf(" - ")) == mpTitle);
 
  var isMainPage = (document.title.substr(0, document.title.lastIndexOf(" - ")) == mpTitle);
 
  var isDiff = (document.location.search && (document.location.search.indexOf("diff=") != -1 || document.location.search.indexOf("oldid=") != -1));
 
  var isDiff = (document.location.search && (document.location.search.indexOf("diff=") != -1 || document.location.search.indexOf("oldid=") != -1));

Version vom 12. Juni 2007, 23:33 Uhr

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

 // Überschrift der Hauptseite nicht mehr anzeigen (aus [[w:en:MediaWiki:Monobook.js]])
 var mpTitle = "VolynWiki:Hauptseite";
 var isMainPage = (document.title.substr(0, document.title.lastIndexOf(" - ")) == mpTitle);
 var isDiff = (document.location.search && (document.location.search.indexOf("diff=") != -1 || document.location.search.indexOf("oldid=") != -1));
 if (isMainPage && !isDiff) {
  document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, #contentSub, h1.firstHeading { display: none !important; } /*]]>*/</style>');
 }

 // Überschrift der Hauptseite nicht mehr anzeigen (aus [[w:en:MediaWiki:Monobook.js]])
 var mpTitle = "VolynWiki:Wiki-Startseite";
 var isMainPage = (document.title.substr(0, document.title.lastIndexOf(" - ")) == mpTitle);
 var isDiff = (document.location.search && (document.location.search.indexOf("diff=") != -1 || document.location.search.indexOf("oldid=") != -1));
 if (isMainPage && !isDiff) {
  document.write('<style type="text/css">/*<![CDATA[*/ #lastmod, #siteSub, #contentSub, h1.firstHeading { display: none !important; } /*]]>*/</style>');
 }