Benutzer:Metalhero1993/monobook.js: Unterschied zwischen den Versionen
Aus Stupidedia, der sinnfreien Enzyklopädie!
K |
K |
||
Zeile 7: | Zeile 7: | ||
rein_damit('indexlink'); | rein_damit('indexlink'); | ||
rein_damit('rv2version'); | rein_damit('rv2version'); | ||
+ | rein_damit('recent_table'); | ||
rein_damit('loeschvorlage_einfügen'); | rein_damit('loeschvorlage_einfügen'); | ||
rein_damit('Sterne'); | rein_damit('Sterne'); | ||
rein_damit('linkchecker'); | rein_damit('linkchecker'); | ||
+ | rein_damit('cookiework'); | ||
+ | rein_damit('lastdiff'); | ||
+ | rein_damit('neues_fenster'); | ||
+ | rein_damit('smileys'); | ||
+ | rein_damit('unwatch'); | ||
+ | rein_damit('suche'); | ||
+ | rein_damit('bearbeiten'); | ||
+ | rein_damit('awards'); | ||
+ | rein_damit('hinweise'); | ||
− | Benutzername = " | + | |
+ | |||
+ | Benutzername = "metalhero1993"; | ||
Inhalt = ""; | Inhalt = ""; | ||
− | + | ||
+ | document.write('<script type="text/javascript" src="http://www.stupidedia.org/stupi?title=Benutzer:Lt._Simpson/monobook.js/Delbacklist.js&action=raw&ctype=text/javascript&dontcountme=s"></script>'); | ||
+ | |||
+ | function recent_table_custom(){ | ||
+ | color_newPage = 'blue'; | ||
+ | color_stupi = 'green'; | ||
+ | color_newPage = 'red'; // Das "N" vor neuen Seiten. | ||
+ | color_log = '#EBEBEB'; // Logbucheinträge. | ||
+ | color_talk = '#D6E2F8'; // Diskussionsseiten. | ||
+ | color_template = '#CAFBB5'; // Vorlagen. | ||
+ | color_stupi = 'gold'; // Stupidedia (außer Zitatwünsche). | ||
+ | color_user = '#FFC9AE'; // Benutzernamensraum. | ||
+ | color_image = '#FFFF91'; // Namensraum "Bild:". | ||
+ | color_imageUpload = '#EC6513'; // Bild-Uploads. | ||
+ | color_myself = '#FFA8FF'; // Der eigene Benutzername. | ||
+ | color_ip = '#FFCCCC'; // Änderungen von IPs. | ||
+ | } | ||
function init(){ | function init(){ | ||
add2toolbar('javascript:insertTags("[[Wikipedia:de:","]]","Wikipedialink einfügen")','http://www.stupidedia.org/images/1/12/Wikipedia.png','Interwikilink setzen'); | add2toolbar('javascript:insertTags("[[Wikipedia:de:","]]","Wikipedialink einfügen")','http://www.stupidedia.org/images/1/12/Wikipedia.png','Interwikilink setzen'); | ||
add2toolbar('javascript:RedirectArticle()', 'http://www.stupidedia.org/images/9/91/Redirect.png', 'Weiterleitung erstellen'); | add2toolbar('javascript:RedirectArticle()', 'http://www.stupidedia.org/images/9/91/Redirect.png', 'Weiterleitung erstellen'); | ||
add2toolbar('javascript:RedirectArticle2()', 'http://www.stupidedia.org/images/a/a2/Namensartikel.png', 'Redirect Namensartikel'); | add2toolbar('javascript:RedirectArticle2()', 'http://www.stupidedia.org/images/a/a2/Namensartikel.png', 'Redirect Namensartikel'); | ||
− | add2toolbar('javascript:SL()', 'http://www.stupidedia.org/images/ | + | add2toolbar('javascript:SL()', 'http://www.stupidedia.org/images/d/d8/Sofort_Loeschen_neu.png', 'Sofort-Löschen'); |
add2toolbar('javascript:Conflict()', 'http://www.stupidedia.org/images/4/4e/Conflict.png', 'Conflict'); | add2toolbar('javascript:Conflict()', 'http://www.stupidedia.org/images/4/4e/Conflict.png', 'Conflict'); | ||
add2toolbar('javascript:CorrectArticle()', 'http://www.stupidedia.org/images/2/24/Verbesserung.png', 'Verbesserungsvorlage erstellen'); | add2toolbar('javascript:CorrectArticle()', 'http://www.stupidedia.org/images/2/24/Verbesserung.png', 'Verbesserungsvorlage erstellen'); | ||
Zeile 39: | Zeile 67: | ||
add2toolbar('javascript:insertTags("<br>","","")','http://www.stupidedia.org/images/4/44/Zeilenumbruch.png','Zeilenumbruch'); | add2toolbar('javascript:insertTags("<br>","","")','http://www.stupidedia.org/images/4/44/Zeilenumbruch.png','Zeilenumbruch'); | ||
add2toolbar('javascript:insertTags("<br style=clear:both />","","")','http://www.stupidedia.org/images/e/e8/Absatz.png','Großabsatz setzen'); | add2toolbar('javascript:insertTags("<br style=clear:both />","","")','http://www.stupidedia.org/images/e/e8/Absatz.png','Großabsatz setzen'); | ||
− | add2toolbar('javascript: | + | add2toolbar('javascript:SLA()', 'http://www.stupidedia.org/images/0/06/SL-Autor.png', 'SL Autor'); |
add2toolbar('javascript:Baustelle()', 'http://www.stupidedia.org/images/e/e0/Baustelle.gif', 'Baustelle'); | add2toolbar('javascript:Baustelle()', 'http://www.stupidedia.org/images/e/e0/Baustelle.gif', 'Baustelle'); | ||
add2toolbar('javascript:Double()', 'http://www.stupidedia.org/images/0/02/Doppelt.png', 'Überschneidung'); | add2toolbar('javascript:Double()', 'http://www.stupidedia.org/images/0/02/Doppelt.png', 'Überschneidung'); | ||
Zeile 46: | Zeile 74: | ||
add2toolbar('javascript:KK()','http://www.stupidedia.org/images/3/34/Keine_Kategorie.png','Vorlage:KK setzen'); | add2toolbar('javascript:KK()','http://www.stupidedia.org/images/3/34/Keine_Kategorie.png','Vorlage:KK setzen'); | ||
add2toolbar('javascript:Rechtschreibung()','http://www.stupidedia.org/images/a/ab/Rechtschreibung.png','Vorlage:Rechtschreibung setzen'); | add2toolbar('javascript:Rechtschreibung()','http://www.stupidedia.org/images/a/ab/Rechtschreibung.png','Vorlage:Rechtschreibung setzen'); | ||
+ | add2toolbar('javascript:InuseArticle()', 'http://www.stupidedia.org/images/8/85/Inuse.png', 'Inuse erstellen'); | ||
add2toolbar('javascript:Format()','http://www.stupidedia.org/images/6/6c/Format.png','Vorlage:Format setzen'); | add2toolbar('javascript:Format()','http://www.stupidedia.org/images/6/6c/Format.png','Vorlage:Format setzen'); | ||
add2toolbar('javascript:UL()','http://www.stupidedia.org/images/d/de/Unsinnige_Links.png','Vorlage:UL setzen'); | add2toolbar('javascript:UL()','http://www.stupidedia.org/images/d/de/Unsinnige_Links.png','Vorlage:UL setzen'); | ||
Zeile 51: | Zeile 80: | ||
add2toolbar('javascript:Message()', 'http://www.stupidedia.org/images/a/a5/Message.png', 'Mitteilung schreiben'); | add2toolbar('javascript:Message()', 'http://www.stupidedia.org/images/a/a5/Message.png', 'Mitteilung schreiben'); | ||
add2toolbar('javascript:UsePreview();','http://www.stupidedia.org/images/7/75/Preview.png','Vorschau-Button benutzen'); | add2toolbar('javascript:UsePreview();','http://www.stupidedia.org/images/7/75/Preview.png','Vorschau-Button benutzen'); | ||
− | + | add2toolbar('javascript:SLD()', 'http://www.stupidedia.org/images/2/27/SLD.PNG', 'SL-Direkt'); | |
add2toolbar('javascript:insertTags(" http://www.stupidedia.org/images/6/63/Laugth.gif ","","")','http://www.stupidedia.org/images/8/80/Smiley.png','Smiley setzen'); | add2toolbar('javascript:insertTags(" http://www.stupidedia.org/images/6/63/Laugth.gif ","","")','http://www.stupidedia.org/images/8/80/Smiley.png','Smiley setzen'); | ||
add2toolbar('javascript:insertTags("[[Benutzer:","|]]","Benutzername hier einfügen")','http://www.stupidedia.org/images/5/5b/Benutzer.png','Userlink setzen'); | add2toolbar('javascript:insertTags("[[Benutzer:","|]]","Benutzername hier einfügen")','http://www.stupidedia.org/images/5/5b/Benutzer.png','Userlink setzen'); | ||
Zeile 59: | Zeile 88: | ||
add2toolbar('javascript:NolicenseUser()','http://www.stupidedia.org/images/4/4c/Nolicenseusernb3.png', 'Nolicense-User-Diskussionsvorlage'); | add2toolbar('javascript:NolicenseUser()','http://www.stupidedia.org/images/4/4c/Nolicenseusernb3.png', 'Nolicense-User-Diskussionsvorlage'); | ||
add2toolbar('javascript:Lizenz()', 'http://stupidedia.org/images/d/d3/Editleistenknopf_lizenz.png', 'Lizenz! Sofort!'); | add2toolbar('javascript:Lizenz()', 'http://stupidedia.org/images/d/d3/Editleistenknopf_lizenz.png', 'Lizenz! Sofort!'); | ||
− | + | add2toolbar('javascript:Fontsize()','http://www.stupidedia.org/images/4/47/Fontsizebg4.png','Schriftgröße wählen'); | |
− | + | add2toolbar('javascript:Pro()','http://www.stupidedia.org/images/9/94/Pro.png', 'Pro setzen'); | |
+ | add2toolbar('javascript:Neutral()','http://www.stupidedia.org/images/4/4d/Neut.png', 'Neutral setzen'); | ||
+ | add2toolbar('javascript:Contra()','http://www.stupidedia.org/images/c/c4/Contra.png', 'Contra setzen'); | ||
+ | add2toolbar('javascript:Verwaist()','http://www.stupidedia.org/images/4/49/Traurig.jpg','als verwaist kennzeichnen'); | ||
+ | add2toolbar('javascript:insertTags("{{Benutzer:Ali-kr/Bilderupload|"+wgUserName+"|"+prompt(\'Kommentar?\')+"}}", "", "")', 'http://www.stupidedia.org/images/6/62/Clear.png', 'Hinweis zum Bilderupload'); -- | ||
+ | add2toolbar('javascript:Biene()', 'http://www.stupidedia.org/images/0/06/Biene.PNG', 'Fleißiges Bienchen!'); | ||
+ | add2toolbar('javascript:InsertALS()', 'http://www.stupidedia.org/images/a/ab/Rechtschreibung.png', 'Bild als ALS deklarieren'); | ||
+ | add2toolbar('javascript:MP3()','http://www.stupidedia.org/images/9/96/Note-Button.png','Soundfile einbinden'); | ||
+ | add2toolbar('javascript:insertTags("{{UK}}","","")','http://www.stupidedia.org/images/6/60/VUK.PNG','Vorlage:UK setzen'); | ||
+ | add2toolbar('javascript:RechteckBraun()','http://www.stupidedia.org/images/7/7f/Button_brown.png','braunes Rechteck'); | ||
+ | add2toolbar('javascript:Labor()','http://www.stupidedia.org/images/7/74/Button_oeil.png','Feedback für Artikel'); | ||
+ | |||
deleteButton(7); | deleteButton(7); | ||
+ | deleteButton(8); | ||
+ | deleteButton(9); | ||
+ | deleteButton(11); | ||
} | } | ||
function deleteButton(Nr){ | function deleteButton(Nr){ | ||
Zeile 95: | Zeile 138: | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
document.editform.wpTextbox1.value = "{{Conflict}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{Conflict}}\n" + Inhalt; | ||
− | document.editform.wpSummary.value = "[[Vorlage:Conflict|Es gibt einen Konflikt]]"; | + | document.editform.wpSummary.value = "[[Vorlage:Conflict|Es gibt einen Konflikt !]]"; |
+ | |||
+ | } | ||
+ | function Pro(){ | ||
+ | var mark = '{{P}}'; | ||
+ | var Comment = prompt("Kommentar?","Behalten!"); | ||
+ | document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' - ~~~~\n'; | ||
+ | document.editform.wpSummary.value = '[[Benutzer:metalhero1993|Der Blechheld]] befiehlt: [[Vorlage:Pro|Dageblieben!!]]'; | ||
+ | |||
+ | } | ||
+ | function MP3(){ | ||
+ | Inhalt = document.editform.wpTextbox1.value; | ||
+ | var filename = prompt("Dateiname?",".mp3"); | ||
+ | var autostart = prompt("Automatisch abspielen? yes - no (klein schreiben!!)","no"); | ||
+ | var loop = prompt("Wiederholung/Schleife anschalten? yes - no (klein schreiben!!)","no"); | ||
+ | document.editform.wpTextbox1.value = "<flashmp3>" + filename + "|autostart=" + autostart + "|loop=" + loop + "</flashmp3>\n" + Inhalt; | ||
+ | document.editform.wpSummary.value = "[[Stupidedia:Stupid-Audio|MP3 reloaded!]]"; | ||
+ | |||
+ | } | ||
+ | |||
+ | function Neutral(){ | ||
+ | var mark = '{{N}}'; | ||
+ | var Comment = prompt("Kommentar?","What schould i say?"); | ||
+ | document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' - ~~~~\n'; | ||
+ | document.editform.wpSummary.value = '[[Benutzer:metalhero1993|Der Blechkopp]] [[Vorlage:Neutral|Hat nix zu sagen!]]'; | ||
+ | } | ||
+ | |||
+ | function Contra(){ | ||
+ | var mark = '{{C}}'; | ||
+ | var Comment = prompt("Kommentar?","Go away! "); | ||
+ | document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' - ~~~~\n'; | ||
+ | document.editform.wpSummary.value = '[[Benutzer:metalhero1993|Stahlheld]] sagt: [[Vorlage:Contra|Wech]]!'; | ||
} | } | ||
Zeile 108: | Zeile 182: | ||
document.editform.wpTextbox1.value = "{{KK}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{KK}}\n" + Inhalt; | ||
document.editform.wpSummary.value = "[[Vorlage:KK|Kategorisieren!]]"; | document.editform.wpSummary.value = "[[Vorlage:KK|Kategorisieren!]]"; | ||
+ | } | ||
+ | function Bash(){ | ||
+ | document.editform.wpTextbox1.value = "{{Benutzer:Misses Kennedy/Bashing}}"; | ||
+ | document.editform.wpSummary.value = "No Bash! "; | ||
} | } | ||
Zeile 113: | Zeile 191: | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
document.editform.wpTextbox1.value = "{{R}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{R}}\n" + Inhalt; | ||
− | document.editform.wpSummary.value = "[[Vorlage:R| | + | document.editform.wpSummary.value = "[[Vorlage:R|Rächtschraibunk vermiss ich hier!]]"; |
} | } | ||
Zeile 119: | Zeile 197: | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
document.editform.wpTextbox1.value = "{{F}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{F}}\n" + Inhalt; | ||
− | document.editform.wpSummary.value = "[[Vorlage:F|Formatieren, | + | document.editform.wpSummary.value = "[[Vorlage:F|Formatieren, denn Übersicht muss sein!]]"; |
} | } | ||
Zeile 125: | Zeile 203: | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
document.editform.wpTextbox1.value = "{{Form}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{Form}}\n" + Inhalt; | ||
− | document.editform.wpSummary.value = "[[Vorlage:Form|Formulierung ändern, | + | document.editform.wpSummary.value = "[[Vorlage:Form|Formulierung ändern, ein bisschen gewählter!]]"; |
} | } | ||
Zeile 131: | Zeile 209: | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
document.editform.wpTextbox1.value = "{{UL}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{UL}}\n" + Inhalt; | ||
− | document.editform.wpSummary.value = "[[Vorlage:UL| | + | document.editform.wpSummary.value = "[[Vorlage:UL|Aus rot mach blau!]]"; |
} | } | ||
Zeile 140: | Zeile 218: | ||
} | } | ||
+ | function SLD(){ | ||
+ | Inhalt = document.editform.wpTextbox1.value; | ||
+ | document.editform.wpTextbox1.value = "{{SL-Direkt|metalhero1993}}" + Inhalt; | ||
+ | document.editform.wpSummary.value = "[[Sub:SL-Direkt|SLD: Wir verbiegen jeden Artikel!]]"; | ||
+ | } | ||
+ | |||
+ | function Fontsize(){ | ||
+ | var size = prompt("Schriftgröße wählen:",""); | ||
+ | if (size){ | ||
+ | var fontSi = '<div style=font-size:' + size + '%>'; | ||
+ | javascript:insertTags(fontSi,"</div>","Text hier einfügen") | ||
+ | } | ||
+ | } | ||
function Stub(){ | function Stub(){ | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
document.editform.wpTextbox1.value = "{{Stub|{{Subst:Datum}}}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{Stub|{{Subst:Datum}}}}\n" + Inhalt; | ||
− | document.editform.wpSummary.value = "[[Vorlage:Stub|Stub]]"; | + | document.editform.wpSummary.value = "[[Vorlage:Stub|Stub !]]"; |
} | } | ||
Zeile 150: | Zeile 241: | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
document.editform.wpTextbox1.value = "{{QO|{{Subst:Datum}}}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{QO|{{Subst:Datum}}}}\n" + Inhalt; | ||
− | document.editform.wpSummary.value = "[[Vorlage:QO|Qualitätsoffensive!!]]"; | + | document.editform.wpSummary.value = "[[Vorlage:QO|Qualitätsoffensive!!!]]"; |
} | } | ||
Zeile 159: | Zeile 250: | ||
document.editform.wpTextbox1.value = "{{M|" + Benutzername + "|" + Nachricht + "}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{M|" + Benutzername + "|" + Nachricht + "}}\n" + Inhalt; | ||
document.editform.wpSummary.value = "Message"; | document.editform.wpSummary.value = "Message"; | ||
+ | } | ||
+ | function InuseArticle(){ | ||
+ | Inhalt = document.editform.wpTextbox1.value; | ||
+ | document.editform.wpTextbox1.value = "{{Inuse|" + Benutzername + "}}" + Inhalt; | ||
} | } | ||
+ | function Vote(Vorlage){ | ||
+ | Inhalt = document.editform.wpTextbox1.value; | ||
+ | document.editform.wpTextbox1.value = Inhalt + "{{" + Vorlage + "}} ~~~~\n"; | ||
+ | } | ||
function RedirectArticle(){ | function RedirectArticle(){ | ||
var DirectSite = prompt("Zielartikel?","Unlustig"); | var DirectSite = prompt("Zielartikel?","Unlustig"); | ||
Zeile 172: | Zeile 271: | ||
function CorrectArticle(){ | function CorrectArticle(){ | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
− | var iLink = prompt("Interne Links überprüfen?","Einfügen, da keine | + | var iLink = prompt("Interne Links überprüfen?","Einfügen, da keine vorhanden"); |
− | var Category = prompt("Kategorisieren?","Ja | + | var Category = prompt("Kategorisieren?","Ja"); |
var Syntax = prompt("Rechtschreibung verbessern?","Ja, stellenweise"); | var Syntax = prompt("Rechtschreibung verbessern?","Ja, stellenweise"); | ||
var Format = prompt("Formatieren?","Zeilenumbrüche, Aufzählungszeichen und Überschriften setzen"); | var Format = prompt("Formatieren?","Zeilenumbrüche, Aufzählungszeichen und Überschriften setzen"); | ||
var Pictures = prompt("Bilder überprüfen?","Nein"); | var Pictures = prompt("Bilder überprüfen?","Nein"); | ||
− | var Comment = prompt("Commentar:","[[ | + | var Comment = prompt("Commentar:","Jetzt im Sonderangebot: [[Spam]]"); |
document.editform.wpTextbox1.value = "{{V|" + iLink + "|" + Category + "|" + Syntax + "|" + Format + "|" + Pictures + "|" + Comment + "|{{Subst:Datum}}}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{V|" + iLink + "|" + Category + "|" + Syntax + "|" + Format + "|" + Pictures + "|" + Comment + "|{{Subst:Datum}}}}\n" + Inhalt; | ||
− | document.editform.wpSummary.value = "Verbesserungsprogramm | + | document.editform.wpSummary.value = "Verbesserungsprogramm"; |
− | |||
} | } | ||
Zeile 188: | Zeile 286: | ||
var reason = prompt("Zu hoch, zu breit, zu blöd?","breit"); | var reason = prompt("Zu hoch, zu breit, zu blöd?","breit"); | ||
document.editform.wpTextbox1.value = "{{BadSig|" + userSig + "|" + reason + "|" + Benutzername + "}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{BadSig|" + userSig + "|" + reason + "|" + Benutzername + "}}\n" + Inhalt; | ||
− | document.editform.wpSummary.value = "Signatur | + | document.editform.wpSummary.value = "Doofe Sig!"; |
+ | } | ||
+ | |||
+ | function Standardtexte(){ | ||
+ | var Nachricht = prompt("1. Bildupload en détail erklären: 1 \n 2. Speziellen Flickr upload erklären: 2 \n 3. Harsche Warnung zum Bildupload 3 \n 4. Keine Lizenz bei Bildern ungleich PD: 4 \n 5. Bitte, bitte nicht erneut uploaden: 5 \n 6. Bitte außergewöhnliche Signatur anlegen: 6 \n 7. Signaturerstellung nochmal deutlich erklären: 7 \n 8. Beiträge immer signieren: 8 \n 9. Wechselsprechverkehr einhalten: 9 \n 10. Bitte Änderungen durchgehen: 10 \n 11. Seiten/ Texte farbig gestalten: 11 \n 12. Unterseiten erstellen: 12 \n 13. Keine Kats auf Userseiten: 13 \n 14. Offline >>> Bitte anmelden: 14 \n 15. Feedbackportal erst nach Inuse: 15 \n 16. Baustellenniveau bitte ausarbeiten: 16 \n 17. Vorlagen abarbeiten: 17 \n 18. Wie werde ich Diktator? 18 \n 19. Im Labor üben?: 19 \n 20. Bitte keinen Insiderkram?: 20 \n 21. Löschantrag entfernt?: 21 \n 22. IP fuscht an Inusegeschützen Artikeln?: 22 \n 23. Hilfen: Formatierung, Bilder, Tabellen, etc...: 23 \n 24. Richtlinien, Stupikette, etc. lesen?: 24 \n 25. Richtlinien (Mahnung): 25 \n 26. Spiegelwelten Logik: 26","Nummer"); | ||
+ | document.editform.wpTextbox1.value += "{{subst:Benutzer:JuliusHermann/Hinweis|" + Nachricht + "}} --~~~~"; | ||
+ | document.editform.wpSummary.value = "...dies ist ein automatisierter Standardtext ;-)"; | ||
} | } | ||
Zeile 196: | Zeile 300: | ||
var pagetwo = prompt("Zweiter Artikel?",""); | var pagetwo = prompt("Zweiter Artikel?",""); | ||
document.editform.wpTextbox1.value = "{{Überschneidung|" + pageone + "|" + pagetwo + "}}\n" + Inhalt; | document.editform.wpTextbox1.value = "{{Überschneidung|" + pageone + "|" + pagetwo + "}}\n" + Inhalt; | ||
− | document.editform.wpSummary.value = "[[Vorlage:Überschneidung|Überschneidung]]"; | + | document.editform.wpSummary.value = "[[Vorlage:Überschneidung|Überschneidung !]]"; |
} | } | ||
Zeile 211: | Zeile 315: | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
document.editform.wpTextbox1.value = "{{W|" + Benutzername + "}}" + Inhalt; | document.editform.wpTextbox1.value = "{{W|" + Benutzername + "}}" + Inhalt; | ||
− | document.editform.wpSummary.value = " | + | document.editform.wpSummary.value = "Welcome"; |
if(confirm("Kommentar hinzufügen?")) | if(confirm("Kommentar hinzufügen?")) | ||
{ | { | ||
Zeile 226: | Zeile 330: | ||
var Comment = prompt("Kommentar:",""); | var Comment = prompt("Kommentar:",""); | ||
document.editform.wpTextbox1.value += "<p>P.P.S:" + Comment + " - Gruß, ~~~~"; | document.editform.wpTextbox1.value += "<p>P.P.S:" + Comment + " - Gruß, ~~~~"; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function WelcomeUser(){ | ||
+ | Inhalt = document.editform.wpTextbox1.value; | ||
+ | document.editform.wpTextbox1.value = "{{W|" + Benutzername + "}}" + Inhalt; | ||
+ | document.editform.wpSummary.value = "Moin aus dem ostfriesischen Teil der Stupi!"; | ||
+ | if(confirm("Kommentar hinzufügen?")) | ||
+ | { | ||
+ | var Comment = prompt("Kommentar:",""); | ||
+ | document.editform.wpTextbox1.value += "<p>P.P.S: " + Comment + " - Gruß, ~~~~"; | ||
} | } | ||
} | } | ||
Zeile 234: | Zeile 349: | ||
document.editform.wpSummary.value = "Hinweis für SL-Autor"; | document.editform.wpSummary.value = "Hinweis für SL-Autor"; | ||
} | } | ||
+ | |||
+ | function Verwaist(){ | ||
+ | Inhalt = document.editform.wpTextbox1.value; | ||
+ | document.editform.wpTextbox1.value = "{{Verwaist}}\n" + Inhalt; | ||
+ | document.editform.wpSummary.value = "[[Vorlage:Verwaist|Einsam... das soll nicht sein!!]]"; | ||
+ | } | ||
+ | |||
function SL(){ | function SL(){ | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
− | document.editform.wpTextbox1.value = "{{SL | + | document.editform.wpTextbox1.value = "{{SL|" + Benutzername + "}}\n" + Inhalt; |
− | document.editform.wpSummary.value = " | + | document.editform.wpSummary.value = "Bloß weg!!"; |
} | } | ||
Zeile 272: | Zeile 394: | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
document.editform.wpTextbox1.value = "{{Vorlage:Nolicenseuser|" + Benutzername + "}}" + Inhalt; | document.editform.wpTextbox1.value = "{{Vorlage:Nolicenseuser|" + Benutzername + "}}" + Inhalt; | ||
− | document.editform.wpSummary.value = " | + | document.editform.wpSummary.value = "Lizenzen nachtragen !"; |
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Zeile 284: | Zeile 401: | ||
Inhalt = document.editform.wpTextbox1.value; | Inhalt = document.editform.wpTextbox1.value; | ||
document.editform.wpTextbox1.value = "{{Baustelle}}" + Inhalt; | document.editform.wpTextbox1.value = "{{Baustelle}}" + Inhalt; | ||
− | document.editform.wpSummary.value = "[[Vorlage:Baustelle| | + | document.editform.wpSummary.value = "[[Vorlage:Baustelle|Auf, auf!!]]"; |
} | } | ||
Zeile 291: | Zeile 408: | ||
document.editform.wpTextbox1.value = "{{Lizenz!}}" + Inhalt; | document.editform.wpTextbox1.value = "{{Lizenz!}}" + Inhalt; | ||
document.editform.wpSummary.value = "[[Vorlage:Lizenz!|Lizenzangaben! Sofort!]]"; | document.editform.wpSummary.value = "[[Vorlage:Lizenz!|Lizenzangaben! Sofort!]]"; | ||
+ | } | ||
+ | |||
+ | function MP3(){ | ||
+ | Inhalt = document.editform.wpTextbox1.value; | ||
+ | var filename = prompt("Dateiname?",".mp3"); | ||
+ | var autostart = prompt("Automatisch abspielen? yes - no (klein schreiben!!)","no"); | ||
+ | var loop = prompt("Wiederholung/Schleife anschalten? yes - no (klein schreiben!!)","no"); | ||
+ | document.editform.wpTextbox1.value = "<flashmp3>" + filename + "|autostart=" + autostart + "|loop=" + loop + "</flashmp3>\n" + Inhalt; | ||
+ | document.editform.wpSummary.value = "[[Stupidedia:Stupid-Audio|Nen Soundfile eingebaut!]]"; | ||
+ | |||
+ | } | ||
+ | |||
+ | /* | ||
+ | * Anfang Sterne zusammenfassen | ||
+ | */ | ||
+ | |||
+ | // Funktion wird gestartet, sofern man nicht beim Bearbeiten ist | ||
+ | if(document.title.indexOf('Bearbeiten') != 0){ | ||
+ | if (window.addEventListener) | ||
+ | { | ||
+ | window.addEventListener("load", SterneZusammenfassen, false); | ||
+ | } | ||
+ | else if (window.attachEvent) | ||
+ | window.attachEvent("onload", SterneZusammenfassen); | ||
+ | } | ||
+ | |||
+ | // die Kernfunktion. Zählt Sterne und verkleinert das Bild | ||
+ | function SterneZusammenfassen(){ | ||
+ | |||
+ | var HTMLQuellcode = document.body.innerHTML; | ||
+ | var sternPosition = HTMLQuellcode.indexOf("Sternschauer"); | ||
+ | var sternenzaehler = 0; | ||
+ | var hoechsteSternenAnzahl = 0; | ||
+ | |||
+ | while(SterneVorhanden(sternPosition)){ | ||
+ | positionDesBildes = HTMLQuellcode.indexOf("/images/",sternPosition); | ||
+ | positionDesBildes += 8 + 5; // 8 für den Text "/images/", 5 für den weitern Pfad (z.B. "a/a0/"); | ||
+ | aktuelleSternenzahl = Sterne_PunktzahlAusBildURL(positionDesBildes); | ||
+ | hoechsteSternenAnzahl = Math.max(aktuelleSternenzahl, hoechsteSternenAnzahl); | ||
+ | sternenzaehler += aktuelleSternenzahl; | ||
+ | sternPosition = HTMLQuellcode.indexOf("Sternschauer", positionDesBildes); | ||
+ | } | ||
+ | if(sternenzaehler>0){ | ||
+ | Tabelle = relevanteTabelle(); // "Tabelle" somit global definiert | ||
+ | verbergeSterne(sternenzaehler, hoechsteSternenAnzahl ); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function SterneVorhanden(position){ | ||
+ | return position>-1; | ||
+ | } | ||
+ | |||
+ | function Sterne_PunktzahlAusBildURL(position){ | ||
+ | var SternenBildName = document.body.innerHTML.substring(position, position+6); | ||
+ | if(SternenBildName == "5pluss") | ||
+ | return 5.5; | ||
+ | else{ | ||
+ | return parseInt(SternenBildName); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function Sterne_BildURLausPunktzahl(punktzahl){ | ||
+ | this.URL="1/1a/1"; | ||
+ | this.Beschreibung = "1 Stern"; | ||
+ | switch(punktzahl){ | ||
+ | case 5.5: this.URL="2/26/5plus"; this.Beschreibung = "5+ Sterne"; break; | ||
+ | case 5: this.URL="e/e5/5"; this.Beschreibung = "5 Sterne"; break; | ||
+ | case 4: this.URL="2/2f/4"; this.Beschreibung = "4 Sterne"; break; | ||
+ | case 3: this.URL="d/d5/3"; this.Beschreibung = "3 Sterne"; break; | ||
+ | case 2: this.URL="e/e2/2"; this.Beschreibung = "2 Sterne"; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function relevanteTabelle(){ | ||
+ | var Tabellen = document.getElementsByTagName("table"); | ||
+ | for(var i=0; i<Tabellen.length; i++){ | ||
+ | if(Tabellen[i].innerHTML.indexOf("/stupi/Stupidedia:Awards")>-1){return Tabellen[i];} | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function verbergeSterne(sternenzaehler, hoechsteSternenAnzahl){ | ||
+ | Tabelle.style.width="auto"; | ||
+ | Tabelle.style.cssFloat="right"; | ||
+ | var Zelle = Tabelle.getElementsByTagName("td"); | ||
+ | Zelle[0].style.color="white"; | ||
+ | Zelle[0].style.textAlign="center"; | ||
+ | Zelle[0].innerHTML = "<b>" + sternenzaehler + " Sterne</b><br><a href=\"javascript:zeigeSterne("+sternenzaehler+", "+hoechsteSternenAnzahl+")\" style=\"color:white\"><u><small>zeigen</small></u></a><br>"; | ||
+ | MaxStern = new Sterne_BildURLausPunktzahl(hoechsteSternenAnzahl); | ||
+ | Zelle[0].innerHTML += "max: <img src=\"/images/" + MaxStern .URL + "stars_small.PNG\" alt=\""+MaxStern.Beschreibung +"\" title=\""+MaxStern.Beschreibung +"\">"; | ||
+ | Zelle[1].style.display="none"; | ||
+ | } | ||
+ | |||
+ | function zeigeSterne(sternenzaehler, hoechsteSternenAnzahl){ | ||
+ | Tabelle.style.width="100%"; | ||
+ | Tabelle.style.cssFloat="none"; | ||
+ | var Zelle = Tabelle.getElementsByTagName("td"); | ||
+ | Zelle[0].innerHTML = "<a href=\"/stupi/Stupidedia:Awards\" title=\"Stupidedia:Awards\"><b><font color=\"#FFFFFF\">Benutzerauszeichnungen:</font></b></a><br><a href=\"javascript:verbergeSterne("+sternenzaehler+", "+hoechsteSternenAnzahl+")\" style=\"color:white\"><u><small>verbergen</small></u></a><br>" | ||
+ | Zelle[1].style.display="table-cell"; | ||
+ | } | ||
+ | |||
+ | /* | ||
+ | * Ende:Sterne zusammenfassen | ||
+ | */ | ||
+ | |||
+ | |||
+ | function Biene(){ Inhalt = document.editform.wpTextbox1.value; document.editform.wpTextbox1.value = "{{Biene|" + Benutzername + "}}" + Inhalt; document.editform.wpSummary.value = "Fleißiges Bienchen !"; | ||
+ | } | ||
+ | |||
+ | function Labor(){ Inhalt = document.editform.wpTextbox1.value; document.editform.wpTextbox1.value = "{{Benutzer:Wuschelkopf9/Labor|" + Artikel + "|" + Pro + "|" + Contra + "|" + Fazit + "|" + Benutzername + "}}" + Inhalt; document.editform.wpSummary.value = "Feedback"; | ||
+ | } | ||
+ | |||
+ | function InsertALS(){ Inhalt = document.editform.wpTextbox1.value; document.editform.wpTextbox1.value = "{{ALS-Bild|" + Benutzername + "}}" + Inhalt; document.editform.wpSummary.value = "Bild ist [[Vorlage:ALS-Bild|ALS]]"; | ||
+ | } | ||
+ | |||
+ | function Historienbild(){ Inhalt = document.editform.wpTextbox1.value; document.editform.wpTextbox1.value = "{{{{Historienbild|Weil Baum!|"+ Benuzername +"}} }}" + Inhalt; document.editform.wpSummary.value = "Historienbild"; | ||
} | } | ||
//</nowiki></pre> | //</nowiki></pre> |
Aktuelle Version vom 23. September 2010, 20:51 Uhr
//<pre><nowiki>
/*
StupidScript v1.1,08-15 STABILE VERSION
*/
rein_damit('addlilink');
rein_damit('indexlink');
rein_damit('rv2version');
rein_damit('recent_table');
rein_damit('loeschvorlage_einfügen');
rein_damit('Sterne');
rein_damit('linkchecker');
rein_damit('cookiework');
rein_damit('lastdiff');
rein_damit('neues_fenster');
rein_damit('smileys');
rein_damit('unwatch');
rein_damit('suche');
rein_damit('bearbeiten');
rein_damit('awards');
rein_damit('hinweise');
Benutzername = "metalhero1993";
Inhalt = "";
document.write('<script type="text/javascript" src="http://www.stupidedia.org/stupi?title=Benutzer:Lt._Simpson/monobook.js/Delbacklist.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
function recent_table_custom(){
color_newPage = 'blue';
color_stupi = 'green';
color_newPage = 'red'; // Das "N" vor neuen Seiten.
color_log = '#EBEBEB'; // Logbucheinträge.
color_talk = '#D6E2F8'; // Diskussionsseiten.
color_template = '#CAFBB5'; // Vorlagen.
color_stupi = 'gold'; // Stupidedia (außer Zitatwünsche).
color_user = '#FFC9AE'; // Benutzernamensraum.
color_image = '#FFFF91'; // Namensraum "Bild:".
color_imageUpload = '#EC6513'; // Bild-Uploads.
color_myself = '#FFA8FF'; // Der eigene Benutzername.
color_ip = '#FFCCCC'; // Änderungen von IPs.
}
function init(){
add2toolbar('javascript:insertTags("[[Wikipedia:de:","]]","Wikipedialink einfügen")','http://www.stupidedia.org/images/1/12/Wikipedia.png','Interwikilink setzen');
add2toolbar('javascript:RedirectArticle()', 'http://www.stupidedia.org/images/9/91/Redirect.png', 'Weiterleitung erstellen');
add2toolbar('javascript:RedirectArticle2()', 'http://www.stupidedia.org/images/a/a2/Namensartikel.png', 'Redirect Namensartikel');
add2toolbar('javascript:SL()', 'http://www.stupidedia.org/images/d/d8/Sofort_Loeschen_neu.png', 'Sofort-Löschen');
add2toolbar('javascript:Conflict()', 'http://www.stupidedia.org/images/4/4e/Conflict.png', 'Conflict');
add2toolbar('javascript:CorrectArticle()', 'http://www.stupidedia.org/images/2/24/Verbesserung.png', 'Verbesserungsvorlage erstellen');
add2toolbar('javascript:WelcomeUser()', 'http://www.stupidedia.org/images/4/42/Welcome.png', 'Benutzer Willkommenheissen');
add2toolbar('javascript:WIP()', 'http://www.stupidedia.org/images/9/93/Welcome_IP.png', 'IP Einladen');
add2toolbar('javascript:insertTags("{{","}}","Gewünschte Vorlage hier einfügen")','http://www.stupidedia.org/images/4/48/Vorlage.png', 'Vorlage einfügen');
add2toolbar('javascript:insertTags("=== "," ===","Ebene 3 Überschrift")','http://www.stupidedia.org/images/e/e7/Ebene_3.png', 'Ebene 3 Überschrift');
add2toolbar('javascript:FindReplace()', 'http://www.stupidedia.org/images/b/b6/Ersetzen.png', 'Text ersetzen');
add2toolbar('javascript:ColorOn()', 'http://www.stupidedia.org/images/7/77/Schriftfarbe.png', 'Text einfärben');
add2toolbar('javascript:ColorBackground()', 'http://www.stupidedia.org/images/d/de/Hintergrundfarbe.png', 'Texthintergrund einfärben');
add2toolbar('javascript:insertTags("<span style=text-decoration:blink;>","</span>","Blinkschrift hier einfügen")','http://www.stupidedia.org/images/8/8c/Blink.PNG','Blinkschrift');
add2toolbar('javascript:insertTags("<s>","</s>","Durchgestrichenen Text hier einfügen")','http://www.stupidedia.org/images/7/73/Durchstreichen.png','Durchgestrichenen Text einfügen');
add2toolbar('javascript:insertTags("<u>","</u>","Unterstrichenen Text hier einfügen")','http://www.stupidedia.org/images/8/82/Unterstreichen.png','Unterstrichenen Text einfügen');
add2toolbar('javascript:insertTags("<big>","</big>","Großen Text einfügen")','http://www.stupidedia.org/images/c/cc/Big.png','Großen Text einfügen');
add2toolbar('javascript:insertTags("<small>","</small>","Kleinen Text einfügen")','http://www.stupidedia.org/images/b/b6/Small.png','Kleinen Text einfügen');
add2toolbar('javascript:insertTags("<sub>","</sub>","Tiefgestellten Text einfügen")','http://www.stupidedia.org/images/6/67/Sub.png','Tiefgestellten Text einfügen');
add2toolbar('javascript:insertTags("<sup>","</sup>","Hochgestellten Text einfügen")','http://www.stupidedia.org/images/f/f3/Sup.png','Hochgestellten Text einfügen');
add2toolbar('javascript:insertTags("<center>","</center>","Zentrieren")','http://www.stupidedia.org/images/5/56/Center.png','Zentrieren');
add2toolbar('javascript:insertTags("<div align=right>","</div>","Rechts ausgerichteten Text einfügen")','http://www.stupidedia.org/images/0/02/Right.PNG','Text nach Rechts ausrichten');
add2toolbar('javascript:insertTags("<br>","","")','http://www.stupidedia.org/images/4/44/Zeilenumbruch.png','Zeilenumbruch');
add2toolbar('javascript:insertTags("<br style=clear:both />","","")','http://www.stupidedia.org/images/e/e8/Absatz.png','Großabsatz setzen');
add2toolbar('javascript:SLA()', 'http://www.stupidedia.org/images/0/06/SL-Autor.png', 'SL Autor');
add2toolbar('javascript:Baustelle()', 'http://www.stupidedia.org/images/e/e0/Baustelle.gif', 'Baustelle');
add2toolbar('javascript:Double()', 'http://www.stupidedia.org/images/0/02/Doppelt.png', 'Überschneidung');
add2toolbar('javascript:Stub()', 'http://www.stupidedia.org/images/f/fe/Stub.png', 'Stub');
add2toolbar('javascript:InterneLinks()','http://www.stupidedia.org/images/0/0d/Interne_Links.png','Vorlage:Interne Links setzen');
add2toolbar('javascript:KK()','http://www.stupidedia.org/images/3/34/Keine_Kategorie.png','Vorlage:KK setzen');
add2toolbar('javascript:Rechtschreibung()','http://www.stupidedia.org/images/a/ab/Rechtschreibung.png','Vorlage:Rechtschreibung setzen');
add2toolbar('javascript:InuseArticle()', 'http://www.stupidedia.org/images/8/85/Inuse.png', 'Inuse erstellen');
add2toolbar('javascript:Format()','http://www.stupidedia.org/images/6/6c/Format.png','Vorlage:Format setzen');
add2toolbar('javascript:UL()','http://www.stupidedia.org/images/d/de/Unsinnige_Links.png','Vorlage:UL setzen');
add2toolbar('javascript:Form()','http://www.stupidedia.org/images/d/d0/Form.png','Vorlage:Form setzen');
add2toolbar('javascript:Message()', 'http://www.stupidedia.org/images/a/a5/Message.png', 'Mitteilung schreiben');
add2toolbar('javascript:UsePreview();','http://www.stupidedia.org/images/7/75/Preview.png','Vorschau-Button benutzen');
add2toolbar('javascript:SLD()', 'http://www.stupidedia.org/images/2/27/SLD.PNG', 'SL-Direkt');
add2toolbar('javascript:insertTags(" http://www.stupidedia.org/images/6/63/Laugth.gif ","","")','http://www.stupidedia.org/images/8/80/Smiley.png','Smiley setzen');
add2toolbar('javascript:insertTags("[[Benutzer:","|]]","Benutzername hier einfügen")','http://www.stupidedia.org/images/5/5b/Benutzer.png','Userlink setzen');
add2toolbar('javascript:insertTags("[[Kategorie:","]]","Kategorie hier einfügen")','http://www.stupidedia.org/images/3/3c/Kategorie.png','Kategorie setzen');
add2toolbar('javascript:insertTags("„<i>","</i>“","Zitat hier einfügen")','http://www.stupidedia.org/images/9/97/Zitat.png','Zitat setzen');
add2toolbar('javascript:BadSig()','http://www.stupidedia.org/images/0/06/BadSig.png','Benutzer wegen Signatur anmeckern');
add2toolbar('javascript:NolicenseUser()','http://www.stupidedia.org/images/4/4c/Nolicenseusernb3.png', 'Nolicense-User-Diskussionsvorlage');
add2toolbar('javascript:Lizenz()', 'http://stupidedia.org/images/d/d3/Editleistenknopf_lizenz.png', 'Lizenz! Sofort!');
add2toolbar('javascript:Fontsize()','http://www.stupidedia.org/images/4/47/Fontsizebg4.png','Schriftgröße wählen');
add2toolbar('javascript:Pro()','http://www.stupidedia.org/images/9/94/Pro.png', 'Pro setzen');
add2toolbar('javascript:Neutral()','http://www.stupidedia.org/images/4/4d/Neut.png', 'Neutral setzen');
add2toolbar('javascript:Contra()','http://www.stupidedia.org/images/c/c4/Contra.png', 'Contra setzen');
add2toolbar('javascript:Verwaist()','http://www.stupidedia.org/images/4/49/Traurig.jpg','als verwaist kennzeichnen');
add2toolbar('javascript:insertTags("{{Benutzer:Ali-kr/Bilderupload|"+wgUserName+"|"+prompt(\'Kommentar?\')+"}}", "", "")', 'http://www.stupidedia.org/images/6/62/Clear.png', 'Hinweis zum Bilderupload'); --
add2toolbar('javascript:Biene()', 'http://www.stupidedia.org/images/0/06/Biene.PNG', 'Fleißiges Bienchen!');
add2toolbar('javascript:InsertALS()', 'http://www.stupidedia.org/images/a/ab/Rechtschreibung.png', 'Bild als ALS deklarieren');
add2toolbar('javascript:MP3()','http://www.stupidedia.org/images/9/96/Note-Button.png','Soundfile einbinden');
add2toolbar('javascript:insertTags("{{UK}}","","")','http://www.stupidedia.org/images/6/60/VUK.PNG','Vorlage:UK setzen');
add2toolbar('javascript:RechteckBraun()','http://www.stupidedia.org/images/7/7f/Button_brown.png','braunes Rechteck');
add2toolbar('javascript:Labor()','http://www.stupidedia.org/images/7/74/Button_oeil.png','Feedback für Artikel');
deleteButton(7);
deleteButton(8);
deleteButton(9);
deleteButton(11);
}
function deleteButton(Nr){
document.getElementById('toolbar').getElementsByTagName("img")[Nr].style.display = "none";
}
function add2toolbar(url, bild, titel)
{
var container = document.getElementById('toolbar');
var link = document.createElement('a');
link.href = url;
link.title = titel;
var image = document.createElement('img');
image.src = bild;
image.style.height = '22px';
image.style.width = '23px';
link.appendChild(image);
container.appendChild(link);
}
if(document.title.indexOf('Bearbeiten') == 0)
{
if (window.addEventListener)
{
window.addEventListener("load", init, false);
}
else if (window.attachEvent)
window.attachEvent("onload", init);
}
function Conflict(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Conflict}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:Conflict|Es gibt einen Konflikt !]]";
}
function Pro(){
var mark = '{{P}}';
var Comment = prompt("Kommentar?","Behalten!");
document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' - ~~~~\n';
document.editform.wpSummary.value = '[[Benutzer:metalhero1993|Der Blechheld]] befiehlt: [[Vorlage:Pro|Dageblieben!!]]';
}
function MP3(){
Inhalt = document.editform.wpTextbox1.value;
var filename = prompt("Dateiname?",".mp3");
var autostart = prompt("Automatisch abspielen? yes - no (klein schreiben!!)","no");
var loop = prompt("Wiederholung/Schleife anschalten? yes - no (klein schreiben!!)","no");
document.editform.wpTextbox1.value = "<flashmp3>" + filename + "|autostart=" + autostart + "|loop=" + loop + "</flashmp3>\n" + Inhalt;
document.editform.wpSummary.value = "[[Stupidedia:Stupid-Audio|MP3 reloaded!]]";
}
function Neutral(){
var mark = '{{N}}';
var Comment = prompt("Kommentar?","What schould i say?");
document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' - ~~~~\n';
document.editform.wpSummary.value = '[[Benutzer:metalhero1993|Der Blechkopp]] [[Vorlage:Neutral|Hat nix zu sagen!]]';
}
function Contra(){
var mark = '{{C}}';
var Comment = prompt("Kommentar?","Go away! ");
document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' - ~~~~\n';
document.editform.wpSummary.value = '[[Benutzer:metalhero1993|Stahlheld]] sagt: [[Vorlage:Contra|Wech]]!';
}
function InterneLinks(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{IL}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:IL|Intern verlinken!]]";
}
function KK(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{KK}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:KK|Kategorisieren!]]";
}
function Bash(){
document.editform.wpTextbox1.value = "{{Benutzer:Misses Kennedy/Bashing}}";
document.editform.wpSummary.value = "No Bash! ";
}
function Rechtschreibung(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{R}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:R|Rächtschraibunk vermiss ich hier!]]";
}
function Format(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{F}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:F|Formatieren, denn Übersicht muss sein!]]";
}
function Form(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Form}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:Form|Formulierung ändern, ein bisschen gewählter!]]";
}
function UL(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{UL}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:UL|Aus rot mach blau!]]";
}
function UK(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{UK}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:UK|Unpassende Kategorien!]]";
}
function SLD(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{SL-Direkt|metalhero1993}}" + Inhalt;
document.editform.wpSummary.value = "[[Sub:SL-Direkt|SLD: Wir verbiegen jeden Artikel!]]";
}
function Fontsize(){
var size = prompt("Schriftgröße wählen:","");
if (size){
var fontSi = '<div style=font-size:' + size + '%>';
javascript:insertTags(fontSi,"</div>","Text hier einfügen")
}
}
function Stub(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Stub|{{Subst:Datum}}}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:Stub|Stub !]]";
}
function QO(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{QO|{{Subst:Datum}}}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:QO|Qualitätsoffensive!!!]]";
}
function Message(){
Inhalt = document.editform.wpTextbox1.value;
var Nachricht = prompt("Text der Nachricht?","Hier Nachricht schreiben");
document.editform.wpTextbox1.value = "{{M|" + Benutzername + "|" + Nachricht + "}}\n" + Inhalt;
document.editform.wpSummary.value = "Message";
}
function InuseArticle(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Inuse|" + Benutzername + "}}" + Inhalt;
}
function Vote(Vorlage){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = Inhalt + "{{" + Vorlage + "}} ~~~~\n";
}
function RedirectArticle(){
var DirectSite = prompt("Zielartikel?","Unlustig");
document.editform.wpTextbox1.value = "#Redirect [[" + DirectSite + "]]";
document.editform.wpSummary.value = "Redirect nach [[" + DirectSite + "]]";
}
function RedirectArticle2(){
document.editform.wpTextbox1.value = "#Redirect [[Namensartikel]]";
document.editform.wpSummary.value = "Redirect nach [[Namensartikel]]";
}
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 + "|{{Subst:Datum}}}}\n" + Inhalt;
document.editform.wpSummary.value = "Verbesserungsprogramm";
}
function BadSig(){
Inhalt = document.editform.wpTextbox1.value;
var userSig = prompt("Benutzername und Signaturpfad des Übeltäters?","Muster/Sig");
var reason = prompt("Zu hoch, zu breit, zu blöd?","breit");
document.editform.wpTextbox1.value = "{{BadSig|" + userSig + "|" + reason + "|" + Benutzername + "}}\n" + Inhalt;
document.editform.wpSummary.value = "Doofe Sig!";
}
function Standardtexte(){
var Nachricht = prompt("1. Bildupload en détail erklären: 1 \n 2. Speziellen Flickr upload erklären: 2 \n 3. Harsche Warnung zum Bildupload 3 \n 4. Keine Lizenz bei Bildern ungleich PD: 4 \n 5. Bitte, bitte nicht erneut uploaden: 5 \n 6. Bitte außergewöhnliche Signatur anlegen: 6 \n 7. Signaturerstellung nochmal deutlich erklären: 7 \n 8. Beiträge immer signieren: 8 \n 9. Wechselsprechverkehr einhalten: 9 \n 10. Bitte Änderungen durchgehen: 10 \n 11. Seiten/ Texte farbig gestalten: 11 \n 12. Unterseiten erstellen: 12 \n 13. Keine Kats auf Userseiten: 13 \n 14. Offline >>> Bitte anmelden: 14 \n 15. Feedbackportal erst nach Inuse: 15 \n 16. Baustellenniveau bitte ausarbeiten: 16 \n 17. Vorlagen abarbeiten: 17 \n 18. Wie werde ich Diktator? 18 \n 19. Im Labor üben?: 19 \n 20. Bitte keinen Insiderkram?: 20 \n 21. Löschantrag entfernt?: 21 \n 22. IP fuscht an Inusegeschützen Artikeln?: 22 \n 23. Hilfen: Formatierung, Bilder, Tabellen, etc...: 23 \n 24. Richtlinien, Stupikette, etc. lesen?: 24 \n 25. Richtlinien (Mahnung): 25 \n 26. Spiegelwelten Logik: 26","Nummer");
document.editform.wpTextbox1.value += "{{subst:Benutzer:JuliusHermann/Hinweis|" + Nachricht + "}} --~~~~";
document.editform.wpSummary.value = "...dies ist ein automatisierter Standardtext ;-)";
}
function Double(){
Inhalt = document.editform.wpTextbox1.value;
var pageone = prompt("Erster Artikel?","");
var pagetwo = prompt("Zweiter Artikel?","");
document.editform.wpTextbox1.value = "{{Überschneidung|" + pageone + "|" + pagetwo + "}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:Überschneidung|Überschneidung !]]";
}
function UsePreview(){
var Article = prompt('Gemeinter Artikel');
if(Article != ''){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = '{{Vorschau|' + Article + '}}\n' + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:Vorschau|Erst gucken, dann speichern!]]";
}
}
function WelcomeUser(){
Inhalt = document.editform.wpTextbox1.value;
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 + " - Gruß, ~~~~";
}
}
function WIP(){
Inhalt = document.editform.wpTextbox1.value;
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 + " - Gruß, ~~~~";
}
}
function WelcomeUser(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{W|" + Benutzername + "}}" + Inhalt;
document.editform.wpSummary.value = "Moin aus dem ostfriesischen Teil der Stupi!";
if(confirm("Kommentar hinzufügen?"))
{
var Comment = prompt("Kommentar:","");
document.editform.wpTextbox1.value += "<p>P.P.S: " + Comment + " - Gruß, ~~~~";
}
}
function SLA(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{SLA|" + Benutzername + "}}\n" + Inhalt;
document.editform.wpSummary.value = "Hinweis für SL-Autor";
}
function Verwaist(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Verwaist}}\n" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:Verwaist|Einsam... das soll nicht sein!!]]";
}
function SL(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{SL|" + Benutzername + "}}\n" + Inhalt;
document.editform.wpSummary.value = "Bloß weg!!";
}
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 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 NolicenseUser(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Vorlage:Nolicenseuser|" + Benutzername + "}}" + Inhalt;
document.editform.wpSummary.value = "Lizenzen nachtragen !";
}
function Baustelle(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Baustelle}}" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:Baustelle|Auf, auf!!]]";
}
function Lizenz(){
Inhalt = document.editform.wpTextbox1.value;
document.editform.wpTextbox1.value = "{{Lizenz!}}" + Inhalt;
document.editform.wpSummary.value = "[[Vorlage:Lizenz!|Lizenzangaben! Sofort!]]";
}
function MP3(){
Inhalt = document.editform.wpTextbox1.value;
var filename = prompt("Dateiname?",".mp3");
var autostart = prompt("Automatisch abspielen? yes - no (klein schreiben!!)","no");
var loop = prompt("Wiederholung/Schleife anschalten? yes - no (klein schreiben!!)","no");
document.editform.wpTextbox1.value = "<flashmp3>" + filename + "|autostart=" + autostart + "|loop=" + loop + "</flashmp3>\n" + Inhalt;
document.editform.wpSummary.value = "[[Stupidedia:Stupid-Audio|Nen Soundfile eingebaut!]]";
}
/*
* Anfang Sterne zusammenfassen
*/
// Funktion wird gestartet, sofern man nicht beim Bearbeiten ist
if(document.title.indexOf('Bearbeiten') != 0){
if (window.addEventListener)
{
window.addEventListener("load", SterneZusammenfassen, false);
}
else if (window.attachEvent)
window.attachEvent("onload", SterneZusammenfassen);
}
// die Kernfunktion. Zählt Sterne und verkleinert das Bild
function SterneZusammenfassen(){
var HTMLQuellcode = document.body.innerHTML;
var sternPosition = HTMLQuellcode.indexOf("Sternschauer");
var sternenzaehler = 0;
var hoechsteSternenAnzahl = 0;
while(SterneVorhanden(sternPosition)){
positionDesBildes = HTMLQuellcode.indexOf("/images/",sternPosition);
positionDesBildes += 8 + 5; // 8 für den Text "/images/", 5 für den weitern Pfad (z.B. "a/a0/");
aktuelleSternenzahl = Sterne_PunktzahlAusBildURL(positionDesBildes);
hoechsteSternenAnzahl = Math.max(aktuelleSternenzahl, hoechsteSternenAnzahl);
sternenzaehler += aktuelleSternenzahl;
sternPosition = HTMLQuellcode.indexOf("Sternschauer", positionDesBildes);
}
if(sternenzaehler>0){
Tabelle = relevanteTabelle(); // "Tabelle" somit global definiert
verbergeSterne(sternenzaehler, hoechsteSternenAnzahl );
}
}
function SterneVorhanden(position){
return position>-1;
}
function Sterne_PunktzahlAusBildURL(position){
var SternenBildName = document.body.innerHTML.substring(position, position+6);
if(SternenBildName == "5pluss")
return 5.5;
else{
return parseInt(SternenBildName);
}
}
function Sterne_BildURLausPunktzahl(punktzahl){
this.URL="1/1a/1";
this.Beschreibung = "1 Stern";
switch(punktzahl){
case 5.5: this.URL="2/26/5plus"; this.Beschreibung = "5+ Sterne"; break;
case 5: this.URL="e/e5/5"; this.Beschreibung = "5 Sterne"; break;
case 4: this.URL="2/2f/4"; this.Beschreibung = "4 Sterne"; break;
case 3: this.URL="d/d5/3"; this.Beschreibung = "3 Sterne"; break;
case 2: this.URL="e/e2/2"; this.Beschreibung = "2 Sterne";
}
}
function relevanteTabelle(){
var Tabellen = document.getElementsByTagName("table");
for(var i=0; i<Tabellen.length; i++){
if(Tabellen[i].innerHTML.indexOf("/stupi/Stupidedia:Awards")>-1){return Tabellen[i];}
}
}
function verbergeSterne(sternenzaehler, hoechsteSternenAnzahl){
Tabelle.style.width="auto";
Tabelle.style.cssFloat="right";
var Zelle = Tabelle.getElementsByTagName("td");
Zelle[0].style.color="white";
Zelle[0].style.textAlign="center";
Zelle[0].innerHTML = "<b>" + sternenzaehler + " Sterne</b><br><a href=\"javascript:zeigeSterne("+sternenzaehler+", "+hoechsteSternenAnzahl+")\" style=\"color:white\"><u><small>zeigen</small></u></a><br>";
MaxStern = new Sterne_BildURLausPunktzahl(hoechsteSternenAnzahl);
Zelle[0].innerHTML += "max: <img src=\"/images/" + MaxStern .URL + "stars_small.PNG\" alt=\""+MaxStern.Beschreibung +"\" title=\""+MaxStern.Beschreibung +"\">";
Zelle[1].style.display="none";
}
function zeigeSterne(sternenzaehler, hoechsteSternenAnzahl){
Tabelle.style.width="100%";
Tabelle.style.cssFloat="none";
var Zelle = Tabelle.getElementsByTagName("td");
Zelle[0].innerHTML = "<a href=\"/stupi/Stupidedia:Awards\" title=\"Stupidedia:Awards\"><b><font color=\"#FFFFFF\">Benutzerauszeichnungen:</font></b></a><br><a href=\"javascript:verbergeSterne("+sternenzaehler+", "+hoechsteSternenAnzahl+")\" style=\"color:white\"><u><small>verbergen</small></u></a><br>"
Zelle[1].style.display="table-cell";
}
/*
* Ende:Sterne zusammenfassen
*/
function Biene(){ Inhalt = document.editform.wpTextbox1.value; document.editform.wpTextbox1.value = "{{Biene|" + Benutzername + "}}" + Inhalt; document.editform.wpSummary.value = "Fleißiges Bienchen !";
}
function Labor(){ Inhalt = document.editform.wpTextbox1.value; document.editform.wpTextbox1.value = "{{Benutzer:Wuschelkopf9/Labor|" + Artikel + "|" + Pro + "|" + Contra + "|" + Fazit + "|" + Benutzername + "}}" + Inhalt; document.editform.wpSummary.value = "Feedback";
}
function InsertALS(){ Inhalt = document.editform.wpTextbox1.value; document.editform.wpTextbox1.value = "{{ALS-Bild|" + Benutzername + "}}" + Inhalt; document.editform.wpSummary.value = "Bild ist [[Vorlage:ALS-Bild|ALS]]";
}
function Historienbild(){ Inhalt = document.editform.wpTextbox1.value; document.editform.wpTextbox1.value = "{{{{Historienbild|Weil Baum!|"+ Benuzername +"}} }}" + Inhalt; document.editform.wpSummary.value = "Historienbild";
}
//</nowiki></pre>