[Mediawiki-l] Signing text automatically in discussion page

nevio carlos de alarcão nevinhoalarcao at gmail.com
Mon Jan 18 20:12:57 UTC 2010


much I have to learn, fortunately I'm willing to... Sorry Magnus, how do add
these onload handler and click handler, if I may?

2010/1/18 Magnus Manske <magnusmanske at googlemail.com>

> On Mon, Jan 18, 2010 at 4:35 PM, Tech Geek <techgeek12345 at gmail.com>
> wrote:
> > Magnus,
> >
> >>A simple JavaScript could check if there's ~~~ in the edit box when
> >>saving a talk page, and alert you if there's not.
> > Looks like this might work. Where do you exactly put this javascript? Do
> I
> > have to install some kind of extension which will let me add my own
> > javascript or should I modify the main mediawiki files?
>
> No extension needed, just edit [[MediaWiki:Common.js]]. Example:
> http://en.wikipedia.org/wiki/MediaWiki:Common.js
>
> Add an onload handler that checkes if you're editing a talk page, then
> add a click handler on the save button. That handler then checks the
> edit box for "~~~" and throws a dialog like "No signature detected,
> save anyway?".
>
> Cheers,
> Magnus
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>



-- 
{+}Nevinho
Venha para o Movimento Colaborativo http://sextapoetica.com.br !!


More information about the MediaWiki-l mailing list