User:Lenore/autolink.js: Difference between revisions

Content deleted Content added
mNo edit summary
mNo edit summary
Line 82:
// Wikilinks
 
autolinkRegexTemplate = /\{{2}((?:[Ss][Uu][Bb][Ss][Tt]\:|[Mm][Ss][Gg]\:|[Mm][Ss][Gg][Nn][Ww]\:)?)([^\:\|<>\n]+?)(\s*(?:(?:\:|\|)[\s\S]*?|))\}{2}))/g;
// Templates
 
Line 110:
 
content = content.replace(autolinkRegexTemplate,
'{{$1<a class="autolink" style="color:' + autolinkColor + '" href="/wiki/Template:$2">$2</a>$3}}');
// Make template code into links