Content deleted Content added
Migration: addOnloadHook → $; wg* → mw.config.get('wg*'); getElementsByClassName → $('.class'); This is imported from it:wikt:MediaWiki:Gadget-autolink.js |
m Ops... the previous edit was saved too early |
||
Line 46:
if (autolinkDiff) { // in diff pages
if (autolinkParseLink) { // without wikEd
autolinkTargetDiv[0] =
autolinkTargetDiv[1] =
autolinkColor = 'inherit'; // not coloured links
} else { // with wikEd
autolinkTargetDiv[0] =
autolinkColor = ''; // coloured links
}
} else if (autolinkCrono || autolinkEdit) { // in comments
autolinkTargetDiv[0] =
autolinkColor = ''; // coloured links
} else { // in code sections
autolinkTargetDiv[0] =
autolinkTargetDiv[1] =
autolinkTargetDiv[2] =
autolinkTargetDiv[3] =
autolinkTargetDiv[4] =
autolinkColor = ''; // coloured links
}
|