On Fri, 27 Jan 2012 00:16:32 -0800, Valerio Pelliccioni
wrote:
Hi,
I'm not a newbie but certainly not a geek so I need help!.
Once in the MonoBook.php there was a place between and in
which I had put my
Now there is only a $this->html( 'headelement' ) instead.
The question is: Where do I have to put my javascript and meta elements?
I tried to mess around some solution but the result was that Header Tabs
no longer worked plus some other disaster...
Ok!
Rolled back for now waiting for a word of comfort!
My skins is (obviously) based on MonoBook and my site
(http://tunearch.org) strongly rely on javascript.
Thank you very much indeed.
Valerio Pelliccioni
_
e-mail: v...@silkwood.it
Web: http://tunearch.org
To be quite clear, headelement is not a 1.18 addition. headelement was
introduced in 1.16 ages ago, frankly all skins should have thought of
updating long ago.
Without headelement there was an insane amount of boilerplate in skins,
and it was inflexible to improvements in MediaWiki.
You add css by overriding the setupSkinUserCss method in your
Skin/SkinTemplate subclass and js in an overridden initPage method.
You use OutputPage's methods for adding these, there are a variety
depending on what you want:
addModuleStyles/addModuleScripts: Add ResourceLoader modules to the skin,
this the ideal way to add styles and scripts. Especially if it's skin
styles since ResourceLoader will allow you to embed things, split your css
into multiple organized files, and with minor tweaking will give you great
RTL support in your skin.
addStyle: To add a stylesheet directly.
addInlineStyle: To add some embedded inline styles.
addScriptFile: Add a script directly.
addInlineScript: An embedded script.
addMeta: Adds tags, start the name with http: to add a
http-equiv="" instead of a name=""
addHeadItem: Plain and simply adds any html you want to the head, can be
used for inserting 's, or anything else that we don't have better
methods for.
--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]
___
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l