Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

How to Enable JavaScript for MediaWiki

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


rossxunix at yahoo

Nov 5, 2009, 12:58 PM

Post #1 of 6 (238 views)
Permalink
How to Enable JavaScript for MediaWiki

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.
 
BTW, my wiki site is a virtual web server from my ISP. Is this a problem?
Any idea is greatly appreciated,
Ross


__________________________________________________________________
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
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


svippy at gmail

Nov 5, 2009, 1:13 PM

Post #2 of 6 (229 views)
Permalink
Re: How to Enable JavaScript for MediaWiki [In reply to]

2009/11/5 Ross Xu <rossxunix[at]yahoo.ca>:
> 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?

It is enabled by default. Only thing you need to worry about enabling
js for users.

Instead use [[MediaWiki:Monobook.js]] or Common.js, depending on if
you want it skin-wide.

> 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.

Regardless of the enabling of js, this should have nothing to do with
your problem. Are you sure [[Template:Navpop]] contains anything?
Otherwise {{subst:navpop}} will fail.

> BTW, my wiki site is a virtual web server from my ISP. Is this a problem?

No.

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


Platonides at gmail

Nov 5, 2009, 1:13 PM

Post #3 of 6 (229 views)
Permalink
Re: How to Enable JavaScript for MediaWiki [In reply to]

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
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


rossxunix at yahoo

Nov 5, 2009, 2:15 PM

Post #4 of 6 (229 views)
Permalink
Re: How to Enable JavaScript for MediaWiki [In reply to]

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 <Platonides[at]gmail.com> wrote:


From: Platonides <Platonides[at]gmail.com>
Subject: Re: [Mediawiki-l] How to Enable JavaScript for MediaWiki
To: mediawiki-l[at]lists.wikimedia.org
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
MediaWiki-l[at]lists.wikimedia.org
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
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


rossxunix at yahoo

Nov 5, 2009, 2:21 PM

Post #5 of 6 (228 views)
Permalink
Re: How to Enable JavaScript for MediaWiki [In reply to]

Thank you, Svip.
 
I doubt my JavaScript is enabled because I couldn't see the "Gadgets" tab from Special:Preferences as described in the link below , even though the Collection extension is installed and working.
Here is the link:
http://en.wikipedia.org/wiki/Wikipedia:Tools/Navigation_popups
 
Thanks again,
Ross

--- On Fri, 11/6/09, Svip <svippy[at]gmail.com> wrote:


From: Svip <svippy[at]gmail.com>
Subject: Re: [Mediawiki-l] How to Enable JavaScript for MediaWiki
To: "MediaWiki announcements and site admin list" <mediawiki-l[at]lists.wikimedia.org>
Received: Friday, November 6, 2009, 5:13 AM


2009/11/5 Ross Xu <rossxunix[at]yahoo.ca>:
> 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?

It is enabled by default.  Only thing you need to worry about enabling
js for users.

Instead use [[MediaWiki:Monobook.js]] or Common.js, depending on if
you want it skin-wide.

> 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.

Regardless of the enabling of js, this should have nothing to do with
your problem.  Are you sure [[Template:Navpop]] contains anything?
Otherwise {{subst:navpop}} will fail.

> BTW, my wiki site is a virtual web server from my ISP. Is this a problem?

No.

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



__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Platonides at gmail

Nov 6, 2009, 3:10 PM

Post #6 of 6 (199 views)
Permalink
Re: How to Enable JavaScript for MediaWiki [In reply to]

Ross Xu wrote:
> 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 your monobook.js
Or Template:Navpop if you want to "install" it using "{{subst:navpop}}"
The code of Template:navprop on won't work on your wiki because it
imports [[User:Lupin/popups.js]] from your local wiki. The code I gave you
importScriptURI("http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript");

directly imports from the copy at enwiki. You can alternatively copy it
to your site.

You don't see a Gadgets tab on your preferences because it's an
extension http://www.mediawiki.org/wiki/Extension:Gadgets


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

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.