Thanks Platonides.
 
I know what you mean about the template now. So, I copied the Template:Navpop 
from wikipedia to my wiki.
 
But I can't understand your meaning of "place on the page". What page, and 
where should I place to?
 
Thanks again,
Ross

--- On Fri, 11/6/09, Platonides <[email protected]> wrote:


From: Platonides <[email protected]>
Subject: Re: [Mediawiki-l] How to Enable JavaScript for MediaWiki
To: [email protected]
Received: Friday, November 6, 2009, 5:13 AM


Ross Xu wrote:
> Greetings,
>  
> I am using MediaWiki 1.15.1 for my wiki site.
> I'd like to know if JavaScript is enabled by default. If not, how to enable 
> it?
>  
> The reason I am asking this is ...
> If I create my monobook.js at wikipedia and add "{{subst:navpop}}", it 
> automatically converts after Save. But for my wiki site, it doesn't. And none 
> of my js for my wiki seems working.

It converts automatically after save on en.wikipedia because there,
http://en.wikipedia.org/wiki/Template:Navpop does exist.

For your wiki, place on the page
importScriptURI("http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript";);

You may need to set $wgAllowUserJs = true; on your LocalSettings.php for
it to be loaded.


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l



      __________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  
Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to