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://old.nabble.com/ http://old.nabble.com/%22Category:-Noindexed-pages%22-puzzle-to30698862.html... 863268 - http://www.mediawiki.org/wiki/JQuery_snippets#External_links_in_Sidebar_in_ new_window http://www.mediawiki.org/wiki/JQuery_snippets#External_links_in_Sidebar_in_n ew_window
I use this on my normal pages (the "pops" solution):
- http://jimbojw.com/wiki/index.php?title=Popup_links_in_MediaWiki_to_new_win dow http://jimbojw.com/wiki/index.php?title=Popup_links_in_MediaWiki_to_new_wind ow
and it works fine.
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.
Have any of you CustomNavBlock users solved this problem?
If Common.js isn't applied to Mediawiki namespace pages, is there another way, or another .js page, that can be used to add jscript to pages like Mediawiki:ThisPage?
Thanks - skew
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_Sidebar_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
Good idea. On my MediaWiki:ExternalLinksSidebar page, common.js scripts weren't present.
-----Original Message----- From: mediawiki-l-bounces@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I take that back, they seem to be there, though I'm not familiar enough with Firebug to know how for sure if what I'm seeing is what I think I'm seeing.
-----Original Message----- From: trueskew [mailto:trueskew@gmail.com] Sent: Monday, February 07, 2011 10:20 AM To: 'MediaWiki announcements and site admin list' Subject: RE: [Mediawiki-l] Tab / New Window for External Links on Mediawiki namespace pages
Good idea. On my MediaWiki:ExternalLinksSidebar page, common.js scripts weren't present.
-----Original Message----- From: mediawiki-l-bounces@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org