User:Frietjes/addcheckforunknownparameters.js: Difference between revisions

Content deleted Content added
edit summary
No edit summary
Line 95:
mycontent.value = mycontent.value.replace(/([\r\n \t][\r\n \t]*)(\{\{#invoke:Check for unknown parameters(?:\{\{(?:\{\{[^{}]*\}\}|[^{}])*\}\}|[^{}])*\}\})/gi, '$2$1');
 
mysummary = 'Adding unknown parameter tracking through ['
+ '[:Category:Pages using ' + mypagename + ' with unknown parameters]]'
+ 'using [[Module:check for unknown parameters]]';
var editsummary = document.getElementsByName('wpSummary')[0];
if(typeof editsummary == 'object') {