Benutzer:MichaelFrey/monobook.js
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Internet Explorer/Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
- Opera: Strg+F5
//Version 0.50 - Weitere bedingte Buttons für Beweisstrukturen
//Version 0.49 - Button für mathematische Bedingung und mathematische Liste; bedingter Button für Stichwortumleitung
//Version 0.48 - Stärkere Strukturierung, Erweiterung bei Vorlagenbutton
//Version 0.47 - Stichwortbutton und bedingter Definitionswort-Button statt Betonung
//Version 0.46 - Operatorvorlage
//Version 0.45 - Testphase für semantische Tafeldarstellung nach unter abgetrennt
//Version 0.44 - Bedingter Button für Widerspruchsbeweis
//Version 0.43 - Bedingter Button für Induktionsbeweis
//Version 0.42 - Button für mathematische Vorlage im Display
//Version 0.41 - Button für Strukturvorlage
//Version 0.40 - Bedingter Button für Fallunterscheidung
//Version 0.39 - Bedingter Button für Zuweisung, für Definition (Testphase)
//Version 0.38 - Bedingter Button für Zwischenbehauptung
//Version 0.37 - Bedingter Button für Latexmakros
//Version 0.36 - Andere Buttons, Ausrichtung entfernt (durch Vergleichskette ersetzt), Einrückung entfernt, Operatorname nach links, Bild leicht nach rechts
//Version 0.35 - Bedingter Button für Vorlagengestaltung
//Version 0.34 - Button für Situationsbeschreibung
//Version 0.33 - Aufgabenstrukuren unter Aufgabenbedingung (man/Sie)
//Version 0.32 - Mathkon in Mathkor umbenannt und umgestaltet (für korrespondierende Terme)
//Version 0.31 - Bedingter Button für Bucheintrag
//Version 0.30 - Button für häufige Abbildungsstruktur
//Version 0.29 - Button für Vergleichskette (semantischer)
//Version 0.28 - Button für Mathkon
//Version 0.27 - Bedingter Button für Latexseite
//Version 0.26 - Button für Vortragseintrag unter der Bedingung /Themen und /Vorträge
//Version 0.25 - Bildbutton ergänzt um Dokumentationsmöglichkeit für Lizenz
//Version 0.24 - Button für Klammerzusätze. Textart und Objektkategorie-Zeile im mathematischen Text.
//Version 0.23 - Vorlagebutton und Parameterbutton eingeführt, Änderungen an D-Link und F-Link, Kategorisierungshilfe.
//Version 0.22 - "Faktstruktur" eingeführt.
//Version 0.21 - "math", "mathdisplay" und "inputbild" angepasst.
//Version 0.20 - "D-Link", "F-Link" eingeführt.
//Version 0.19 - "MathDisplay", "Aufzählung": zeilenweise Aufteilung der Elemente eingeführt.
//Version 0.18 - "Latex-Operatorname", "Bemerkung" ergänzt, Reihenfolge angepasst.
//Version 0.17 - "Beispiel" und "Aufgabe" ergänzt
//Version 0.16 - "Definition" und "Fakt" ergänzt
//Version 0.15 - "Mathdisplay" ergänzt, Reihenfolge verändert
//Version 0.1
//(c) 2008 by Exxu
//Released under GPL or CC-by-SA 2.5 (http://creativecommons.org/licenses/by-sa/2.5/deed.de)
//at your choice
//******************************************************************************************
// Add some more custom edit buttons to the toolbar if working in edit modus
// It inserts templates coming from [[Projekt:Semantische Vorlagen]]
//******************************************************************************************
// relies on [http://de.wikiversity.org/skins-1.5/common/edit.js]
//******************************************************************************************
// Ergänzt die Editiersymbolleiste um eine Reihe spezifischer Schaltflächen im
// "Bearbeiten"-Modus.
// Die Schaltflächen entstanden im Ergebnis des [[Projekt:Semantische Vorlagen]].
//******************************************************************************************
// Benötigt: [http://de.wikiversity.org/skins-1.5/common/edit.js]
mwCustomEditButtons = mwCustomEditButtons || new Array(); // avoid overwriting
function toolbarExtension_semanticTemplates(){
var textHere = " Hier Text einsetzen ";
var formulaHere = " Hier Formel einsetzen ";
var regx = wgPageName.match(/Aufgabe|Beispiel|Bemerkung|Fakt_Beweis|Definition|Fakt/gi);
//
//
//Bedingte Einsetzungshilfen
//
//
if(wgPageName.match(/latex$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Latexdeklaration",
"tagOpen": "{{latex|",
"tagClose": "}}",
"sampleText": "Dateiname"};
}
if(wgPageName.match(/MSWUL/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Stichwortumleitung",
"tagOpen": "<noinclude>{{MSWUL}}</noinclude>",
"tagClose": "",
"sampleText": "wohin"};
}
if(wgPageName.match(/Sie$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Anredevariante",
"tagOpen": "{{Anredevariante|",
"tagClose": "}}",
"sampleText": "Dateiname"};
}
if(wgPageName.match(/Direkt$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Anredevariante",
"tagOpen": "{{Anredevariante|",
"tagClose": "}}",
"sampleText": "Dateiname"};
}
if(wgPageName.match(/latexmakros$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Latexmakrosseite",
"tagOpen": "{{Latexmakros-Seite unter|",
"tagClose": "|}}",
"sampleText": "Theorie"};
}
if(wgPageName.match(/Mastalink/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Standardlink",
"tagOpen": "#REDIRECT [[",
"tagClose": "/Definition|{{{1|}}}]] [[Kategorie:Mathematische Standardlinks]]",
"sampleText": "Linkseitenname"};
}
//
//
//Mathematische Umgebungen
//
//
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/90/Button_clipboard_math.gif",
"speedTip": "Mathematische Formel (Latex)",
"tagOpen": " {{math|term=",
"tagClose": "|SZ=}} ",
"sampleText": formulaHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/16/Button_clipboard_mathdisplay.gif",
"speedTip": "Mathdisplay",
"tagOpen": "\n{{\nmath/disp|term=\n",
"tagClose": "\n|SZ=\n}}",
"sampleText": formulaHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5f/Button_sorterbar.png",
"speedTip": "Mathematische Korrespondenz",
"tagOpen": "\n{{\nmathkor|term1=\n",
"tagClose": "\n||term2=\n\n|SZ=\n}}",
"sampleText": formulaHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/2c/Button_clipboard_enum.gif",
"speedTip": "Mathematische Liste",
"tagOpen": "\n{{\nmathlist|term1=\n",
"tagClose": "\n||term2=\n\n||term3=\n\n|SZ=\n}}",
"sampleText": formulaHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5f/Button_sorterbar.png",
"speedTip": "Mathematische Bedingung",
"tagOpen": "\n{{\nmathbed|term=\n",
"tagClose": "\n||bedterm1=\n\n||bedterm2=\n\n|SZ=\n}}",
"sampleText": formulaHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/63/Button_clipboard_valign.gif",
"speedTip": "Vergleichskette",
"tagOpen": "\n{{\nMa:Vergleichskette/disp\n|",
"tagClose": "\n||\n||\n||\n||\n|SZ=\n}}",
"sampleText": formulaHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_right.png",
"speedTip": "Abbildungsstruktur",
"tagOpen": "\n{{\nMa:abbele/disp\n|name=\n|",
"tagClose": "|\n||\n|SZ=\n}}",
"sampleText": formulaHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a6/Button_clipboard_template.gif",
"speedTip": "Vorlage einfügen",
"tagOpen": "{{",
"tagClose": "|}}",
"sampleText": " Vorlagennamen hier einfügen "};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Mathematische Vorlage",
"tagOpen": "\n{{\nMaVo|disp|\n",
"tagClose": "\n|SZ=\n}}",
"sampleText": " Vorlagennamen hier einfügen "};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5a/Button_clipboard_parameter.gif",
"speedTip": "Parameter",
"tagOpen": "{{{",
"tagClose": "|}}}",
"sampleText": " Hier Vorlagenparameter einsetzen "};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a6/Button_clipboard_template.gif",
"speedTip": "Operator einfügen",
"tagOpen": "{{op:",
"tagClose": "||}}",
"sampleText": "Operatornamen hier einfügen "};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/64/Button_clipboard_latex_operation.gif",
"speedTip": "Operatorname (Latex)",
"tagOpen": "\\operatorname{",
"tagClose": "} \\, ",
"sampleText": textHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/2c/Button_clipboard_enum.gif",
"speedTip": "Aufzählung",
"tagOpen": "\n{{\nAufzählung3\n|",
"tagClose": "\n|\n|\n}}",
"sampleText": textHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/7b/Button_clipboard_bold.gif",
"speedTip": "Stichwort",
"tagOpen": " {{Stichwort|",
"tagClose": "|SZ=}} ",
"sampleText": " Stichwort "};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a4/Btn_toolbar_par.png",
"speedTip": "Klammerzusatz",
"tagOpen": "\n{{\nZusatz/Klammer\n|text=",
"tagClose": "|\n|SZ=\n}}",
"sampleText": textHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fd/Button_clipboard_headline.gif",
"speedTip": "Seitenüberschrift",
"tagOpen": "{{Seitenüberschrift|term=",
"tagClose": "}}",
"sampleText": textHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/be/Button_clipboard_subheading.gif",
"speedTip": "Zwischenüberschrift",
"tagOpen": "{{Zwischenüberschrift|term=",
"tagClose": "}}",
"sampleText": textHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/7c/Button_clipboard_image.gif",
"speedTip": "Bild einbinden",
"tagOpen": "\n{{\ninputbild\n|",
"tagClose": "| 200px {{!}} right {{!}} Bildkommentar \n|Autor=\n|Benutzer=\n|Domäne=\n|Lizenz=\n|Bemerkung=\n}}",
"sampleText": " Hier Bildname einsetzen "};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/93/Button_clipboard_definition.gif",
"speedTip": "Definition einbinden",
"tagOpen": "\n{{\ninputdefinition\n|",
"tagClose": "/Definition||\n}}",
"sampleText": " Hier Definitionsname einsetzen "};
//
//
//Spezielle Defintionsbuttons
//
//
if(wgPageName.match(/Definition$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/7b/Button_clipboard_bold.gif",
"speedTip": "Definitionswort",
"tagOpen": " {{Definitionswort|",
"tagClose": "|SZ=}} ",
"sampleText": " Definitionswort "};
}
if(wgPageName.match(/Definition$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/7b/Button_clipboard_bold.gif",
"speedTip": "Definitionsstruktur einbinden",
"tagOpen": "{{\nDefinitionsstruktur\n|Situation=\n",
"tagClose": "\n|Kern=\n\n|Zusatz=\n}}",
"sampleText": " Situation für Definition "};
}
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/97/Button_clipboard_fact.gif",
"speedTip": "Fakt einbinden",
"tagOpen": "\n{{\ninputfaktbeweis\n|",
"tagClose": "/Fakt|||\n|ref1=||\n}}",
"sampleText": " Hier Faktname einsetzen "};
//
//
//Spezielle Faktbuttons
//
//
if(wgPageName.match(/Fakt$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/9e/Button_clipboard_faktstructure.gif",
"speedTip": "Faktstuktur einbinden",
"tagOpen": "{{\nFaktstruktur|typ=\n|Situation=\n",
"tagClose": "\n|Voraussetzung=\n\n|Übergang=\n|Folgerung=\n\n|Zusatz=\n}}",
"sampleText": " Hier Situation einsetzen "};
}
//
//
//Spezielle Beweisbuttons (aktiv bei /Fakt Beweis)
//
//
if(wgPageName.match(/Fakt_Beweis$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_recycling.png",
"speedTip": "Beweisstruktur",
"tagOpen": "{{\nBeweisstruktur\n|Strategie=\n|Notation=\n|Beweis=\n",
"tagClose": "\n|Abschluss=\n}}",
"sampleText": "Beweis"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_recycling.png",
"speedTip": "Teilbeweis",
"tagOpen": "{{\nTeilbeweis\n|Teilziel=|Teilstrategie=\n|Teilbeweis=\n",
"tagClose": "\n|Teilabschluss=\n}}",
"sampleText": "Beweis"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_recycling.png",
"speedTip": "Ringbeweis",
"tagOpen": "{{\nRingbeweis\n|Strategie=\n|Richtung=123\n|Beweis12=\n",
"tagClose": "\n|Beweis23=\n\n|Beweis31=\n\n|Abschluss=\n}}",
"sampleText": "Beweis von 1 nach 2"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_recycling.png",
"speedTip": "Beweisrichtung",
"tagOpen": "\n{{\nBeweis",
"tagClose": "\n| |\n}}",
"sampleText": "Beweis"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_clipboard_category.gif",
"speedTip": "Fallunterscheidung",
"tagOpen": "\n{{\nFallunterscheidung\n|Fall1=\n",
"tagClose": "\n|Fall2=\n\n|Fall3=|Fall4=|Fall5=\n}}",
"sampleText": "Fall1"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a5/Buttonexperimenty.png",
"speedTip": "Widerspruchsbeweis",
"tagOpen": "{{\nWiderspruchsbeweis\n|Strategie=\n\n|Annahme=\n",
"tagClose": "\n|Argumentation=\n\n|Widerspruch=\n\n|Zusammenfassung=\n\n}}",
"sampleText": "Annahme"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/ad/Button_l_nl.png",
"speedTip": "Induktionsbeweis",
"tagOpen": "{{\nInduktionsbeweis\n|Strategie=\n",
"tagClose": "\n|Anfang=\n\n|Schluss=\n\n|Zusammenfassung=\n\n}}",
"sampleText": "Induktion"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Zwischenbehauptung",
"tagOpen": "\n{{\nZwischenbehauptung\n|Behauptung=\n",
"tagClose": "\n|SZ0=.\n|Beweis=\n\n|SZ=\n}}",
"sampleText": "Zwischenbehauptung"};
}
//
//
//Weitere Strukturen
//
//
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/32/Button_clipboard_information.gif",
"speedTip": "Bemerkung einbinden",
"tagOpen": "\n{{\ninputbemerkung\n|",
"tagClose": "/Bemerkung||\n}}",
"sampleText": " Hier Bemerkungsname einsetzen "};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/23/Button_clipboard_example.gif",
"speedTip": "Beispiel einbinden",
"tagOpen": "\n{{\ninputbeispiel\n|",
"tagClose": "/Beispiel||\n}}",
"sampleText": " Hier Beispielname einsetzen "};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c7/Button_clipboard_task.gif",
"speedTip": "Aufgabe einbinden",
"tagOpen": "\n{{\ninputaufgabe\n|",
"tagClose": "/Aufgabe||\n|zusatz=\n|tipp=\n}}",
"sampleText": " Hier Aufgabenname einsetzen "};
//
//
//Spezielle Aufgabenbuttons (aktiv nur bei /Aufgabe)
//
//
if(wgPageName.match(/Aufgabe$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ec/Button_aviso_borrado.png",
"speedTip": "Zeigeanweisung einbinden",
"tagOpen": "\n{{\nZeigeanweisung\n|Mittel=\n|Präsub=\n|Subjekt=",
"tagClose": "\n|Verbpräp=\n|Verb=\n|Refl=\n|Prädikat=\n|SZ=\n}}",
"sampleText": "Subjekt (Grammatik)"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ec/Button_aviso_borrado.png",
"speedTip": "Zeigeanweisung einbinden",
"tagOpen": "\n{{\nZeigeanweisung\n|Mittel=\n|Präsub=\n|Subjekt=",
"tagClose": "\n|Verbpräp=\n|Verb=\n|Prädikat=\n|SZ0=\n|Übergang=und\n|Präsub2=\n|Subjekt2=\n|Verbpräp2=\n|Verb2=\n|Prädikat2=\n|SZ=\n}}",
"sampleText": "Subjekt (Grammatik)"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/35/Sister_icon.png",
"speedTip": "n Sie",
"tagOpen": "{{n Sie}}",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/35/Sister_icon.png",
"speedTip": "ManSie Unterscheidung einbinden",
"tagOpen": "{{ManSie|Man ",
"tagClose": "|en Sie}}",
"sampleText": "bestimme"};
}
//
//
//Button für mathematischer Text
//
//
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_clipboard_mathematical_text.gif",
"speedTip": "Mathematischer Text",
"tagOpen": "<div id=\"Artikelinhalt\">\n",
"tagClose": "\n</div><noinclude>\n{{Mathematischer Text" +
"\n|AUFGABE=" + ((regx && regx[0] == "Aufgabe") ? "x" : "") +
"\n|BEISPIEL=" + ((regx && regx[0] == "Beispiel") ? "x" : "") +
"\n|BEMERKUNG=" + ((regx && regx[0] == "Bemerkung") ? "x" : "") +
"\n|BEWEIS=" + ((regx && regx[0] == "Fakt_Beweis") ? "x" : "") +
"\n|DEFINITION=" + ((regx && regx[0] == "Definition") ? "x" : "") +
"\n|FAKT=" + ((regx && regx[0] == "Fakt") ? "x" : "") +
"\n|TEXTART=" +
"\n|KATEGORIE=" +
"\n|KATEGORIE2=" +
"\n|KATEGORIE3=" +
"\n|STICHWORT=" +
"\n|OBJEKTKATEGORIE=" +
"\n|BEARBEITUNGSSTAND=" +
"\n|VERMERK1=" +
"\n}}</noinclude>",
"sampleText": textHere};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a6/Button_clipboard_template.gif",
"speedTip": "Situationsvorlage",
"tagOpen": "{{",
"tagClose": "/Situation|SZ=}}",
"sampleText": " Vorlagenname "};
//
//
//Links
//
//
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/11/Button_clipboard_Dlink.gif",
"speedTip": "Definitions-Link",
"tagOpen": "\n{{\nDefinitionslink\n|",
"tagClose": "|\n|kon=|msw=|\n|Definitionsseitenname=\n/Definition\n|Refname=\n{{{def|}}}\n|SZ=\n}}",
"sampleText": "Definitionsbegriff hier einfügen"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/cb/Button_clipboard_Flink.gif",
"speedTip": "Fakt-Link",
"tagOpen": "\n{{\nFaktlink\n|Faktseitenname=\n",
"tagClose": "/Fakt\n|Refname=\n{{{ref|Fakt}}}\n|SZ=\n}}\n",
"sampleText": textHere};
//
//
//Kategorisierung
//
//
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_clipboard_category.gif",
"speedTip": "Kategorisierung",
"tagOpen": "{{\n-Kategorie unter\n|",
"tagClose": "|\n||}}",
"sampleText": textHere};
if(wgPageName.match(/Beweise$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_clipboard_category.gif",
"speedTip": "Kategorisierung",
"tagOpen": "{{\nBeweis-Kategorie unter\n|",
"tagClose": "|\n||}}",
"sampleText": textHere};
}
//
//
//Buttons für Strukturvorlagen
//
//
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/62/Button_desambig.png",
"speedTip": "If-Bedingung",
"tagOpen": "\n{{#if:{{{",
"tagClose": "|}}}| | }}",
"sampleText": "Bedingung einfügen"};
if(wgCanonicalNamespace.match("Template")){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Strukturvorlage",
"tagOpen": "<includeonly>{{#switch:{{{opt|}}}\n|wort=\n|#default=\n {{#switch: {{#titleparts:{{FULLPAGENAME}}|1|-1}}\n|latex=\n|#default=",
"tagClose": "\n}}\n}}</includeonly><noinclude>{{Operatorvorlage| |}}</noinclude>",
"sampleText": "Struktur"};
}
//
//
//Einträge für Vorträge und Literatur
//
//
if(wgPageName.match(/Themen$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Vortragseintrag",
"tagOpen": "{{\nVortragseintrag{{{opt|}}}\n|Sprecher=\n|Thema=",
"tagClose": "\n|Titel=\n|Datum=\n|Raum=\n|Ort=\n|Zusammenfassung=\n|Literatur=\n|Aktuell=\n|Status=\n|Vortragstyp=\n|Sonstiges=\n}}",
"sampleText": " "};
}
if(wgPageName.match(/Vorträge$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Vortragseintrag",
"tagOpen": "{{\nVortragseintrag{{{opt|}}}\n|Sprecher=\n|Sprecher2=\n|Thema=",
"tagClose": "\n|Titel=\n|Datum=\n|Raum=\n|Ort=\n|Zusammenfassung=\n|Literatur=\n|Aktuell=\n|Status=\n|Vortragstyp=\n|Sonstiges=\n}}",
"sampleText": " "};
}
if(wgPageName.match(/Literatureintrag/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Bucheintrag",
"tagOpen": "{{\nBucheintrag{{{opt|}}}\n|Zitatstichwort=\n|Vorname=",
"tagClose": "\n|Nachname=\n|Vorname2=\n|Nachname2=\n|Titel=\n|Teiltitel\n|Untertitel=\n|Jahr=\n|Verlag=\n|Ort=\n|Auflage=\n|ISBN= - - - - \n|Reihe=\n|Band=\n|Nummer=\n|Bemerkung=\n}}",
"sampleText": "Vorname"};
}
if(wgPageName.match(/Literatur$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Eintrag im Literaturverzeichnis",
"tagOpen": "{{Literaturverzeichnis|",
"tagClose": "}}",
"sampleText": "Literaturstichwort"};
}
if(wgPageName.match(/Literaturverzeichnis$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Eintrag im Literaturverzeichnis",
"tagOpen": "{{Literaturverzeichnis|",
"tagClose": "}}",
"sampleText": "Literaturstichwort"};
}
if(wgPageName.match(/Lift/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/11/Button_clipboard_Dlink.gif",
"speedTip": "Bedingter Lift",
"tagOpen": "{{#if:{{{",
"tagClose": "|}}}|</br><nowiki>|(</nowiki>{{{1|}}}<nowiki>)=</nowiki>{{{|}}}|}} ",
"sampleText": "Parameter"};
}
//
//
//
//
//Testphase
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Semantische Definition",
"tagOpen": "\n{{\nSema:Definition\n|Kontext=\n|Grundmenge=\n|Typ=\n|Attribut1=\n|Attribut2=\n|Element=",
"tagClose": "\n|Defbegriff=\n|\Bed1={{Lift|Bed1|term=\n|\n}}\n|Bed2={{Lift|Bed2|term=\n|\n}}\n|Bed3={{Lift|Bed3|term=\n|\n}} \n|Bed4={{Lift|Bed4|term=\n|\n}}\n|Bed5={{Lift|Bed5|term=\n|\n}}\n}}",
"sampleText": "Elementsymbol"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/d/d8/Button_archivo_borrar.png",
"speedTip": "Semantische Zuweisung",
"tagOpen": "Sema=Zuweisung\n|Modus=\n|\Element=",
"tagClose": "\n|Menge=\n|Eig1=\n|Eig2=\n|Eig3=",
"sampleText": "Elementsymbol"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Semantische Implikation",
"tagOpen": "Sema=Implikation\n|Voraus={{Lift|Voraus|term=",
"tagClose": "\n|\n}}\n|Folg={{Lift|Folg|term=\n|\n}}",
"sampleText": "Voraussetzung"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Semantisches Oder",
"tagOpen": "Sema=Oder\n|Alt1=",
"tagClose": "\n|Alt2=\n|Alt3=\n",
"sampleText": "Alternative"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/97/Button_clipboard_fact.gif",
"speedTip": "Zwischenbehauptung",
"tagOpen": "\n{{\nZwischenbehauptung\n|Behauptung=\n",
"tagClose": "\n|SZ0=.\n|Beweis=\n\n|SZ=\n}}",
"sampleText": "Zwischenbehauptung"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_clipboard_category.gif",
"speedTip": "Fallunterscheidung",
"tagOpen": "\n{{\nFallunterscheidung\n|Fall1=\n",
"tagClose": "\n|Fall2=\n\n|Fall3=|Fall4=|Fall5=\n}}",
"sampleText": "Fall1"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a5/Buttonexperimenty.png",
"speedTip": "Widerspruchsbeweis",
"tagOpen": "{{\nWiderspruchsbeweis\n|Strategie=\n\n|Annahme=\n",
"tagClose": "\n|Argumentation=\n\n|Widerspruch=\n\n|Zusammenfassung=\n\n}}",
"sampleText": "Annahme"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/ad/Button_l_nl.png",
"speedTip": "Induktionsbeweis",
"tagOpen": "{{\nInduktionsbeweis\n|Strategie=\n",
"tagClose": "\n|Anfang=\n\n|Induktionsvoraussetzung=\n\n|Schluss=\n\n|Zusammenfassung=\n\n}}",
"sampleText": "Induktion"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b6/Vjazyce-button.png",
"speedTip": "Argumentation",
"tagOpen": "{{\nTest:Argumentation\n|Z1={{TestLift|Term1|term= ",
"tagClose": "\n| |Grund=\n}}\n|Z2={{TestLift|Term2|term= \n| |Grund=\n}}\n|Z3={{TestLift|Term3|term= \n| |Grund=\n}}\n|Z4={{TestLift|Term4|term= \n| |Grund=\n}}\n|Z5={{TestLift|Term5|term= \n| |Grund=\n}}\n|Z6={{TestLift|Term6|term= \n| |Grund=\n}}\n|Z7={{TestLift|Term7|term= \n| |Grund=\n}}\n|Z8={{TestLift|Term8|term= \n| |Grund=\n}}\n|Z9={{TestLift|Term9|term= \n| |Grund=\n }}\n|Z10={{TestLift|Term10|term= \n| |Grund=\n }} \n}} ",
"sampleText": "term1"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/d/d8/Button_archivo_borrar.png",
"speedTip": "Test:Zuweisung",
"tagOpen": "\n{{\nTest:Zuweisung|term= ",
"tagClose": "\n| Attribut=\n}}",
"sampleText": "term"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/2d/CE_icon.png",
"speedTip": "Test:Existenz",
"tagOpen": "\n{{\nTest:Existenz|term= ",
"tagClose": " |mit1= |mit2= \n| Attribut= \n| Grund= \n}}",
"sampleText": "term"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Test:Objekteinführung",
"tagOpen": "\n{{\nTest:Objekteinführung|term= ",
"tagClose": " |mit1= |mit2= \n| Attribut=\n}}",
"sampleText": "term"};
}
if(wgPageName.match(/Test$/)){
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Test:Objektbenennung",
"tagOpen": "\n{{\nTest:Objektbenennung|name= ",
"tagClose": " |term= | \n}}",
"sampleText": "name"};
}
return false;
}
addOnloadHook ( toolbarExtension_semanticTemplates ) ;