MediaWiki:Gadget-Extra-Editbuttons.js

Aus Piratenwiki Mirror
Zur Navigation springen Zur Suche springen

Hinweis: Leere nach dem Speichern 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: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
  • Opera: Gehe zu Menü → Einstellungen (Opera → Einstellungen auf dem Mac) und dann auf Datenschutz & Sicherheit → Browserdaten löschen → Gespeicherte Bilder und Dateien.
 // <nowiki>

var sig = window.usersignature || '--\~\~\~\~';

if ( typeof mw.toolbar !== 'undefined') { 
mw.toolbar.addButton( {
    imageFile: "/wiki/images/e/e9/Button_headline2.png",
    speedTip: "Sekundäre Überschrift",
    tagOpen: "\n=== ",
    tagClose: " ===",
    sampleText: "Sekundäre Überschrift",
    imageId: "mw-editbutton-h3"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/3/3a/Button_headline3.png",
    speedTip: "Untergeordnete Überschrift",
    tagOpen: "\n==== ",
    tagClose: " ====",
    sampleText: "",
    imageId: "mw-editbutton-h4"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/1/13/Button_enter.png",
    speedTip: "Zeilenumbruch",
    tagOpen: "<br />",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-br"
} );
mw.toolbar.addButton( {
    imageFile: "/wiki/images/6/62/Button_desambig.png",
    speedTip: "Begriffsklärungseite",
    tagOpen: "{{Begriffsklärung}}",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-bks"
} );
mw.toolbar.addButton( {
    imageFile: "/wiki/images/5/5e/Button_disambig_small.png",
    speedTip: "Dieser Artikel erläutert…",
    tagOpen: "{{Dieser Artikel|'",
    tagClose: "}}",
    sampleText: "erläutert den Buchstaben X, zu anderen Bedeutungen siehe [[X (Begriffsklärung)]].",
    imageId: "mw-editbutton-bkssmall"
} );
mw.toolbar.addButton( {
    imageFile: "/wiki/images/5/5e/Button_disambig_small.png",
    speedTip: "Begriffsklärungshinweis",
    tagOpen: "{{Begriffsklärungshinweis}}",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-bks2"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/5/5f/Button_center.png",
    speedTip: "Zentriert",
    tagOpen: "<div style='text-align: center;'>\n",
    tagClose: "\n<\/div>",
    sampleText: "Zentriert",
    imageId: "mw-editbutton-center"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/3/37/Btn_toolbar_commentaire.png",
    speedTip: "Chemische Formel",
    tagOpen: ":<math>\u005Cmathrm{",
    tagClose: "}</math>",
    sampleText: "",
    imageId: "mw-editbutton-chemie"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/6/6c/Button_commons.png",
    speedTip: "Commons",
    tagOpen: "{{Commons|Category:",
    tagClose: "}}",
    sampleText: "Seitenname",
    imageId: "mw-editbutton-commons"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/e/ea/Button_align_left.png",
    speedTip: "Left-Align",
    tagOpen: "<div style='text-align: left; direction: ltr; margin-left: 1em;'>\n",
    tagClose: "\n<\/div>",
    sampleText: "Left-aligned Text",
    imageId: "mw-editbutton-leftalign"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/4/4e/Button_romain.png",
    speedTip: "SORTIERUNG",
    tagOpen: "{{SORTIERUNG:",
    tagClose: "}}",
    sampleText: "Sortierbegriff",
    imageId: "mw-editbutton-sortierung"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/e/e9/Button_done.png",
    speedTip: "Erledigt (kurz)",
    tagOpen: "{{Erl.}}",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-erledigtkurz"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/9/9d/Button_fait.png",
    speedTip: "Erledigt (lang)",
    tagOpen: "{{Erledigt|1="+sig,
    tagClose: "}}",
    sampleText: "",
    imageId: "mw-editbutton-erledigtlang"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/8/8f/Button_poeme.png",
    speedTip: "Farbiger Text",
    tagOpen: "<span style='color: color;'>",
    tagClose: "<\/span>",
    sampleText: "Farbig",
    imageId: "mw-editbutton-farbig"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/1/1b/Button_miss_signature.png",
    speedTip: "Fehlende Signatur",
    tagOpen: "\{\{subst\:Unsigned|",
    tagClose: "}}",
    sampleText: "BENUTZER",
    imageId: "mw-editbutton-fehlsig"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/9/9e/Btn_toolbar_gallery.png",
    speedTip: "Bildergalerie",
    tagOpen: "\n<gallery>\nDatei:M63.jpg|[[M63]]\nDatei:Mona Lisa.jpg|[[Mona Lisa]]\nDatei:Truite arc-en-ciel.jpg|Eine [[Forelle ]]\n<\/gallery>",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-gallery"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/7/74/Button_comment.png",
    speedTip: "Versteckter Kommentar",
    tagOpen: "<!--",
    tagClose: "-->",
    sampleText: "Versteckt",
    imageId: "mw-editbutton-versteckt"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/4/41/Button_hr_halfwidth.png",
    speedTip: "Gedankenstrich",
    tagOpen: "–",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-gedanken"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/6/6a/Button_sup_letter.png",
    speedTip: "Hochgestellter Text (superscript)",
    tagOpen: "<sup>",
    tagClose: "<\/sup>",
    sampleText: "Hochgestellt",
    imageId: "mw-editbutton-hochg"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/a/aa/Button_sub_letter.png",
    speedTip: "Tiefgestellter Text (subscript)",
    tagOpen: "<sub>",
    tagClose: "</sub>",
    sampleText: "Tiefgestellt",
    imageId: "mw-editbutton-tiefg"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/5/58/Button_small.png",
    speedTip: "Kleingeschriebener Text (small)",
    tagOpen: "<small>",
    tagClose: "</small>",
    sampleText: "Klein",
    imageId: "mw-editbutton-klein"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/5/56/Button_big.png",
    speedTip: "Größerer Text (big)",
    tagOpen: "<big>",
    tagClose: "</big>",
    sampleText: "Groß",
    imageId: "mw-editbutton-gross"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/b/b4/Button_category03.png",
    speedTip: "Kategorie",
    tagOpen: "[[Kategorie:",
    tagClose: "]]",
    sampleText: "Name der Kategorie",
    imageId: "mw-editbutton-kategorie"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/b/b1/Button_dagger.png",
    speedTip: "Dolch",
    tagOpen: "†",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-dolch"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/8/8e/Button_shifting.png",
    speedTip: "Setze Tab(s)",
    tagOpen: ":",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-tab"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/f/fd/Button_blockquote.png",
    speedTip: "Markiert ein Zitat mit Absatz",
    tagOpen: "<blockquote style='border: 1px solid blue; padding: 2em;'>\n",
    tagClose: "\n<\/blockquote>",
    sampleText: "Zitat",
    imageId: "mw-editbutton-blockzitat"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/4/4b/Button_nbsp.png",
    speedTip: "Geschütztes Leerzeichen (nonbreaking space)",
    tagOpen: "&nbsp;",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-nbsp"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/b/bf/Button_thinsp.png",
    speedTip: "Schmales geschütztes Leerzeichen",
    tagOpen: "&thinsp;",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-thinspace"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/2/23/Button_code.png",
    speedTip: "Code einfügen",
    tagOpen: "<code>",
    tagClose: "</code>",
    sampleText: "Code",
    imageId: "mw-editbutton-code"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/3/3c/Button_pre.png",
    speedTip: "Vorformatierter Text",
    tagOpen: "<pre>",
    tagClose: "</pre>",
    sampleText: "Vorformatierter Text",
    imageId: "mw-editbutton-pre"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/9/93/Button_sub_link.png",
    speedTip: "Link zu einem Seiten-Abschnitt",
    tagOpen: "[[Seite#",
    tagClose: "]]",
    sampleText: "Abschnitt",
    imageId: "mw-editbutton-abschnittslink"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/f/ff/Button_arrow_right.png",
    speedTip: "Pfeil nach rechts",
    tagOpen: "→",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-pfeilrechts"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/e/ee/Button_vote_biblio.png",
    speedTip: "Personendaten",
    tagOpen: "{{Personendaten\n|NAME=\n|ALTERNATIVNAMEN=",
    tagClose: "\n|KURZBESCHREIBUNG=\n|GEBURTSDATUM=\n|GEBURTSORT=\n|STERBEDATUM=\n|STERBEORT=\n}}",
    sampleText: "",
    imageId: "mw-editbutton-personendaten"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/c/c7/Button_polytonique.png",
    speedTip: "Unicode-Sonderzeichen der altgriechischen Schrift",
    tagOpen: "{{Polytonisch|",
    tagClose: "}}",
    sampleText: "Test",
    imageId: "mw-editbutton-griechisch"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/d/d3/Button_definition_list.png",
    speedTip: "Definitionsliste",
    tagOpen: "\n",
    tagClose: " : ",
    sampleText: "Text",
    imageId: "mw-editbutton-defiliste"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/0/05/Button_Anf%C3%BChrung.png",
    speedTip: "Anführungszeichen",
    tagOpen: "„",
    tagClose: "“",
    sampleText: "Text",
    imageId: "mw-editbutton-gaensede"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/2/26/Button_latinas.png",
    speedTip: "Latinas",
    tagOpen: "«",
    tagClose: "»",
    sampleText: "Text",
    imageId: "mw-editbutton-gaensesp"
} );



mw.toolbar.addButton( {
    imageFile: "/wiki/images/b/bc/Button_guillemet.png",
    speedTip: "Guillemets",
    tagOpen: "»",
    tagClose: "«",
    sampleText: "Text",
    imageId: "mw-editbutton-gaensefr"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/7/79/Button_reflink.png",
    speedTip: "Markiere eine Referenz",
    tagOpen: "<ref>",
    tagClose: "</ref>",
    sampleText: "Bezugsangabe",
    imageId: "mw-editbutton-ref"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/c/c4/Button_ref.png",
    speedTip: "Referenz mit Name",
    tagOpen: "<ref name=''>",
    tagClose: "</ref>",
    sampleText: "Bezugsangabe",
    imageId: "mw-editbutton-refname"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/f/fe/Button_refs.png",
    speedTip: "Wiederholungs-Referenz",
    tagOpen: "<ref name='",
    tagClose: "'/>",
    sampleText: "Referenzname",
    imageId: "mw-editbutton-refs"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/9/9a/Button_references.png",
    speedTip: "Referenz-Footer",
    tagOpen: "\n== Einzelnachweise ==\n<references />\n",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-ferfooter"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/c/c9/Button_strike.png",
    speedTip: "Durchgestrichener Text",
    tagOpen: "<s>",
    tagClose: "</s>",
    sampleText: "Durchgestrichen",
    imageId: "mw-editbutton-strike"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/b/bb/Seealso.png",
    speedTip: "Siehe auch",
    tagOpen: "\n== Siehe auch ==\n'",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-seealso"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/0/02/Button_S_yellow.png",
    speedTip: "SourceCode hervorheben",
    tagOpen: "<syntaxhighlight lang='javascript'>",
    tagClose: "</syntaxhighlight>",
    sampleText: "Quelltext",
    imageId: "mw-editbutton-sourcecode"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/7/74/Button_oeil.png",
    speedTip: "Smiley",
    tagOpen: "<span style='font-family: monospace; background: #FE3;'>",
    tagClose: "</span>",
    sampleText: ":-D",
    imageId: "mw-editbutton-smiley"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/7/72/Button_span_2.png",
    speedTip: "span-tag mit CSS-Angabe",
    tagOpen: "<span style=''>",
    tagClose: "</span>",
    sampleText: "Markierter Inhalt",
    imageId: "mw-editbutton-span"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/e/eb/Button_plantilla.png",
    speedTip: "Vorlage",
    tagOpen: "{{",
    tagClose: "}}",
    sampleText: "Vorlagenname",
    imageId: "mw-editbutton-vorlage"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/e/eb/Button_templatelink.png",
    speedTip: "Vorlagenlink",
    tagOpen: "{{[[Vorlage:",
    tagClose: "|]]}}",
    sampleText: "Vorlagenname",
    imageId: "mw-editbutton-vorlagenllink"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/f/fd/Button_underline.png",
    speedTip: "Unterstreichen",
    tagOpen: "<u>",
    tagClose: "</u>",
    sampleText: "",
    imageId: "mw-editbutton-unterstrichen"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/9/9d/Button_halt.png",
    speedTip: "Urheberrechtsverletzung",
    tagOpen: "{{URV}} [",
    tagClose: "] "+sig,
    sampleText: "URL",
    imageId: "mw-editbutton-urv"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/c/c8/Button_redirect.png",
    speedTip: "Weiterleitung (Redirect)",
    tagOpen: "#WEITERLEITUNG [[",
    tagClose: "]]",
    sampleText: "Ziel einfügen",
    imageId: "mw-editbutton-redirect"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/b/ba/Button_conserver.png",
    speedTip: "Vote *pro*",
    tagOpen: "# {{pro}} "+sig,
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-prostimme"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/f/fc/Button_supp.png",
    speedTip: "Vote *contra*",
    tagOpen: "# {{contra}} "+sig,
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-kontrastimme"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/4/4e/Button_neutre.png",
    speedTip: "Vote *neutral*",
    tagOpen: "# {{neutral}} "+sig,
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-enthalstimme"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/6/61/Button_wikibooks.png",
    speedTip: "Wikibooks",
    tagOpen: "{{Wikibooks|",
    tagClose: "}}",
    sampleText: "Seitenname",
    imageId: "mw-editbutton-wikibooks"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/e/eb/Button_wikisource.png",
    speedTip: "Wikisource",
    tagOpen: "{{Wikisource|",
    tagClose: "}}",
    sampleText: "Seitenname",
    imageId: "mw-editbutton-wikisource"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/b/bf/WP-icon.png",
    speedTip: "Wiktionary",
    tagOpen: "{{Wiktionary|",
    tagClose: "}}",
    sampleText: "Seitenname",
    imageId: "mw-editbutton-wiktionary"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/b/b5/Button_wikiversity.png",
    speedTip: "Wikiversity",
    tagOpen: "{{Wikiversity|",
    tagClose: "}}",
    sampleText: "Seitenname",
    imageId: "mw-editbutton-wikiversity"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/8/88/Btn_toolbar_enum.png",
    speedTip: "Nummerierung/Aufzählung",
    tagOpen: "\n# Element 1\n# Element 2\n# Element 3",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-nummerierun"
} );


mw.toolbar.addButton( {
    imageFile: "/wiki/images/1/11/Btn_toolbar_liste.png",
    speedTip: "Liste",
    tagOpen: "\n* Element A\n* Element B\n* Element C",
    tagClose: "",
    sampleText: "",
    imageId: "mw-editbutton-liste"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/c/ce/Button_no_include.png",
    speedTip: "No Include",
    tagOpen: "<noinclude>",
    tagClose: "</noinclude>",
    sampleText: "",
    imageId: "mw-editbutton-noinclude"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/7/79/Button_include.png",
    speedTip: "Include only",
    tagOpen: "<includeonly>",
    tagClose: "</includeonly>",
    sampleText: "Text",
    imageId: "mw-editbutton-includeonly"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/3/35/Button_substitute.png",
    speedTip: "Ersetzen",
    tagOpen: "{{ers:",
    tagClose: "}}",
    sampleText: "Vorlage",
    imageId: "mw-editbutton-subst"
} );

mw.toolbar.addButton( {
    imageFile: "/wiki/images/8/83/Button_biocitas.png",
    speedTip: "Zitat",
    tagOpen: "{{Zitat|",
    tagClose: "}}",
    sampleText: "Text|Autor (optional)|Quelle (optional)",
    imageId: "mw-editbutton-zitat"
} );
}
 // </nowiki>