Good idea. On my MediaWiki:ExternalLinksSidebar page, common.js scripts
weren't present.
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of nakohdo
Sent: Monday, February 07, 2011 9:59 AM
To: mediawiki-l(a)lists.wikimedia.org
Subject: Re: [Mediawiki-l] Tab / New Window for External
Links on Mediawiki namespace pages
trueskew wrote:
I've tried using several Common.js solutions for having specific
external links and sidebar external links open in a new
tab, including these:
http://www.mediawiki.org/wiki/JQuery_snippets#External_links_in_Sideba
r_in_n
ew_window
However, none of the solutions above work on my sidebar. I'm using
CustomNavBlocks, so my sidebar consists of Mediawiki
namespace pages.
Perhaps my problem is that Common.js contents
don't apply to the
Mediawiki namespace.
The above mentioned jQuery code finds the links in the
sidebar by looking for the ids "mw-panel" or "panel". You
should use Firebug to check whether these ids are also valid
when using CustomNavBlocks.
hth
Frank
--
View this message in context:
http://old.nabble.com/Tab---New-Window-for-External-Links-on-M
ediawiki-namespace-pages-tp30865945p30866116.html
Sent from the WikiMedia General mailing list archive at
Nabble.com.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l