Ok, I was fairly confident that I understood what I needed to do, but it didn't work. I created a page called MediaWiki:Common.js (I searched the site and it did not find one, so I clicked on "create this page". I copied all of the code from the "extra toolbar options" section of the MediaWiki:Common.js page you sent me, and pasted it into the page I created. I saved the page and then clicked on a page to edit but the toolbar is unchanged.
Did I do something wrong?
Thank you so much! Mike
Rob Church robchur@gmail.com wrote: On 13/05/07, Mike wrote:
What is a JavaScript helper function and how do I use it?
A "helper function" is just convenience code to do something that's otherwise a bit more complex. In this case, I'm referring to functions which add buttons to the toolbar. JavaScript is just the language these are written in.
Searched for common.js
No, "MediaWiki:Common.js" is a page which MediaWiki sends to the client to be processed as JavaScript on page views, in all recent release versions of the software. Code such as the example on the English Wikipedia web site can take advantage of this to, for example, call the code mentioned above to add edit buttons to the toolbar.
You'll want to "borrow" some of the code from http://en.wikipedia.org/wiki/MediaWiki:Common.js and place the appropriate lines into the MediaWiki:Common.js page on your wiki, creating it if it doesn't exist. You will then most likely want to alter the code to change what buttons you're adding, images, etc.
Rob Church
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- Got a little couch potato? Check out fun summer activities for kids.