Content deleted Content added
Special:NewPages too; excluding URL with { or }; simplifying wlink regex (diffchange); +diffchange in tmp regex; excl tmp name with & |
m diffchange |
||
Line 101:
// External links (no wikicode)
autolinkRegexWlink = /\[{2}([^\[\]<>\n]*?)(\<span class\="diffchange"\>|)([^\[\]<>\n]*?)(\<\/span\>|)([^\[\]<>\n]*?)(|\|[^\n]*?)\]{2}/g;
// Wikilinks
autolinkRegexTemplate = /\{{2}([Ss][Uu][Bb][Ss][Tt]\:|[Mm][Ss][Gg]\:|[Mm][Ss][Gg][Nn][Ww]\:|)([^\{\}\:\&\|<>\n]*?)(\<span class\="diffchange"\>|)([^\{\}\:\&\|<>\n]
// Templates
Line 135:
autolinkContent = autolinkContent.replace(autolinkRegexWlink,
'[[<a class="autolink" style="color:' + autolinkColor + '" href="/wiki/$
// Make wikilink code into links
autolinkContent = autolinkContent.replace(autolinkRegexTemplate,
'{{<a class="autolink" style="color:' + autolinkColor + '" href="/wiki/Help:$1">$1</a><a class="autolink" style="color:' + autolinkColor + '" href="/wiki/Template:$
// Make template code into links
|