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

Content deleted Content added
tweak per bug notification
daily news is disambiguated
Line 120:
// relocating '___location' parameter outside citation templates
//sources without dab but with inserted locator
regex(/(''Daily News) \|___location=(New York)('')/gi, '$1$3 \($2\)');
regex(/(''\[\[Daily News\]\]) \|___location=(New York)('')/gi, '$1$3 \($2\)');
regex(/(=\s*\[\[|\|)(Daily News)( \|___location=New York)(\]\])/gi, '$1$2$4$3');
regex(/(\[\[|\|)(Daily News) \|___location=(New York)(\]\])/gi, '$1$2$4 $3');
regex(/(''Evening Standard) \|___location=(London)('')/gi, '$1$3 \($2\)');
regex(/(''\[\[Evening Standard\]\]) \|___location=(London) ?('')/gi, '$1$3 \($2\)');
Line 137 ⟶ 133:
regex(/(\[\[((?:The ?|)[A-Z]\w*(?: [A-Z]\w*|)))( \(South Africa(?:n newspaper|)\))(\]\][\.,;]?)/g, '$1$3|$2$4');
regex(/(\|)((?:The ?|)[A-Z]\w*(?: [A-Z]\w*|))(?: \((South Africa)(?:n newspaper|)\))(\]\])/g, '$1$2$3');
regex(/(\=[\[|\|)( ]*Daily News) \|___location=((New York)(\)([ ]*[\|\}])/gig, '$1|___location=$2$4 $3');
regex(/(''Daily News) \|___location=((New York)\)('')/gig, '$1$3 \($2\)');
regex(/(''\[\[)(Daily News\]\])( \|___location=(New York\))(''\]\][\.,;]?)/gig, '$1$2$3 \(|$2\)$4');
regex(/(=\s*\[\[|\|)(Daily News)(?: \|___location=(New York\))(\]\])/gig, '$1$2$4$3');
regex(/(=[ ]*Daily Record) \((Scotland)\)([ ]*[\|\}])/g, '$1|___location=$2$3');
regex(/(''Daily Record) \((Scotland)\)('')/g, '$1$3 \($2\)');