Benutzer:Nette nachbarin/monobook.js: Unterschied zwischen den Versionen
Aus Stupidedia, der sinnfreien Enzyklopädie!
Sebus (Diskussion | Beiträge) K (so, sollte alles gehen...) |
|||
Zeile 16: | Zeile 16: | ||
Inhalt = ""; | Inhalt = ""; | ||
− | + | ||
Zeile 53: | Zeile 53: | ||
add2toolbar('javascript:YellowRedCard()', 'http://img100.imageshack.us/img100/5012/gelbrotekartehg1.png', 'Gelb-Rote Karte'); | add2toolbar('javascript:YellowRedCard()', 'http://img100.imageshack.us/img100/5012/gelbrotekartehg1.png', 'Gelb-Rote Karte'); | ||
add2toolbar('javascript:RedCard()', 'http://img153.imageshack.us/img153/2029/rotekartelo3.png', 'Rote Karte'); | add2toolbar('javascript:RedCard()', 'http://img153.imageshack.us/img153/2029/rotekartelo3.png', 'Rote Karte'); | ||
+ | add2toolbar('javascript:Laecheln()', 'http://img509.imageshack.us/img509/8703/buttonlchelnfl8.png', 'Lächeln schenken'); | ||
+ | add2toolbar('javascript:Lachen()', 'http://img529.imageshack.us/img529/7392/buttonlachenjy7.png', 'Du bringst mich zum Lachen'); | ||
+ | add2toolbar('javascript:Knutsch()', 'http://img509.imageshack.us/img509/5263/buttonknutschkv7.png', '*Knutsch*'); | ||
+ | add2toolbar('javascript:Gluecklich()', 'http://img509.imageshack.us/img509/6310/buttonhimbeernr6.png', 'Du machst mich glücklich!'); | ||
} | } | ||
Zeile 63: | Zeile 67: | ||
else if (window.attachEvent) | else if (window.attachEvent) | ||
window.attachEvent("onload", init); | window.attachEvent("onload", init); | ||
+ | } | ||
+ | |||
+ | function Laecheln(){ | ||
+ | Inhalt = document.editform.wpTextbox1.value; | ||
+ | document.editform.wpTextbox1.value = "{{Lächeln|" + Benutzername + "}}" + Inhalt; | ||
+ | document.editform.wpSummary.value = "Ein Lächeln für dich :)"; | ||
+ | } | ||
+ | |||
+ | function Lachen(){ | ||
+ | Inhalt = document.editform.wpTextbox1.value; | ||
+ | var Grund = prompt("Grund angeben","weil du komisch aussiehst."); | ||
+ | document.editform.wpTextbox1.value = "{{Lachen|" + Grund + "|" + Benutzername + "}}" + Inhalt; | ||
+ | document.editform.wpSummary.value = "Du bringst mich zum Lachen! :D"; | ||
+ | } | ||
+ | |||
+ | function Knutsch(){ | ||
+ | Inhalt = document.editform.wpTextbox1.value; | ||
+ | document.editform.wpTextbox1.value = "{{Knutsch|" + Benutzername + "}}" + Inhalt; | ||
+ | document.editform.wpSummary.value = "Knutsch"; | ||
+ | } | ||
+ | |||
+ | function Gluecklich(){ | ||
+ | Inhalt = document.editform.wpTextbox1.value; | ||
+ | var Vorschlag = prompt("Angebot machen","Vielleicht ein Bild?"); | ||
+ | document.editform.wpTextbox1.value = "{{Glücklich|" + Vorschlag + "|" + Benutzername + "}}" + Inhalt; | ||
+ | document.editform.wpSummary.value = "Du hast ein Himbeerklümpchen glücklich gemacht."; | ||
} | } | ||
Version vom 7. März 2007, 19:52 Uhr
//<pre><nowiki>
/*
Skript von meistermichi und noch irgendwem wo ich nich weiss wer...
*/
rein_damit('verbesserung');
rein_damit('add_cats');
rein_damit('addlilink');
rein_damit('add2toolbar');
rein_damit('indexlink');
rein_damit('lastdiff');
rein_damit('rv2version');
rein_damit('smileys');
rein_damit('bearbeiten');
Benutzername = "nette_nachbarin";
Inhalt = "";
function init(){
add2toolbar('javascript:RedirectArticle()', 'http://img326.imageshack.us/img326/55/buttonredirectxp4.png', 'Weiterleitung erstellen');
add2toolbar('javascript:CorrectArticle()', 'http://img170.imageshack.us/img170/1378/correctei4.png', 'Verbesserungsvorlage erstellen');
add2toolbar('javascript:InuseArticle()', 'http://img170.imageshack.us/img170/6927/inusetq2.png', 'Inuse erstellen');
add2toolbar('javascript:WelcomeUser()', 'http://img92.imageshack.us/img92/1575/welcomeev0.png', 'Benutzer Willkommenheissen');
add2toolbar('javascript:WIP()', 'http://img294.imageshack.us/img294/1374/welcomeipsr0.png', 'IP Einladen');
add2toolbar('javascript:insertTags("{{","}}","Gewünschte Vorlage hier einfügen")','http://img301.imageshack.us/img301/7285/templateqg8.png', 'Vorlage einfügen');
add2toolbar('javascript:insertTags("=== "," ===","Ebene 3 Überschrift")','http://img145.imageshack.us/img145/2334/3levelzf2.png', 'Ebene 3 Überschrift');
add2toolbar('javascript:FindReplace()', 'http://img139.imageshack.us/img139/5661/suchenqw2.png', 'Text ersetzen');
add2toolbar('javascript:Extimg()', 'http://img148.imageshack.us/img148/7580/extimgbn0.png', 'Externes Bild');
add2toolbar('javascript:ColorOn()', 'http://img228.imageshack.us/img228/2421/colorqv3.png', 'Text einfärben');
add2toolbar('javascript:ColorBackground()', 'http://img87.imageshack.us/img87/4453/colorjv2.png', 'Texthintergrund einfärben');
add2toolbar('javascript:insertTags("<s>","</s>","Durchgestrichenen Text hier einfügen")','http://img271.imageshack.us/img271/6781/outcrossdc9.png','Durchgestrichenen Text einfügen');
add2toolbar('javascript:insertTags("<u>","</u>","Unterstrichenen Text hier einfügen")','http://img79.imageshack.us/img79/9316/underlineab4.png','Unterstrichenen Text einfügen');
add2toolbar('javascript:insertTags("<big>","</big>","Großen Text einfügen")','http://img520.imageshack.us/img520/1788/bigni8.png','Großen Text einfügen');
add2toolbar('javascript:insertTags("<small>","</small>","Kleinen Text einfügen")','http://img516.imageshack.us/img516/2382/smalltj4.png','Kleinen Text einfügen');
add2toolbar('javascript:insertTags("<sub>","</sub>","Tiefgestellten Text einfügen")','http://img520.imageshack.us/img520/192/submb8.png','Tiefgestellten Text einfügen');
add2toolbar('javascript:insertTags("<sup>","</sup>","Hochgestellten Text einfügen")','http://img105.imageshack.us/img105/8396/suphq6.png','Hochgestellten Text einfügen');
add2toolbar('javascript:insertTags("<center>","</center>","Zentrieren")','http://img91.imageshack.us/img91/7515/centerod6.png','Zentrieren');
add2toolbar('javascript:insertTags("<br>","","")','http://img120.imageshack.us/img120/3748/zeilumbruchpg2.png','Zeilenumbruch');
add2toolbar('javascript:insertTags("<br style=clear:both />","","")','http://img214.imageshack.us/img214/7295/absatziq7.png','Großabsatz setzen');
add2toolbar('javascript:insertTags("{{Interne Links}}","","")','http://img329.imageshack.us/img329/9549/linksjh2.png','Vorlage:Interne Links setzen');
add2toolbar('javascript:insertTags("{{KK}}","","")','http://img179.imageshack.us/img179/6376/keinekategorienhp4.png','Vorlage:KK setzen');
add2toolbar('javascript:insertTags("{{Rechtschreibung}}","","")','http://img91.imageshack.us/img91/1917/rechtschreibungia8.png','Vorlage:Rechtschreibung setzen');
add2toolbar('javascript:insertTags("{{Format}}","","")','http://img86.imageshack.us/img86/8805/formatae0.png','Vorlage:Format setzen');
add2toolbar('javascript:insertTags("{{UL}}","","")','http://img87.imageshack.us/img87/7499/ulfz8.png','Vorlage:UL setzen');
add2toolbar('javascript:Message()', 'http://img91.imageshack.us/img91/9073/messagerk6.png', 'Mitteilung schreiben');
add2toolbar('javascript:Stop()', 'http://img109.imageshack.us/img109/3127/stopsx4.png', 'Stop Warnung setzen');
add2toolbar('javascript:SLA()', 'http://img407.imageshack.us/img407/2204/slautorec9.png', 'SL Autor');
add2toolbar('javascript:UsePreview();','http://img265.imageshack.us/img265/1580/vorschaupf0.png','Autor soll den Vorschau-Button benutzen');
add2toolbar('javascript:YellowCard()', 'http://img153.imageshack.us/img153/2615/gelbekarteyj7.png', 'Gelbe Karte');
add2toolbar('javascript:YellowRedCard()', 'http://img100.imageshack.us/img100/5012/gelbrotekartehg1.png', 'Gelb-Rote Karte');
add2toolbar('javascript:RedCard()', 'http://img153.imageshack.us/img153/2029/rotekartelo3.png', 'Rote Karte');
add2toolbar('javascript:Laecheln()', 'http://img509.imageshack.us/img509/8703/buttonlchelnfl8.png', 'Lächeln schenken');
add2toolbar('javascript:Lachen()', 'http://img529.imageshack.us/img529/7392/buttonlachenjy7.png', 'Du bringst mich zum Lachen');
add2toolbar('javascript:Knutsch()', 'http://img509.imageshack.us/img509/5263/buttonknutschkv7.png', '*Knutsch*');
add2toolbar('javascript:Gluecklich()', 'http://img509.imageshack.us/img509/6310/buttonhimbeernr6.png', 'Du machst mich glücklich!');
}
if(document.title.indexOf('Bearbeiten') == 0)
{
if (window.addEventListener)
{
window.addEventListener("load", init, false);
}
else if (window.attachEvent)
window.attachEvent("onload", init);
}
function Laecheln(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Lächeln|" + Benutzername + "}}" + Inhalt;
document.editform.wpSummary.value = "Ein Lächeln für dich :)";
}
function Lachen(){
Inhalt = document.editform.wpTextbox1.value;
var Grund = prompt("Grund angeben","weil du komisch aussiehst.");
document.editform.wpTextbox1.value = "{{Lachen|" + Grund + "|" + Benutzername + "}}" + Inhalt;
document.editform.wpSummary.value = "Du bringst mich zum Lachen! :D";
}
function Knutsch(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Knutsch|" + Benutzername + "}}" + Inhalt;
document.editform.wpSummary.value = "Knutsch";
}
function Gluecklich(){
Inhalt = document.editform.wpTextbox1.value;
var Vorschlag = prompt("Angebot machen","Vielleicht ein Bild?");
document.editform.wpTextbox1.value = "{{Glücklich|" + Vorschlag + "|" + Benutzername + "}}" + Inhalt;
document.editform.wpSummary.value = "Du hast ein Himbeerklümpchen glücklich gemacht.";
}
function Message(){
Inhalt = document.editform.wpTextbox1.value;
var Nachricht = prompt("Text der Nachricht?","Hier Nachricht schreiben");
document.editform.wpTextbox1.value = "{{M|" + Benutzername + "|" + Nachricht + "}}" + Inhalt;
document.editform.wpSummary.value = "Message";
}
function RedirectArticle(){
var DirectSite = prompt("Zielartikel?","Unlustig");
document.editform.wpTextbox1.value = "#Redirect [[" + DirectSite + "]]";
document.editform.wpSummary.value = "Redirect nach [[" + DirectSite + "]]";
}
function CorrectArticle(){
Inhalt = document.editform.wpTextbox1.value;
var iLink = prompt("Interne Links überprüfen?","Einfügen, da keine vorhanden");
var Category = prompt("Kategorisieren?","Ja");
var Syntax = prompt("Rechtschreibung verbessern?","Ja, stellenweise");
var Format = prompt("Formatieren?","Zeilenumbrüche, Aufzählungszeichen und Überschriften setzen");
var Pictures = prompt("Bilder überprüfen?","Nein");
var Comment = prompt("Commentar:","Jetzt im Sonderangebot: [[Spam]]");
document.editform.wpTextbox1.value = "{{V|" + iLink + "|" + Category + "|" + Syntax + "|" + Format + "|" + Pictures + "|" + Comment + "}}" + Inhalt;
document.editform.wpSummary.value = "Verbesserungsprogramm";
}
function InuseArticle(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Inuse|" + Benutzername + "}}" + Inhalt;
}
function WelcomeUser(){
document.editform.wpTextbox1.value = "{{W|" + Benutzername + "}}" + Inhalt;
document.editform.wpSummary.value = "Welcome";
if(confirm("Kommentar hinzufügen?"))
{
var Comment = prompt("Kommentar:","");
document.editform.wpTextbox1.value += "<p>P.P.S: " + Comment + "<br>~~~~";
}
}
function WIP(){
document.editform.wpTextbox1.value = "{{WIP|" + Benutzername + "}}" + Inhalt;
document.editform.wpSummary.value = "Lust anzumelden?";
if(confirm("Kommentar hinzufügen?"))
{
var Comment = prompt("Kommentar:","");
document.editform.wpTextbox1.value += "<p>P.P.S:" + Comment + "~~~~";
}
}
function Stop(){
document.editform.wpTextbox1.value = '{{Stupid}}';
document.editform.wpSummary.value = "[[Vorlage:Stupid|Naja, nicht so ganz das Wahre...]]";
}
function SLA(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{SLA|" + Benutzername + "}}" + Inhalt;
document.editform.wpSummary.value = "Hinweis für SL-Autor";
}
function FindReplace(){
var s = prompt("Folgendes ersetzen:");
if(s){
var r = prompt("Ersetzen durch:");
if(!r && r != '') return;
var txt = document.editform.wpTextbox1;
txt.value = txt.value.replace(new RegExp(s, "g"), r);
}
}
function Extimg(){
var name = prompt("Bildbeschreibung:","");
if (name){
var description = '|' + name + '}}';
javascript:insertTags('{{Extimg|',description,"Bild-URL hier einfügen");
}
}
function ColorOn(){
var color = prompt("Farbwert eingeben:","");
if (color){
var fontCo = '<font color="' + color + '">';
javascript:insertTags(fontCo,"</font>","Text hier einfügen")
}
}
function ColorBackground(){
var color = prompt("Farbwert eingeben:","");
if (color){
var fontCo = '<font style="background:' + color + '">';
javascript:insertTags(fontCo,"</font>","Text hier einfügen")
}
}
function UsePreview(){
var Article = prompt('Gemeinter Artikel');
if(Article != ''){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = '{{Vorschau|' + Article + '}}\n' + Inhalt;
}
}
function YellowCard(){
var image = 'http://img220.imageshack.us/img220/457/gelbekartekw2.jpg';
var Comment = prompt("Grund?","Gelbe Karte wegen Vandalismus");
document.editform.wpTextbox1.value += '' + image + ' ' + Comment + ' - ~~~~';
document.editform.wpSummary.value = 'Gelbe Karte. 1. Verwarnung!';
}
function YellowRedCard(){
var image = 'http://img143.imageshack.us/img143/6910/gelbrotekarteam6.jpg';
var Comment = prompt("Grund?","Gelb-Rote Karte wegen Vandalismus. Beim nächsten Mal erfolgt Sperre");
document.editform.wpTextbox1.value += '' + image + ' ' + Comment + ' - ~~~~';
document.editform.wpSummary.value = 'Gelb-Rote Karte. 2. Verwarnung!';
}
function RedCard(){
var image = 'http://img143.imageshack.us/img143/1148/rotekarteyt4.jpg';
var Comment = prompt("Grund?","Rote Karte und Sperre wegen Vandalismus");
document.editform.wpTextbox1.value += '' + image + ' ' + Comment + ' - ~~~~';
document.editform.wpSummary.value = 'Rote Karte und Aussperrung!';
}
function init(){
// add2toolbar('javascript:insertTags("[[Wikipedia:de:","]]","Wikipedialink einfügen")','http://img171.imageshack.us/img171/945/wikiconc2.png','Interwikilink setzen');
add2toolbar('javascript:DeleteArticle()', 'http://img170.imageshack.us/img170/451/deletezb0.png', 'Löschvorschlag erstellen');
add2toolbar('javascript:InstantDelete()','http://img296.imageshack.us/img296/529/slqm2.png', 'Sofort Löschen');
add2toolbar('javascript:InsiderArticle()','http://img329.imageshack.us/img329/9549/linksjh2.png','Insider setzen');
add2toolbar('javascript:CorrectArticle()', 'http://img170.imageshack.us/img170/1378/correctei4.png', 'Verbesserungsvorlage erstellen');
add2toolbar('javascript:insertTags("{{","}}","Gewünschte Vorlage hier einfügen")','http://img301.imageshack.us/img301/7285/templateqg8.png', 'Vorlage einfügen');
add2toolbar('javascript:insertTags("=== "," ===","Ebene 3 Überschrift")','http://img145.imageshack.us/img145/2334/3levelzf2.png', 'Ebene 3 Überschrift');
// add2toolbar('javascript:FindReplace()', 'http://img139.imageshack.us/img139/5661/suchenqw2.png', 'Text ersetzen');
add2toolbar('javascript:ColorOn()', 'http://img228.imageshack.us/img228/2421/colorqv3.png', 'Text einfärben');
add2toolbar('javascript:ColorBackground()', 'http://img87.imageshack.us/img87/4453/colorjv2.png', 'Texthintergrund einfärben');
add2toolbar('javascript:insertTags("<s>","</s>","Durchgestrichenen Text hier einfügen")','http://img271.imageshack.us/img271/6781/outcrossdc9.png','Durchgestrichenen Text einfügen');
add2toolbar('javascript:insertTags("<u>","</u>","Unterstrichenen Text hier einfügen")','http://img79.imageshack.us/img79/9316/underlineab4.png','Unterstrichenen Text einfügen');
add2toolbar('javascript:insertTags("<big>","</big>","Großen Text einfügen")','http://img520.imageshack.us/img520/1788/bigni8.png','Großen Text einfügen');
add2toolbar('javascript:insertTags("<small>","</small>","Kleinen Text einfügen")','http://img516.imageshack.us/img516/2382/smalltj4.png','Kleinen Text einfügen');
add2toolbar('javascript:insertTags("<sub>","</sub>","Tiefgestellten Text einfügen")','http://img520.imageshack.us/img520/192/submb8.png','Tiefgestellten Text einfügen');
add2toolbar('javascript:insertTags("<sup>","</sup>","Hochgestellten Text einfügen")','http://img105.imageshack.us/img105/8396/suphq6.png','Hochgestellten Text einfügen');
add2toolbar('javascript:insertTags("<center>","</center>","Zentrieren")','http://img91.imageshack.us/img91/7515/centerod6.png','Zentrieren');
add2toolbar('javascript:insertTags("<br>","","")','http://img120.imageshack.us/img120/3748/zeilumbruchpg2.png','Absatz setzen');
add2toolbar('javascript:insertTags("<br style=clear:both />","","")','http://img214.imageshack.us/img214/7295/absatziq7.png','Großabsatz setzen');
add2toolbar('javascript:QO("{{Interne Links}}","Vorlage:Interne Links gesetzt")','http://img329.imageshack.us/img329/9549/linksjh2.png','Vorlage:Interne Links setzen');
add2toolbar('javascript:QO("{{KK}}","Vorlage:KK gesetzt")','http://img179.imageshack.us/img179/6376/keinekategorienhp4.png','Vorlage:KK setzen');
add2toolbar('javascript:QO("{{Rechtschreibung}}","Vorlage:Rechtschreibung gesetzt")','http://img91.imageshack.us/img91/1917/rechtschreibungia8.png','Vorlage:Rechtschreibung setzen');
add2toolbar('javascript:QO("{{Format}}","Vorlage:Format gesetzt")','http://img86.imageshack.us/img86/8805/formatae0.png','Vorlage:Format setzen');
add2toolbar('javascript:QO("{{UL}}","Vorlage:UL gesetzt")','http://img87.imageshack.us/img87/7499/ulfz8.png','Vorlage:UL setzen');
add2toolbar('javascript:QO("{{Vorschau|Hier betreffenden Artikel einschreiben}}","Vorlage:Vorschau gesetzt");','http://img265.imageshack.us/img265/1580/vorschaupf0.png','Autor soll den Vorschau-Button benutzen');
add2toolbar('javascript:MessageUebersch()', 'http://img161.imageshack.us/img161/4971/schere190zs4.gif', 'Vorlage:Überschneidung setzen');
add2toolbar('javascript:QO("{{Inuse|meistermichi}}{{Benutzer:Meistermichi/Sch}}","Guckst du hier: [[Benutzer:Meistermichi/Schmiede|Schmiede]]!")','http://img297.imageshack.us/img297/4792/vschmiedezq2.png','Vorlage Schmiede setzen');
add2toolbar('javascript:MessageUebersch()', 'http://img91.imageshack.us/img91/9073/messagerk6.png', 'Mitteilung schreiben');
add2toolbar('javascript:RedirectArticle()', 'http://img326.imageshack.us/img326/55/buttonredirectxp4.png', 'Weiterleitung erstellen');
add2toolbar('javascript:WIP_IP()', 'http://img294.imageshack.us/img294/1374/welcomeipsr0.png', 'Unbekannte IP einladen');
add2toolbar('javascript:Antwort()', 'http://img170.imageshack.us/img170/451/deletezb0.png', 'löschen Antwort');
deleteButton(5);
deleteButton(6);
deleteButton(7);
}
// Standard-Buttons löschen
function deleteButton(Nr){
document.getElementById('toolbar').getElementsByTagName("img")[Nr].style.display = "none";
}
// Prüfen ob man im Bearbeitenfenster ist
if(document.title.indexOf('Bearbeiten') == 0)
{
if (window.addEventListener)
{
window.addEventListener("load", init, false);
}
else if (window.attachEvent)
window.attachEvent("onload", init);
}
// Erstellt eine Löschvorlage
function DeleteArticle(){
Inhalt = document.editform.wpTextbox1.value;
var Loeschgrund = prompt("Löschgrund?","Unlustig, doof, stinkt");
document.editform.wpTextbox1.value = "{{Löschen|" + Benutzername + "|" + Loeschgrund + " <sup>(Eingestellt am {{subst:CURRENTDAY}}.{{subst:CURRENTMONTH}}.{{subst:CURRENTYEAR}})</sup>}}" + Inhalt;
document.editform.wpSummary.value = "Löschvorschlag";
}
// Erstellt eine Sofortlöschvorlage
function InstantDelete(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{SL}}" + Inhalt;
document.editform.wpSummary.value = "Sofortlöschvorschlag";
}
// Erstellt einen Insiderllöschantrag
function InsiderArticle(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Insider|meistermichi}}" + Inhalt;
document.editform.wpSummary.value = "Insider!? - einmal #redirect nach [[Namensartikel]] bitte";
}
// Wird für verschiedene Vorlagen gebraucht
function QO(Vorlage, summary){
Inhalt = document.editform.wpTextbox1.value;
Inhaltsummary = document.editform.wpSummary.value;
document.editform.wpTextbox1.value = Vorlage + Inhalt;
document.editform.wpSummary.value = summary + "; " + Inhaltsummary;
}
// Fügt wahlweise die Message oder Überschneidungs Vorlage ein
function MessageUebersch(){
Inhalt = document.editform.wpTextbox1.value;
var Var0 = prompt("Bei Message 'M', bei Überschn. 'Überschneidung'","Überschneidung");
var Var1 = prompt("Bei Message Benutzername, bei Überschn. 1. Artikel","meistermichi");
var Var2 = prompt("Bei Message Text der Nachricht, bei Überschn. 2. Artikel","");
document.editform.wpTextbox1.value = "{{" + Var0 + "|" + Var1 + "|" + Var2 + "}}" + Inhalt;
document.editform.wpSummary.value = "Überschneidung";
}
// Assistent für die Verbesserungsvorlage
function CorrectArticle(){
Inhalt = document.editform.wpTextbox1.value;
var iLink = prompt("Interne Links überprüfen?","Einfügen, da keine/zu wenig vorhanden");
var Category = prompt("Kategorisieren?","Ja, dringend");
var Syntax = prompt("Rechtschreibung verbessern?","Vielleicht");
var Format = prompt("Formatieren?","Zeilenumbrüche, Aufzählungszeichen und Überschriften setzen");
var Pictures = prompt("Bilder überprüfen?","Nein");
var Comment = prompt("Commentar:","Jetzt im Sonderangebot: [[Stupidedia:Richtlinien_zur_Erstellung_neuer_Artikel|Richtlinien]] und [[Stupidedia:Editierhilfe|Editierhilfe]]!");
document.editform.wpTextbox1.value = "{{V|" + iLink + "|" + Category + "|" + Syntax + "|" + Format + "|" + Pictures + "|" + Comment + "}}" + Inhalt;
document.editform.wpSummary.value = "Verbesserungsprogramm";
}
// Sucht und ersetzt Text
function FindReplace(){
var s = prompt("Folgendes ersetzen:");
if(s){
var r = prompt("Ersetzen durch:");
if(!r && r != '') return;
var txt = document.editform.wpTextbox1;
txt.value = txt.value.replace(new RegExp(s, "g"), r);
}
}
// Färbt Text
function ColorOn(){
var color = prompt("Farbwert eingeben:","");
if (color){
var fontCo = '<font color="' + color + '">';
javascript:insertTags(fontCo,"</font>","")
}
}
// Färbt text-hintergrund
function ColorBackground(){
var color = prompt("Farbwert eingeben:","");
if (color){
var fontCo = '<font style="background:' + color + '">';
javascript:insertTags(fontCo,"</font>","")
}
}
// Zum einladen einer unbekannten IP
function WIP_IP(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{WIP|" + Benutzername + "}}" + Inhalt;
document.editform.wpSummary.value = "Lust anzumelden?";
}
//Standardantwort für Löschung
function Antwort(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = Inhalt + "* Ab in die http://www.kieto.com/garbage_can_hopping_gray_md_wht.gif ~~~~";
}
// REDIRECT-Funktion
function RedirectArticle(){
var DirectSite = prompt("Zielartikel?","Unlustig");
document.editform.wpTextbox1.value = "#Redirect [[" + DirectSite + "]]";
document.editform.wpSummary.value = "Redirect nach [[" + DirectSite + "]]";
}
// LINKLEISTE
function motivation(){
var LinkLoc = '<a href="http://www.stupidedia.org/stupi/';
var links = LinkLoc + 'Spezial:Whatlinkshere/Vorlage:Interne_Links">Aktion IL</a>|'
+ LinkLoc + 'Kategorie:Verbesserung">Verb.</a>|'
+ LinkLoc + 'Vorlage:Hauptseite_Artikelvorschlag">Vorschläge</a>|'
+ LinkLoc + 'Spezial:Lonelypages">Waisen</a>|'
+ LinkLoc + 'Spezial:BrokenRedirects">Redirects</a>|'
+ LinkLoc + 'Spezial:Recentchanges">Last Edits</a>|'
+ LinkLoc + 'Benutzer:Nette nachbarin/Archiv">Spielwiese</a>|'
+ LinkLoc + 'Spezial:Upload">Upload</a>';
var div = document.createElement('div');
div.style.position = 'fixed';
div.style.bottom = '0px';
div.style.right = '20px';
div.style.fontSize = '12pt';
div.style.backgroundColor = 'orange';
div.style.border = '1px solid black';
div.style.fontWeight = 'bolder';
div.style.color = 'blue';
div.innerHTML = links;
var content = document.getElementById('content');
content.appendChild(div);
}
if (window.addEventListener)
window.addEventListener("load", motivation, false);
else if (window.attachEvent)
window.attachEvent("onload", motivation);
//</nowiki></pre>