User:Waldyrious/formatcitations.js: Difference between revisions

Content deleted Content added
Several fixes, and add documentation
forgot a small detail that was tweaked during testing
Line 26:
 
// Replace the original templates with the tweaked versions
txt.value = txt.value.replace(originalCiteTemplates[i], tweakedCiteTemplates[i].replace(/\}\}/,"\n}}")); // The replace() adds a newline to finish the alignment
} else {
txt.value = txt.value.replace(originalCiteTemplates[i],