// Parameter umbenennen, "url=" vorne
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)title([ ]*=[^}]*?}})/ig, '$1titel$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)accessdate([ ]*=[^}]*?}})/ig, '$1zugriff$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)archiveurl([ ]*=[^}]*?}})/ig, '$1archiv-url$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)archivedate([ ]*=[^}]*?}})/ig, '$1archiv-datum$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)date([ ]*=[^}]*?}})/ig, '$1datum$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)(work|website|newspaper)([ ]*=[^}]*?}})/ig, '$1werk$5');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)author([ =]*)([^|,}]+)([ ]*),([ ]*)([^| ]+)([^}]*?}})/ig, '$1autor$4$8 $5$9');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)author([ ]*=[^}]*?}})/ig, '$1autor$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)publisher([ ]*=[^}]*?}})/ig, '$1hrsg$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)(page|pages)([ ]*=[^}]*?}})/ig, '$1seiten$5');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)language([ ]*=[^}]*?}})/ig, '$1sprache$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)quote([ ]*=[^}]*?}})/ig, '$1zitat$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)(first|first1)[= ]+([^|]+?)[|\n ]+(last|last1)[= ]+([^|]+?)[ ]*?(\|[^}]+?}})/ig, '$1autor=$5 $7$8');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?url[ ]*=[^}]+?)(last|last1)[ =]+([^|]+?)[| ]+(first|first1)[ =]+([^|]+?)[\n ]*?(\|[^}]+?}})/ig, '$1autor=$7 $5$8');

// Parameter umbenennen, "url=" hinten
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)title([ ]*=[^}]+?url[ ]*=[^}]*?}})/ig, '$1titel$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)accessdate([ ]*=[^}]+?url[ ]*=[^}]*?}})/ig, '$1zugriff$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)archiveurl([ ]*=[^}]+?url[ ]*=[^}]*?}})/ig, '$1archiv-url$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)archivedate([ ]*=[^}]+?url[ ]*=[^}]*?}})/ig, '$1archiv-datum$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)date([ ]*=[^}]+?url[ ]*=[^}]*?}})/ig, '$1datum$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)(work|website|newspaper)([ ]*=[^}]+?url[ ]*=[^}]*?}})/ig, '$1werk$5');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)author([ =]*)([^|,}]+)([ ]*),([ ]*)([^| ]+)([^}]+?url[ ]*=[^}]*?}})/ig, '$1autor$4$8 $5$9');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)author([ ]*=[^}]+?url[ ]*=[^}]*?}})/ig, '$1autor$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)publisher([ ]*=[^}]+?url[ ]*=[^}]*?}})/ig, '$1hrsg$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)(page|pages)([ ]*=[^}]+?url[ ]*=[^}]*?}})/ig, '$1seiten$5');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)language([ ]*=[^}]+?url[ ]*=[^}]*?}})/ig, '$1sprache$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)quote([ ]*=[^}]+?url[ ]*=[^}]*?}})/ig, '$1zitat$4');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)(first|first1)[= ]+([^|]+?)[|\n ]+(last|last1)[= ]+([^|]+?)[ ]*?(\|[^}]*?url[ ]*=[^}]*?}})/ig, '$1autor=$5 $7$8');
oldText = oldText.replace(/({{[ ]*(cite (web|news)|citation)[^}]+?)(last|last1)[ =]+([^|]+?)[| ]+(first|first1)[ =]+([^|]+?)[\n ]*?(\|[^}]*?url[ ]*=[^}]*?}})/ig, '$1autor=$7 $5$8');

// Vorlage umbenennen
oldText = oldText.replace(/({{[ ]*)(cite (web|news)|citation)([^}]+?url[ ]*=[^}]*?}})/ig, '$1Internetquelle$4');

// Leere Einträge löschen
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)[a-z]+[ ]*=[\n ]*\|([^}]+?}})/g, '$1$2');
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)[a-z]+[ ]*=[\n ]*\|([^}]+?}})/g, '$1$2');
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)[a-z]+[ ]*=[\n ]*\|([^}]+?}})/g, '$1$2');
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)[a-z]+[ ]*=[\n ]*\|([^}]+?}})/g, '$1$2');
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)[a-z]+[ ]*=[\n ]*\|([^}]+?}})/g, '$1$2');
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)[a-z]+[ ]*=[\n ]*\|([^}]+?}})/g, '$1$2');
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)[a-z]+[ ]*=[\n ]*\|([^}]+?}})/g, '$1$2');
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)[a-z]+[ ]*=[\n ]*\|([^}]+?}})/g, '$1$2');
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)[a-z]+[ ]*=[\n ]*\|([^}]+?}})/g, '$1$2');
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)[a-z]+[ ]*=[\n ]*\|([^}]+?}})/g, '$1$2');
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)\|[a-z]+[ ]*=[\n ]*(}})/g, '$1$2');

// Nicht unterstützte Einträge löschen
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)location[ ]*=[^}]+?\|([^}]+?}})/g, '$1$2');
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)location[ ]*=[^}]+?(}})/g, '$1$2');

//Endcheck
oldText = oldText.replace(/({{[ ]*Internetquelle[^}]+?)\|[ ]*(}})/g, '$1$2');
return {text: oldText};