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. Code for [[Template:ExtLink]]: (new page) <span class="extlink">[[{{{1}}}]]</span> Code for [[MediaWiki:Common.js]]: ("append" to page) function ExtLinks() { var extlinks = getElementsByClassName('extlink'); for (var i=0, il=extlinks.length; i<il; i++) { extlinks[i].setAttribute('target','_blank'); }; }; addOnloadHook(ExtLinks); Now whenever we want to make a interwiki link open in a new window, we just use {{ExtLink|Special:Upload}} the function getElementsByClassName should already be defined in the wikibits.js file but if for some reason it is not available, you can get the updated version at http://www.robertnyman.com/2008/05/27/the-ultimate-getelementsbyclassname-anno-2008/ Walter Mazza On Fri, Dec 5, 2008 at 11:57 AM, Matthias Korn <[EMAIL PROTECTED]> wrote: > > Hi, > > how can I make internal links open in a new tab or window? > e.g.: [[Special:Upload]] > > Thanks, > Matthias > > -- > Rock in China > http://wiki.rockinchina.com/ > http://www.rockinchina.com/ > > _______________________________________________ > MediaWiki-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
