User:Waldyrious/formatcitations.js: Difference between revisions

Content deleted Content added
support pt ("citar xx") templates
tweak edit summary text
Line 49:
// Update the edit summary
var sum = document.editform.wpSummary;
var summary = vertical ? "Convertconvert citation templates to vertical format, for readability" : "Harmonizeharmonize whitespace in citation templates" ;
summary += " (using [[User:Waldir/formatcitations.js|Regex citation formatter]])";
if (sum.value.indexOf(summary) == -1) {
if (sum.value.match(/[^\*\/\s][^\/\s]?\s*$/)) {
sum.value += " |; ";
}
sum.value += summary;