I would like the ability to have all external pages by default open up into their own window. Any suggestions?
Brandon wrote:
I would like the ability to have all external pages by default open up into their own window. Any suggestions?
As I understand popular opinion on the list, you will need to hack it into parser.php yourself. :) Overwhelming majority say this is a Bad Thing. (It comes down to user control and respect--a user may force a link to open in a new window/tab, but can not force a new window link to open in the same window.)
Hínandil
but can not force a new window link to
open in the same window.) <<
I do that all the time with links that try to open new windows - drag the link to the URL entry box... although I must admit it doesn't always work - only with target='' links.
- MHart
Here was the solution to my own question to help others:
I know this isn't ideal, but in order to make external links open in a new window go to Skin.php and make changes to <a> tag adding target="_new" in the makeExternalLink function.
Hínandil wrote:
Brandon wrote:
I would like the ability to have all external pages by default open up into their own window. Any suggestions?
As I understand popular opinion on the list, you will need to hack it into parser.php yourself. :) Overwhelming majority say this is a Bad Thing. (It comes down to user control and respect--a user may force a link to open in a new window/tab, but can not force a new window link to open in the same window.)
Hínandil _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
This should probobly be its own topic but,..
I would rather have a tooltip option. It would be neat if a little tooltip would popup with the first paragraph or so of the page you are linking too. If nothing else, this would be very cool for links to wikitionary.
It could use something like [[Def:<word>]] and a link to that wikitionary would be created with a tooltip that had a quick defenition of it.
It would add quite a server load though.
I would rather have a tooltip option. It would be neat if a little tooltip would popup with the first paragraph or so of the page you are linking too.defenition of it.
It would add quite a server load though.
It would also massively increase the size of every page in the system, which would cost more in bandwidth and make pages download and render significantly slowly on the users' systems (that's before we factor in the delay for the backend).
It would be a very expensive feature in terms of drawbacks and probably not worth it. Cool, though? Definitely.
Hínandil
On 29/07/05, Hínandil hinandil@freespirits.org wrote:
I would rather have a tooltip option. It would be neat if a little tooltip would popup with the first paragraph or so of the page you are linking too.defenition of it.
It would add quite a server load though.
It would also massively increase the size of every page in the system,
Unless it was done as some crazy client-side JavaScript app, of course. 8)
On 7/29/05, Loplin loplin@gmail.com wrote:
This should probobly be its own topic but,..
I would rather have a tooltip option. It would be neat if a little tooltip would popup with the first paragraph or so of the page you are linking too. If nothing else, this would be very cool for links to wikitionary.
It could use something like [[Def:<word>]] and a link to that wikitionary would be created with a tooltip that had a quick defenition of it.
It would add quite a server load though.
While I won't argue about how to get the definitions, here's some things about implementing such a system:
* Adding such a psuedo-namespace would require hacking, since there's no standard way of adding them. * A large tooltip would require JavaScript, since the title attribute is only made for single lines. (Try http://javascript.about.com/od/guidesscriptindex/a/tip.htm.)
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now has 2GB.
- A large tooltip would require JavaScript, since the title attribute
is only made for single lines. (Try http://javascript.about.com/od/guidesscriptindex/a/tip.htm.)
Not true - javascript not needed. It could be done with pure CSS
or a more detailed description here
http://www.communitymx.com/content/article.cfm?cid=4E2C0
All resources found by google: http://www.google.com/search?q=pure+css+tooltips
- Cameron
On 7/29/05, M. Cameron Jones mjones2@gmail.com wrote:
- A large tooltip would require JavaScript, since the title attribute
is only made for single lines. (Try http://javascript.about.com/od/guidesscriptindex/a/tip.htm.)
Not true - javascript not needed. It could be done with pure CSS
Would this mean that the page would have to have all the content loaded before you even hover? That could increase loading times (not to mention bandwidth in addition to CPU usage for looking everything up) tremendously even for those who don't want to use this (e.g. I would find it too annoying).
Sounds like a bad idea to me. If I want to follow one of the links I'll do so, and I'll open it in a background tab so it doesn't interrupt my reading like tooltips would.
Dori
mediawiki-l@lists.wikimedia.org