[Mediawiki-l] Make internal links open in a new tab

Platonides Platonides at gmail.com
Fri Dec 5 19:18:29 UTC 2008


Walter Mazza wrote:
> Well according to
> http://www.mediawiki.org/wiki/Manual:Opening_external_links_in_a_new_window,
> the syntax would be
> 
> [http://yourwiki.url/wiki/Special:Upload|target='_new' Special:Upload]
> 
> However for some reason, that does not work on our wiki...could be our
> version (1.11)? or we may have some feature disabled, never really bothered
> to check because we ended up using a Template and some JavaScript to add the
> target attribute to links.

To use that syntax, you need to apply the changes specified on that page.

For 1.14 you will be able to use $wgExternalLinkTarget




More information about the MediaWiki-l mailing list