Jump to content

User:Pixial/formatcitations.js: Revision history


For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary. (cur) = difference from current version, (prev) = difference from preceding version, m = minor edit, → = section edit, ← = automatic edit summary

28 August 2022

  • curprev 02:1302:13, 28 August 2022Pixial talk contribs 4,150 bytes +4,150 Created page with 'function formatCitations(vertical) { var txt = document.editform.wpTextbox1; // Fill an array with one entry per each recognized citation template // Note: the regex should be changed to allow parameter values that are themselves templates, // e.g. {{cite book | author = John Doe | title = The Book | year = 1234 | ref = {{sfnRef|Doe (1234)}} | isbn = 0-12345-678-9 }} // I got as far as this: /(\{\{[Cc]it(?:ation|(?:ar|e) [a-z ]+)\s*)(\...'