|
|
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) |
Zeile 1: |
Zeile 1: |
− | //<pre><nowiki> | + | /** |
− | | + | * Mahlzeit! |
− | rein_damit('addlilink');
| + | * |
− | rein_damit('indexlink');
| + | * Aufgrund eines Softwareupdates ist diese Seite nicht mehr mit der übrigen Technik der Stupidedia |
− | rein_damit('rv2version');
| + | * kompatibel und würde bei Benutzung einen kritischen Fehler verursachen. Aus diesem Grund habe ich |
− | rein_damit('loeschvorlage_einfügen');
| + | * die Seite geleert. Die meisten Funktionen stehen inzwischen als Helferlein zur Verfügung und |
− | rein_damit('Sterne');
| + | * können in den Einstellungen unter dem Tab „Helferlein“ aktiviert werden. Daher wirst |
− | rein_damit('recent_table');
| + | * diese Seite vermutlich nicht mehr benötigen. Falls aber doch, kannst du den alten Code nach wie |
− | rein_damit('verbesserung');
| + | * vor in der Versionsgeschichte einsehen. Außerdem kannst du diese Seite unterhalb dieses |
− | rein_damit('cookiework');
| + | * Kommentarblocks weiterhin benutzen. |
− | rein_damit('Recentchanges');
| + | * |
− | rein_damit('hinweise');
| + | * Solltest du Fragen zu dieser Umstellung haben, kannst du dich gerne jederzeit an mich wenden. |
− | rein_damit('add2toolbar');
| + | * |
− | | + | * Mit freundlichen Grüßen |
− | Benutzername = "K4.0";
| + | * — Phorgo / 01:48, 13. Mai 2014 (CEST) |
− | Inhalt = "";
| + | * |
− |
| + | * <nowiki> |
− | function init(){
| + | */ |
− | add2toolbar('javascript:SLD()', 'http://www.stupidedia.org/images/2/27/SLD.PNG', 'SL-Direkt');
| |
− | add2toolbar('javascript:RedirectArticle2()', 'http://www.stupidedia.org/images/a/a2/Namensartikel.png', 'SL-Redirect');
| |
− | add2toolbar('javascript:SLA()', 'http://www.stupidedia.org/images/0/06/SL-Autor.png', 'SL Autor');
| |
− | 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("<span style=text-decoration:blink;>","</span>","Blinkschrift hier einfügen")','http://www.stupidedia.org/images/8/8c/Blink.PNG','Blinkschrift');
| |
− | add2toolbar('javascript:insertTags("{{QO|{{Subst:Datum}}}}","","")','http://www.stupidedia.org/images/5/54/Qualit%C3%A4tsoffensive.png','QO');
| |
− | add2toolbar('javascript:Baustelle()', 'http://www.stupidedia.org/images/e/e0/Baustelle.gif', 'Baustelle');
| |
− | add2toolbar('javascript:Stub()', 'http://www.stupidedia.org/images/f/fe/Stub.png', 'Stub');
| |
− | 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:BadSig()','http://www.stupidedia.org/images/0/06/BadSig.png','Benutzer wegen Signatur anmeckern');
| |
− | add2toolbar('javascript:Lizenz()', 'http://stupidedia.org/images/d/d3/Editleistenknopf_lizenz.png', 'Lizenz! Sofort!');
| |
− | add2toolbar('javascript:NolicenseUser()','http://www.stupidedia.org/images/4/4c/Nolicenseusernb3.png', 'Nolicense-User-Diskussionsvorlage');
| |
− | add2toolbar('javascript:MP3()','http://www.stupidedia.org/images/9/96/Note-Button.png','Soundfile einbinden');
| |
− | 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');
| |
− | | |
− | | |
− | deleteButton(5);
| |
− | deleteButton(6);
| |
− | deleteButton(7);
| |
− | }
| |
− | 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 SLD(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{SL|K4.0}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Sub:SL-Direkt|Und tschüss!]]";
| |
− | }
| |
− | | |
− | function Stub(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Stub|{{Subst:Datum}}}}\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:Stub|Stub]]";
| |
− | | |
− | }
| |
− | | |
− | 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 = "Signatur bemängelt!";
| |
− | | |
− | }
| |
− | | |
− | function WelcomeUser(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{W|" + Benutzername + "}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "Herzlich Willkommen von K4.0";
| |
− | }
| |
− | function WIP(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{WIP|" + Benutzername + "}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "Lust, dich anzumelden?";
| |
− | }
| |
− | | |
− | function Baustelle(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{Baustelle}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "[[Vorlage:Baustelle|Weiter geht`s!]]";
| |
− | }
| |
− | | |
− | 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|Soundfile eingebaut!]]";
| |
− | }
| |
− | function Pro(){
| |
− | var mark = '{{P}}';
| |
− | var Comment = prompt("Kommentar?","Behalten!");
| |
− | document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' - ~~~~\n';
| |
− | document.editform.wpSummary.value = '[[Benutzer:K4.0|K4.0]] räumt dem Artikel [[Existenz]]rechte ein!';
| |
− | | |
− | | |
− | }
| |
− | | |
− | function Neutral(){
| |
− | var mark = '{{N}}';
| |
− | var Comment = prompt("Kommentar?","Bin mir nicht sicher!");
| |
− | document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' - ~~~~\n';
| |
− | document.editform.wpSummary.value = '[[Benutzer:K4.0|K4.0]] sagt [[Desorientierung|nix]]';
| |
− | }
| |
− | | |
− | function Contra(){
| |
− | var mark = '{{C}}';
| |
− | var Comment = prompt("Kommentar?","Weg damit ");
| |
− | document.editform.wpTextbox1.value += '' + mark + ' ' + Comment + ' - ~~~~\n';
| |
− | document.editform.wpSummary.value = '[[Benutzer:K4.0|K4.0]] behauptet: [[Mülltonne|Weg damit!]]';
| |
− | }
| |
− | | |
− | function SLA(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = "{{SLA|" + Benutzername + "}}" + Inhalt;
| |
− | document.editform.wpSummary.value = "Hinweis für SL-Autor";
| |
− | }
| |
− | | |
− | function RedirectArticle2(){
| |
− | var DirectSite = prompt("Zielartikel?","Unlustig");
| |
− | document.editform.wpTextbox1.value = "#REDIRECT [[" + DirectSite + "]]\n[[Kategorie:Stupidedia:Löschkandidaten|!]]\n\n" + Inhalt;
| |
− | document.editform.wpSummary.value = "Wenn ein Vandale nicht aufhören will, fordert es drastische Maßnahmen";
| |
− | }
| |
− | | |
− | function NolicenseUser(){
| |
− | Inhalt = document.editform.wpTextbox1.value;
| |
− | document.editform.wpTextbox1.value = Inhalt + "{{Nolicenseuser|" + Benutzername + "}}";
| |
− | document.editform.wpSummary.value = "Bilder-Rechte sind nicht geklärt. Es droht die Löschung!";
| |
− | }
| |
− | | |
− | //</nowiki></pre>
| |