On 4/22/05, Juanma Barranquero <lekktu(a)gmail.com> wrote:
What's the right place to put that JavaScript?
I've thought of
MediaWiki:Monobook.js, but I'm a bit uncomfortable adding things to
it, as I assume it can change when upgrading MediaWiki.
Well, the update installer won't overwrite it if you've manually
editted it, so it won't stop working. The problem is more the
opposite, that in the event that something changes in the software's
version of that, you'll have to merge those changes in with your
manual ones. But presumably your code will be all in one block, so
that's easy enough if you remember.
I can also use
an extension tag (let's say, <calendar></calendar>) and insert the
script from there, but it's very ugly.
I think that's the best that can be offered, tbh. There's a
<charinsert> extension that Wikimedia sites use for precisely this
kind of thing - a little snippet of JavaScript that's otherwise
stripped out of the wikitext.
--
Rowan Collins BSc
[IMSoP]