User:Frietjes/addcheckforunknownparameters.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 17:
// Remove {PAGENAME}, {BASEPAGENAME}, ...
mytxt = mytxt.replace(/\{\{(?:PAGENAME|BASEPAGENAME|FULLPAGENAME|CURRENTYEAR)\}\}/g, '');
// Remove <nowiki /> and <span />
mytxt = mytxt.replace(/<(?:span|nowiki)[ ]*\/>/gi, '');
// Replace some braces
mytxt = mytxt.replace(/([^\{])\{([^\{])/g, '$1&#123;$2');