User:Ohconfucius/script/Sources.js: Difference between revisions

Content deleted Content added
per talk page discussion
per request
Line 127:
// removing blank or redundant parameters
regex(/(?:\|[ ]*(?:accessdate|agency|archive(?:date|url)|arxiv|asin|at|author(-?link|-mask|-name-separator|-separator|\d|\d-link|link\d?|)|bibcode|chapter|chapter-url|coauthors?|contribution(?:-url|)|date|deadurl|display-authors|doi|doi-inactive|doibroken|edition|editor(?:-first|-last|-link|\d|\d-first|\d-last|\d-link)|(?:first|last)\d?|format|id|is[bs]n|issue|jfm|journal|jstor|language|lay(?:date|source|summary)|lccn|___location|magazine|day|month|mr|newspaper|nopp|oclc|ol|origyear|osti|others|pages?|periodical|place|pm[cd]|pmid|postscript|publication(?:-date|-place)|publisher|quote|ref|rfc|separator|series|ssrn|trans_title|type|url|volume|work|year|zbl)[ ]*=[\s]*)(?=[\}\|])/gi, '');
// regex(/\|[ ]*deadurl[ ]*=[ ]*yes[ ]*/gi, ''); //remdisabling per request although default "deadurl=yes"
 
//rem underlining within certain fields
Line 507:
//Add a tag to the summary box
setoptions(minor='true');
setreason('Sources per [[Help:Citation Style 1|CS1]], [[Template:Citation]] and [[MOS:ITALICS]] by [[User:Ohconfucius/script|script]]', 'append');
doaction('diff');