[Mediawiki-l] PopUps

Helmut Schneider jumper99 at gmx.de
Fri Mar 21 15:33:39 UTC 2008


Schneelocke <schneelocke at gmail.com> wrote:
>> I need to open links from MediaWiki in an external window with a specific
>> size. I used to use JavaScript but afaics JS is not supported by default.
>> Before I start installing any extensions is it possible with
>> MediaWiki? The script looks like this:
>
> Wait, do you want to open ALL external links like this, or just some
> specific ones?

Only specific ones.

> In the former case, you could probably add the script to
> MediaWiki:Common.js and then patch makeExternalLink() in
> includes/Linker.php so that external links call your PopupWindow
> function by default. In the latter case, adding a few special cases to
> makeExternalLink() would also work.

OK, added the script to MediaWiki:Common.js, how do I call that link? Lets 
say I have
javascript:PopupWindow('/subwebs/3rdfloor.php','width=1050,height=730')"
what would be the syntax?

-- 
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn 





More information about the MediaWiki-l mailing list