In this article,
Wikipedia:AutoEd/templates.js will be addressed from a broad and detailed perspective, in order to provide the reader with a complete vision of this topic/person/date. Various aspects related to
Wikipedia:AutoEd/templates.js will be explored, with the purpose of providing relevant and updated information about it. Likewise, its implications, effects and consequences will be analyzed, with the aim of offering a comprehensive and enriching vision of
Wikipedia:AutoEd/templates.js. Throughout this writing, different approaches and points of view will be appealed to, with the purpose of building as complete and diverse a panorama as possible about
Wikipedia:AutoEd/templates.js.
function autoEdTemplates(str) { //MAIN FUNCTION describes list of fixes
//Remove unneeded Template: text from transclusions
str = str.replace(/{{*Template:*/gi, '{{');
//Replace redirects to Reflist with Reflist
str = str.replace(/{{*(?:Reference+List|References-Small|Reflink)*(\||}})/gi, '{{Reflist$1');
str = str.replace(/{{*(?:Refs|Reference|Ref-list|Listaref|FootnotesSmall)*(\||}})/gi, '{{Reflist$1');
//Replace a long version of Reflist with Reflist
str = str.replace(/<div*+class=*references-small**>*<references*\/>*<\/div>/gim, '{{Reflist}}');
//Replace redirects to about with about
str = str.replace(/{{*(?:Otheruses4|Four+other+uses|Otherusesabout|This2)*(\||}})/gi, '{{about$1');
return str;
}