MediaWiki:Monobook.js: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
// | // Siehe [[MediaWiki:Common.js]] | ||
// | // Rückmeldungsskript importieren | ||
if (wgNamespaceNumber == 0 && wgIsArticle == true && wgCurRevisionId != false) { | |||
if (wgUserName == null) { | |||
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-anon-feedback.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>'); | |||
} else { | |||
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-user-feedback.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>'); | |||
} | |||
} | } | ||
if (wgUserName == null && (wgPageName == "Spezial:Suche" || (wgNamespaceNumber == 0 && wgArticleId == 0)) && navigator.cookieEnabled == true) { | |||
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-search.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>'); | |||
} | } | ||
// Seitenmenüleistenfunktionen importieren | |||
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-hideable-portlets.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>'); | |||
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-hideable-sidebar.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>'); | |||
/ | // Hinweis auf Groß-/Kleinschreibung | ||
document.write('<style type="text/css">.cNBody {padding-top: 1px !important;}<\/style>'); | |||
var caseNotice; | |||
function CaseNote(x) { | |||
if (x != 1) { | |||
if ($("searchInput").value == "" || ($("lsearchbox") && $("searchInput").value == $("lsearchbox").value)) { | |||
$("searchInput").setAttribute("onkeyup", "CaseNote(1)"); | |||
$("searchform").innerHTML = $("searchform").innerHTML; // f***ing IE | |||
} | |||
} else if (x > 0 && !caseNotice && $("searchInput").value.search(/^[a-zäöü]/) > -1) { | |||
var caseNote = document.createElement("div"); | |||
caseNote.style.color = "darkred"; | |||
caseNote.innerHTML = '<span style="font-size: 9px;">Groß-/Kleinschreibung!<\/span>'; | |||
$("searchBody").className = "pBody cNBody"; | |||
$("searchBody").insertBefore(caseNote, $("searchBody").firstChild); | |||
caseNotice = 1; | |||
} | |||
} | |||
addOnloadHook(CaseNote); | |||
// Siehe auch | |||
document.write('<style type="text/css">#showSeeAlso {display: none;}<\/style>'); | |||
function showSeeAlso() { | |||
if (wgNamespaceNumber == 0 && $("showSeeAlso") && !$("Vorlage_Siehe_auch") && url.indexOf("oldid=") < 0) { | |||
$("contentSub").style.margin = "0"; | |||
$("contentSub").innerHTML += $("showSeeAlso").innerHTML; | |||
} | |||
} | |||
addOnloadHook(showSeeAlso); | |||
var groupArray = '#'+wgUserGroups; | |||
if (groupArray.indexOf("sysop") > 0) { | |||
document.write('<script type="text/javascript" src="/index.php?title= | document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-sidebar-bug.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>'); | ||
} |
Version vom 11. Mai 2008, 11:01 Uhr
// Siehe [[MediaWiki:Common.js]]
// Rückmeldungsskript importieren
if (wgNamespaceNumber == 0 && wgIsArticle == true && wgCurRevisionId != false) {
if (wgUserName == null) {
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-anon-feedback.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>');
} else {
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-user-feedback.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>');
}
}
if (wgUserName == null && (wgPageName == "Spezial:Suche" || (wgNamespaceNumber == 0 && wgArticleId == 0)) && navigator.cookieEnabled == true) {
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-search.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>');
}
// Seitenmenüleistenfunktionen importieren
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-hideable-portlets.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>');
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-hideable-sidebar.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>');
// Hinweis auf Groß-/Kleinschreibung
document.write('<style type="text/css">.cNBody {padding-top: 1px !important;}<\/style>');
var caseNotice;
function CaseNote(x) {
if (x != 1) {
if ($("searchInput").value == "" || ($("lsearchbox") && $("searchInput").value == $("lsearchbox").value)) {
$("searchInput").setAttribute("onkeyup", "CaseNote(1)");
$("searchform").innerHTML = $("searchform").innerHTML; // f***ing IE
}
} else if (x > 0 && !caseNotice && $("searchInput").value.search(/^[a-zäöü]/) > -1) {
var caseNote = document.createElement("div");
caseNote.style.color = "darkred";
caseNote.innerHTML = '<span style="font-size: 9px;">Groß-/Kleinschreibung!<\/span>';
$("searchBody").className = "pBody cNBody";
$("searchBody").insertBefore(caseNote, $("searchBody").firstChild);
caseNotice = 1;
}
}
addOnloadHook(CaseNote);
// Siehe auch
document.write('<style type="text/css">#showSeeAlso {display: none;}<\/style>');
function showSeeAlso() {
if (wgNamespaceNumber == 0 && $("showSeeAlso") && !$("Vorlage_Siehe_auch") && url.indexOf("oldid=") < 0) {
$("contentSub").style.margin = "0";
$("contentSub").innerHTML += $("showSeeAlso").innerHTML;
}
}
addOnloadHook(showSeeAlso);
var groupArray = '#'+wgUserGroups;
if (groupArray.indexOf("sysop") > 0) {
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:If-sidebar-bug.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>');
}