Whilst it may be better to use Common.js, the skinname.js files are
still in widespread use, so we're certainly not going to just make
them disappear without warning. Please don't worry about content or
work done on stylesheets and scripts being lost.
Angela
On 10/26/07, DanTMan <[EMAIL PROTECTED]> wrote:
> Common.js
> Do remember that the use of a Skinname.js, or as we used to call it
> Monobook.js, has been depreciated.
> You can do everything with a Skinname.js, ie: Monobook.js or Quartz.js
> by using a if( skin == 'monobook' ) or a if( skin == 'quartz ). Because
> of this there is no valid reason to use a Skinname.js file. Even if
> there is one it's not a good idea to use it... Depreciated means that
> the developers want people to stop using a feature so that they can
> remove it in a later version when people have stopped. Therefore using a
> Quartz.js is a _/*very*/_ bad idea as during some MediaWiki update Wikia
> makes in the future all your JS could potentially and suddenly disappear
> and stop working.
>
> So in short...
> Instead of looking for a Quartz.js somewhere, just do this:
> if( skin == 'quartz' ) {
> // Code you would put in a Quartz.js file.
> }
> And everything will be fine.
>
> The reason we still have Skinname.css files is because css does not have
> wrapping syntax which can work per-skin. But JS does, and that's why
> it's depreciated.
>
> Though admittedly I do wish that they would put a skin-/skinname/ and
> for quartz also a theme-/themename/ class set inside of the body tag
> like they do for per-page stuff. The reason why I want something like
> that is other than for some things that fit better in Common.js (Say you
> used a titleicons class, it would be good if you could keep the code
> there if you had to make some per-skin position modifications), there
> are also issues with some of the default Quartz skins. The Gaming skin
> has a dark content area and because of that 100% of wiki which are doing
> things the proper way (Working with light in Common, and then adding
> Dark-mods per-skin for dark skins) will look bad in the Gaming skin. I
> have a Box class system, if there was a skin/theme class set in the body
> tag, then I'd add body.skin-quartz.theme-gaming into some of the
> coloring code to add some modifications for Dark skins.
>
> Actually, I had a different idea which would work much better than
> that... It involved adding body tags to skins where defined in a
> MediaWiki message:
> Say, something like [[MediaWiki:Skinmods]] would have something like
> this for a wiki which had dark content skins in both Monobook and
> Quartz/Gaming:
> * Monobook: dark
> * Quartz
> ** Gaming: dark
> And then when using Monobook or Quartz/Gaming the body tag would have
> mod-dark added to it classes. Then you could add a bit of code to your
> Common.js to alter the coloring of various content elements so that
> while inside of a Dark content skin the content styled elements would
> have altered colors that work right inside of dark skins.
>
> That would work much better for my Box class than having me create a
> Dark-mod stylesheet and have wiki in Wikia ACG with skins using dark
> content areas include that. Especially since we can't add that include
> to the Gaming theme code. And that means that no-one will be able to use
> that skin if they want to view our wiki.
>
> ~Daniel Friesen(Dantman) of:
> -The Gaiapedia (http://gaia.wikia.com)
> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
> -and Wiki-Tools.com (http://wiki-tools.com)
>
> Scott Hanson wrote:
> > I've seen that page before, but I don't see anything about a .js file
> > for the Quartz skins.
> >
> > On 10/25/07, *Catherine Munro* < [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > See http://inside.wikia.com/wiki/Quartz_Skin_Customization for
> > lots of details on customizing....
> >
> > On 10/25/07, * Scott Hanson* < [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > Does anyone know where the Quartz equivalent to
> > MediaWiki:Monobook.js is?
> >
> > I assume it's something like MediaWiki:Quartz.js ... but you
> > know what happens when you assume :ยท)
> >
> > Thanks,
> > Scott
> >
> > _______________________________________________
> > Wikia-l mailing list
> > [email protected] <mailto:[email protected]>
> > http://lists.wikia.com/mailman/listinfo/wikia-l
> >
> >
> >
> > _______________________________________________
> > Wikia-l mailing list
> > [email protected] <mailto:[email protected]>
> > http://lists.wikia.com/mailman/listinfo/wikia-l
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Wikia-l mailing list
> > [email protected]
> > http://lists.wikia.com/mailman/listinfo/wikia-l
> >
>
_______________________________________________
Wikia-l mailing list
[email protected]
http://lists.wikia.com/mailman/listinfo/wikia-l