Topic on Extension talk:ImageMap

Need to distinguish "red" links from "blue" links (and add external, while you're at it)

5
Kghbln (talkcontribs)

One deficiency with imagemap is that there is no way for the user (or a script) to know if the page of this link actually exists. It would be very useful to have this available. IMO, this can be accomplished with zero regressions by adding "external" or "new" classes to this area element (you already create a "$title" object, so it should be very easy to do by adding (around line #229)

	if ($external) {
		$attrib['class'] = 'external';
	} elseif (! $title->exists()) {
		$attribs['class'] = 'new';
	}

or somesuch (totally untested, but very simple).

This post was posted by Kghbln, but signed as קיפודנחש.

Reply to "Need to distinguish "red" links from "blue" links (and add external, while you're at it)"