User:Crazy1880/vector.js

/* global mw, $*/ ( function { "use strict";

// Läd WSTM manuell mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/WikiSyntaxTextMod/r.js&action=raw&ctype=text/javascript" );

// Erzeugt einen Button, womit WSTM manuell gestartet werden kann mw.libs.WikiSyntaxTextMod = { api: {}, config: { format: { }, lang: { }, load: { inhibit: true, after: function { $.when( mw.loader.using( "ext.wikiEditor" ), $.ready ) .then( function {						$( "#wpTextbox1" ).wikiEditor( "addToToolbar", { section: "main", group: "format", tools: { syntax: { label: "WSTM", type: "button", icon: "//upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Breezeicons-status-16-kdeconnect-tray.svg/22px-Breezeicons-status-16-kdeconnect-tray.svg.png", action: { type: "callback", execute: mw.libs.WikiSyntaxTextMod.api.run }								}							}						} );					} );			}		},		// format: { galleryIndent: 1 } mod: { }, page: { }, portlet: { }, warn: { } } };

// Syntax mw.libs.WikiSyntaxTextMod.config.mod.plain = [ // ID:38 => HTML-Textformatierungselement  (kursiv) [ '([^\'])<(em|i)>([^\'<\n]+)([^\'])', '$1\'\'$3\'\'$4' ] ];

// Gallery-TAG with one space at the beginning mw.libs.WikiSyntaxTextMod.config.format.galleryIndent = 1;

// Change Templates mw.libs.WikiSyntaxTextMod.config.mod.template = [ { detect: { title: "VW" }, rename: { title: [ true, "Volkswagen Passenger Cars" ] } }, { detect: { title: "afdb name" }, rename: { title: [ true, "Adult Film Database name" ] } }, { detect: { title: "[aA]uthoritycontrol" }, rename: { title: [ true, "Authority control" ] } }, { detect: { title: "[cC]anonization" }, rename: { title: [ true, "Catholic saints" ] } }, { detect: { title: "[cC]atholic" }, rename: { title: [ true, "Catholic Encyclopedia" ] } }, { detect: { title: "[cC]ar-stub" }, rename: { title: [ true, "Auto-stub" ] } }, { detect: { title: "[cC]ite [cC]hapter" }, rename: { title: [ true, "Cite book" ] } }, { detect: { title: "[cC]ite [nN]ewspaper" }, rename: { title: [ true, "Cite news" ] } }, { detect: { title: "[cC]ite [pP]aper" }, rename: { title: [ true, "Cite journal" ] } }, { detect: { title: "[cC]ite [pP]ublication" }, rename: { title: [ true, "Cite book" ] } }, { detect: { title: "[cC]ite video" }, rename: { title: [ true, "Cite AV media" ] } }, { detect: { title: "[cC]iteweb" }, rename: { title: [ true, "Cite web" ] } }, { detect: { title: "[cC]olorbox" }, rename: { title: [ true, "Color box" ] } }, { detect: { title: "DNB-[pP]ortal" }, rename: { title: [ true, "German National Library portal" ] } }, { detect: { title: "[eE]lucidate" }, rename: { title: [ true, "Explain" ] } }, { detect: { title: "[fF]act" }, rename: { title: [ true, "Citation needed" ] } }, { detect: { title: "[fF]indagrave" }, rename: { title: [ true, "Find a Grave" ] } }, { detect: { title: "[iI]nfobox [aA]dult [bB]iography" }, rename: { title: [ true, "Infobox person" ] } }, { detect: { title: "[iI]nfobox [gG]overnor" }, rename: { title: [ true, "Infobox officeholder" ] } }, { detect: { title: "[mM]orefootnotes" }, rename: { title: [ true, "More footnotes needed" ] } }, { detect: { title: "[mM]ore [fF]ootnotes" }, rename: { title: [ true, "More footnotes needed" ] } }, { detect: { title: "[mM]oresources" }, rename: { title: [ true, "More citations needed" ] } }, { detect: { title: "[mM]ore [sS]ources [nN]eeded" }, rename: { title: [ true, "More citations needed" ] } }, { detect: { title: "[oO]fficial" }, rename: { title: [ true, "Official website" ] } }, { detect: { title: "[rR]ef[iI]mprove" }, rename: { title: [ true, "More citations needed" ] } }, { detect: { title: "[rR]otten-[tT]omatoes" }, rename: { title: [ true, "Rotten Tomatoes" ] } }, { detect: { title: "[sS]ources" }, rename: { title: [ true, "More citations needed" ] } }, { detect: { title: "[uU]nsourced" }, rename: { title: [ true, "Unreferenced" ] } }, { detect: { title: "Use Irish English" }, rename: { title: [ true, "Use Hiberno-English	" ] } }];

} ); //