Content deleted Content added
Waldyrious (talk | contribs) m typo |
Waldyrious (talk | contribs) 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();
|