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

Content deleted Content added
Reuters is no longer just a news agency
No edit summary
 
(32 intermediate revisions by the same user not shown)
Line 13:
'(?:wsj(?:\\.com|)|Wall (?:Street|Str?\\.?) Journal)': 'The Wall Street Journal',
'newsday(?:\\.com)': 'Newsday',
'(?:nydailynews(?:\\.com|)|(?:New York|NY|n\\. ?y\\.) Daily ?News)': 'Daily News (New York) Daily News',
'(?:ny|n\\. ?y\\.) ?post(?:\\.com|)': 'New York Post',
'(?:New York |NY ?|)observer(?:\\.com)': 'The New York Observer',
Line 20:
'(?:the|)boston(?:globe|)\\.com': 'The Boston Globe',
'the boston globe': 'The Boston Globe',
'(?:the ?|)boston ?herald(?:\\.com|)': 'Boston Herald',
'(?:the ?|)Brussels ?Times(?:\\.com|)': 'The Brussels Times',
'washington ?post(?:\\.com|)': 'The Washington Post',
Line 129:
'Sunday Telegraph': 'The Sunday Telegraph',
'(?:(?:the|)Timesonline.co(?:\\.uk|m)|(?:the ?|)Times ?on-?line)': 'The Times',
'Thetimes\\.co(?:m|\\.uk)': 'The Times',
'TheSundaytimes(?:\\.co\\.uk|)': 'The Sunday Times',
'inews(?:\\.co\\.uk|)': 'The i (newspaper)Paper',
'touringcartimes(?:\\.com|)': 'Touring Car Times',
'times ?of ?malta(?:\\.com|)': 'The Times (Malta)',
Line 155:
'Peterbrough ?today(?:\\.co\\.uk|)': 'Peterbrough Telegraph',
'blackpool ?gazette(?:\\.co\\.uk|)': 'Blackpool Gazette',
'gazettelive(?:\\.co\\.uk|)': 'Teesside Live',
'(?:the |)express ?and ?star(?:\\.com|\\.co\\.uk|)': 'Express & Star',
'(?:irish ?|)independent\\.ie': 'Irish Independent',
Line 177 ⟶ 178:
'(?: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 ⟶ 224:
'pakobserver(?:\\.net|)': 'Pakistan Observer',
'pakistan ?today(?:\\.com\\.pk|)': 'Pakistan Today',
'nation\\.sc': 'Seychelles Nation',
 
 
'Atlantic ?Sun(?:\\.com|)': 'Atlantic Sun',
Line 232 ⟶ 237:
'Daily ?Maverick(?:\\.co\\.za|)': 'Daily Maverick',
'DailyNews(?:\\.co\\.za)': 'Daily News (Durban)',
'Dailymirror\\.lk': 'Daily Mirror |___location=Sri Lanka',
'Financial ?Mail(?:\\.co\\.za|)': 'Financial Mail',
'(?:greengazette|gics)(?:\\.co\\.za|)': 'Government Gazette of South Africa',
Line 242 ⟶ 248:
'the m&g online': 'Mail & Guardian',
'Monserrat ?reporter(?:\\.com|)': 'The Monserrat Reporter',
'guardian\\.co\\.tt': 'Trinidad and Tobago Guardian',
'Trinidad[- ]guardian(?:\\.co\\.tt|)': 'Trinidad and Tobago Guardian',
'guampdn(?:\\.com|)': 'Pacific Daily News',
'thenassauguardian(?:\\.com|)': 'The Nassau Guardian',
Line 268 ⟶ 276:
'(?:The ?|)borneo ?Post(?:\\.com|)': 'The Borneo Post',
'(?:The ?|)China ?Post(?:\\.com(?:\\.tw|)|)': 'China Post',
'Caixin(?:global|)(?:\\.com|)': 'Caixin',
'Chinadaily(?:\\.com\\.cn|)': 'China Daily',
'China ?daily ?asia(?:\\.com|)': 'China Daily',
Line 310 ⟶ 318:
 
//News business politics magazines
'Bloomberg(?:\\.com\\.magazine)': 'Bloomberg Markets',
'Businessweek(?:\\.com| magazine|)': 'Bloomberg BusinessWeek',
'Counterpunch(?:\\.org|)': 'CounterPunch',
Line 360 ⟶ 369:
'(?:Quartz(?: magazine|)|qz.com)': 'Quartz (publication)',
'reason(?: magazine|)(?:\\.com|)': 'Reason (magazine)',
// 'salonaxios(?:\\.com|)': 'SalonAxios (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 487 ⟶ 498:
'auto ?sport(?:\\.com|)': 'Autosport',
'badger ?gp(?:\\.com|)': 'Badger GP',
'civilserviceworld(?:\\.com| magazine)': 'Civil Service World',
'cosmopolitan(?:\\.com| magazine)': 'Cosmopolitan',
'elle(?:uk|)(?:\\.com|\\.\\w{2,3}| magazine)': 'Elle',
Line 512 ⟶ 524:
'arniesKingdom(?:\\.com|)': 'Kingdom magazine',
'Linksmagazine(?:\\.com|)': 'Links',
'management ?today(?:\\.co\\.uk| ?magazine|)': 'Management Today',
'NationalClubGolfer(?:\\.com|)': 'National Club Golfer',
'nuts ?magazine(?:\\.co\\.uk|)': 'Nuts (magazine)',
Line 517 ⟶ 530:
'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 524 ⟶ 537:
'variety(?:\\.com| magazine)': 'Variety (magazine)',
'teenvogue(?:\\.com|)': 'Teen Vogue',
'townandcountrymag(?:\\.com|)': 'Town & Country (magazine)',
'legal-forum\\.uchicago\\.edu': 'University of Chicago Legal Forum',
'vogue(?:\\.co\\.uk)': 'British Vogue',
'vogue(?:\\.fr)': 'Vogue ParisFrance',
'vogue(?:\\.(?:com|\\w{2})| magazine)': 'Vogue',
'(?:vanityfair(?:\\.com|)|vf\\.com)': 'Vanity Fair',
Line 593 ⟶ 607:
'elmundo(?:\\.es)': 'El Mundo (Spain)',
'elmundo(?:\\.com)': 'El Mundo (Colombia)',
'el ?mundo': 'El Mundo',
'elmundodeportivo(?:\\.com|\\.es|)': 'Mundo Deportivo',
'elpais(?:\\.com|\\.es|)': 'El País',
Line 616 ⟶ 631:
'diariodecaracas(?:\\.com)': 'El Diario de Caracas',
'diariovea(?:\\.com\\.ve|)': 'Diario VEA',
'el-nacional(?:\\.com)': 'El Nacional (|___location=Caracas), Venezuela',
'lanacion(?:\\.com\\.ar)': 'La Nación |___location=Argentina',
'lanacion(?:\\.com\\.cl)': 'La Nación |___location=Chile',
'lanacion(?:\\.com\\.py)': 'La Nación |___location=Paraguay',
'lanacion(?:\\.com)': 'La Nación |___location=Costa Rica',
'la ?nacion': 'La Nación',
'talcualdigital(?:\\.com)': 'Tal Cual',
'ultimasnoticias(?:\\.com\\.ve|)': 'Últimas Noticias',
Line 848 ⟶ 868:
'星[岛島]日[報报]': 'Sing Tao Daily |language=zh',
'紐約時報': 'New York Times |language=zh',
'Yahoo 新聞香港': 'Yahoo! News |language=zh',
 
//Other websites
Line 983 ⟶ 1,003:
'amna(?:\\.gr|)': 'Athens-Macedonian News Agency',
'bernama(?:\\.com|)': 'Bernama',
'Caixinglobal\\.com': 'Caixin',
'Cna\\.com\\.tw': 'Central News Agency (Taiwan)',
'kyodo ?news(?:\\.com|\\.jp|)': 'Kyodo News',
Line 1,157 ⟶ 1,178:
'(?:the ?|)football[\\- ]league(?:\\.co\\.uk|)': 'The Football League',
'Formula ?(?:1|One)(?:\\.com| Group| Administration|)': 'Formula One',
'irb(?:\\.com|)': 'World Rugby',
'International Rugby Board': 'World Rugby',
'mlb(?:\\.com|)': 'Major League Baseball',
'minorleaguebaseball(?:\\.com|)': 'Minor League Baseball',
'nba(?:\\.com|)': 'National Basketball Association',
'olympic(?:\\.org|)': 'International Olympic Committee',
'Premierleague(?:\\.com|)': 'Premier League',
'(?:nfl|superbowl)(?:\\.com|)': 'National Football League',
'nhl(?:\\.com|)': 'National Hockey League',
'pga\\.com': 'Professional Golfers\' Association of America',
'pga\\.info': 'Professional Golfers\' Association (Great Britain and Ireland)',
'pgatour(?:\\.com|)': 'PGA Tour',
'england ?rugby(?:\\.com|)': 'Rugby Football Union',
'rsssf(?:\\.comorg|)': 'Rec.Sport.Soccer Statistics FoundationRSSSF',
'ttproleague(?:\\.com|)': 'TT Pro League',
'uefa(?:\\.com|)': 'UEFA',
'wimbledon(?:\\.com)': 'The Championships, Wimbledon',
'worldrugby(?:\\.com)': 'World Rugby',
'thefa(?:\\.com)': 'The Football Association',
 
Line 1,288 ⟶ 1,309:
'NYSE(?:\\.com|)': 'New York Stock Exchange',
 
'finance\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! Finance',
'green\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! Green',
'sports\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! Sports',
'kids\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! Kids',
'(?:\\w+\\.|)music\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! Music',
'news\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)': 'Yahoo! News',
'yahoo!': 'Yahoo', //
'sina(?:\\.com\\.(?:cn|hk)|)': 'Sina Corp',
'yahoo\\.com': 'Yahoo!',
'google(?:\\.com|)': 'Google',
'msn(?:\\.com|)': 'MSN',
Line 1,353 ⟶ 1,375:
// 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'
}