User:Ohconfucius/test/Sources subscript1.js: Difference between revisions

Content deleted Content added
Revert to revision 1295754230 dated 2025-06-15 17:17:27 by Ohconfucius using popups
Restored revision 1296969551 by Ohconfucius (talk): Rv back to the latest desired but possibly buggy
Line 177:
'(?:the ?|)malay ?mail(?: ?online|)(?:\\.com|)': 'Malay Mail',
'(?:the |)business[\\- ]standard(?:\\.com|)': 'Business Standard |___location=India',
'tbsnews\\.net': 'The Business Standard |___location=Bangladesh',
'(?:the |)deccan ?chronicle(?:\\.com|)': 'Deccan Chronicle',
'(?:the |)deccan ?herald(?:\\.com|)': 'Deccan Herald',
Line 222 ⟶ 223:
'pakobserver(?:\\.net|)': 'Pakistan Observer',
'pakistan ?today(?:\\.com\\.pk|)': 'Pakistan Today',
'nation\\.sc': 'Seychelles Nation',
 
 
'Atlantic ?Sun(?:\\.com|)': 'Atlantic Sun',
Line 366 ⟶ 370:
'axios(?:\\.com|)': 'Axios (website)',
'Slate(?:\\.com|\\.fr| magazine|)': 'Slate (magazine)',
'salon(?:\\.com)': 'Salon.com',
'The ?Cut(?:\\.com| \(New York\))': 'The Cut (publication)',
'theregister(?:\\.co\\.uk|\\.com|)': 'The Register',
'theweekinchess(?:\\.com|)': 'The Week in Chess',
Line 521 ⟶ 527:
'Scoregolf(?:\\.com|)': 'Scoregolf',
'sport[- ]?magazine(?:\\.co\\.uk|)': 'Sport (UK magazine)',
'TheCut(?:\\.co\\.nz|)': 'The Cut (magazine)',
'TodaysGolfer(?:\\.co\\.uk|)': 'Today\'s Golfer',
'thelawyer(?:\\.com|)': 'The Lawyer',
Line 1,357 ⟶ 1,363:
// source names to 'wikiname' - unlinked, unitalicised; outside citation templates (non-italicising)
var re = new RegExp('(<ref[^>]*>[^<\\{]+?[-\\]\\.},;–]\\s+)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)((?:[,\\.]?[^\\w\' ][^\\]<]*?|)<\\/ref>)', 'gi');
regex(re, newWord2);
// source names to 'wikiname' - unlinked; outside citation templates (deitalicising)
var re = new RegExp('(<ref[^>]*>[^<\\{]+?\\s+)\'\'(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\'\'([^<]*?<\\/ref>)', 'gi');
regex(re, newWord2);
// source names to unitalicised 'wikiname' - linked, unpiped; outside citation templates
var re = new RegExp('(<ref[^>]*>[^<\\{]+?[-\\]\\.},;–]\\s+\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][^<]*?<\\/ref>)', 'gi');
regex(re, newWord2);
// source names to 'wikiname' - linked, unpiped; outside citation templates(deitalicising)
var re = new RegExp('(<ref[^>]*>[^<\\{]+?[-\\]\\.},;–]\\s+)\'\'\\[\\[(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\]\\]\'\'([^<]*?<\\/ref>)', 'gi');
regex(re, newWord3); //NOTE: adaptation to re-link is built into 'newWord3'
}