User:Lenore/autolink.js: Difference between revisions

Content deleted Content added
Created page with '// Autolink wikilinks, [external links] and {{templates}} (especially useful for monobook.js // and similar pages); adapted from [[Wikipedia:WikiProject User s...'
 
mNo edit summary
Line 79:
// External links (no wikicode)
 
autolinkRegexWlink = /\[{2}([^\|\]<>\n]*+)([^\n]*?)\]{2}/g;
// Wikilinks
 
autolinkRegexTemplate = /\{{2}((?:[Ss][Uu][Bb][Ss][Tt]\:|[Mm][Ss][Gg]\:|[Mm][Ss][Gg][Nn][Ww]\:)?)([^\:\|<>\n]*+?)(\s*(?:(?:\:|\|)[\s\S]*?|))\}{2}/g;
// Templates