Thread:Project:Support desk/Segregated external links/reply (3)

I'm no coder, so that will probably explain my confusion. I can't make heads or tails of the LinkerMakeExternalLink as described in the manual. In my LocalSettings, external links are set to open in a separate page as such;

$wgExternalLinkTarget = '_blank';

Nothing else there, just the one line.

I'm guessing that I need some sort of conditional statement, but the best I can come up with is that I need something along this line;

if ($url=='theantiquegique.com/*') $wgExternalLinkTarget = '_self'; else $wgExternalLinkTarget = '_blank';

But I can't get that to work either. I think that since I only have the two urls that need special treatment, I'll probably have to live with them the way they are for now. I don't really want to keep experimenting when I really don't have a clue as to what I'm doing. In the meantime, I'll keep reading.

Thanks again,