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

Reply via email to