User:Waldyrious/formatcitations.js: Difference between revisions

Content deleted Content added
m typo
support pt ("citar xx") templates
Line 3:
// Fill an array with one entry per each recognized citation template
var originalTemplates = txt.value.match(/\{\{[Cc]it(ation|(ar|e) [a-z ]+) *\n? *\|[^}]+\}\}/g);
// Duplicate the array, for editing. We need to keep the original strings for the replacement step
var tweakedTemplates = originalTemplates.slice();