[Mediawiki-l] How to create an extra button and make it do the real work

Jing Tang tangjing725 at googlemail.com
Tue Sep 21 13:54:58 UTC 2010


Hello Everyone,

I m new to MW. i m trying to create an extra button nearby buttons: save
pages, preview, show changes by making a extension.
i have used the hooks/EditPageBeforeButtons to create an extra button. but
problem is that i don't know how to make this button work. Because when I
click this button, it does the same work like default saving page. I don't
know how to call the other functions if clicked this button. e.g. post data
to a url, running a javascript or any other functions except default saving.
Any examples and tips would be very thankful!

greeting
sitomtom


More information about the MediaWiki-l mailing list