<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, the idea was a type of MediaWiki message, but it wasn't only for
dark skins, it was for mod tags basically:<br>
<br>
Say you had the dark skins Quartz (Custom and Gaming), Monobook, and
Monaco (Custom). And you also wanted to tag skins which use the
#p-actions so you can add stuff for tabmenus in skins that have those
tabs, without causing possible cruft in other skins. Then in
[[MediaWiki:Skin-mods]] you'd put something like:<br>
* monobook: dark tabmenu<br>
* quartz-custom: dark<br>
* quartz-gaming: dark<br>
* monaco-custom: dark<br>
Then when in MonoBook mod-dark and mod-tabmenu would be in the body
tag. And when in quartz gaming or custom, and in monaco-custom mod-dark
would be in the body tag. Then you can do stuff inside of Common.css to
support proper styles in the content area when a skin has a dark
content area. (Especially important when wiki like the ACG wiki are
sharing content styles).<br>
<br>
It doesn't really have to parse it on every page load, even the sidebar
isn't like that... Just parse it once for a wiki, turn it into an
associative array (skinname as key, the value is a numeric array
containing a list of the mod tags for that skin), save that inside of
Memcached with a fair expiry, and when [[MediaWiki:Skin-mods]] is saved
or purged, delete the cache and it'll be recached with a proper value
on the next page serve. And after that you just get that array from
memcached, use the skinname to get the array of mod tags
($skinMods[$skinname]) and do some sort of loop, array_map(); or
array_walk(); to prepend mod- to each of them and implode(); it into
the body tags. Afaik I think this can also all be done merely as an
extension without modifying the source of any of the skins.<br>
<pre class="moz-signature" cols="72">~Daniel Friesen(Dantman) of:
-The Gaiapedia (<a class="moz-txt-link-freetext" href="http://gaia.wikia.com">http://gaia.wikia.com</a>)
-Wikia ACG on Wikia.com (<a class="moz-txt-link-freetext" href="http://wikia.com/wiki/Wikia_ACG">http://wikia.com/wiki/Wikia_ACG</a>)
-and Wiki-Tools.com (<a class="moz-txt-link-freetext" href="http://wiki-tools.com">http://wiki-tools.com</a>)</pre>
Christian Williams wrote:
<blockquote cite="mid:BC6F43FB-FE38-44C0-B5E6-86942173F94F@wikia.com"
type="cite">Sorry, big ups to Dantman also for suggesting this. I'm
forgetful. :)
<br>
<br>
The skins with dark backgrounds one probably isn't as easy, because a
dark background could be created in MediaWiki:Monaco.css and I wouldn't
know about it while rendering the body tag. The php that renders the
skin would have to either check a preference that is set to "this has a
dark background, set 'skin-dark' in the body tag" or would have to
parse a mediawiki article on each load to pull in any custom classes.
Anyway, the addition of wikiaSkinMonaco, etc was a 2 minute job that
hopefully moves customization options in the right direction.
<br>
<br>
-Christian
<br>
<br>
On Feb 28, 2008, at 4:11 PM, DanTMan wrote:
<br>
<br>
<blockquote type="cite">T_T I'm invisible aren't I? Either that or
really easy to not notice...
<br>
<br>
Ages ago I suggested body tags... Cept in the form:
<br>
skin-name and theme-name as well as an idea for mod-* tags to deal with
things like skins with dark backgrounds.
<br>
((Still think skin-monobook, skin-quartz, skin-monaco, theme-custom,
theme-brick, etc... would be better. Especially since it keeps in line
with the standard naming of other body tags...))
<br>
~Daniel Friesen(Dantman) of:
<br>
-The Gaiapedia (<a class="moz-txt-link-freetext" href="http://gaia.wikia.com">http://gaia.wikia.com</a>)
<br>
-Wikia ACG on Wikia.com (<a class="moz-txt-link-freetext" href="http://wikia.com/wiki/Wikia_ACG">http://wikia.com/wiki/Wikia_ACG</a>)
<br>
-and Wiki-Tools.com (<a class="moz-txt-link-freetext" href="http://wiki-tools.com">http://wiki-tools.com</a>)
<br>
Christian Williams wrote:
<br>
<blockquote type="cite"><br>
Hi all,
<br>
<br>
The <body> tag of Monobook, Quartz, and Monaco have an additional
css
<br>
class this morning. You can use the "wikiaSkinMonobook",
<br>
"wikiaSkinQuartz", and "wikiaSkinMonaco" classes to target specific
<br>
skins while writing styles in MediaWiki:Common.css.
<br>
<br>
The additional CSS class in the body tag was suggested to me by Pan
<br>
Sola for making minor margin tweaks to the various skins, independent
<br>
of what skin was set as default. Please remember that Common.css is
<br>
loaded for every skin, every time. In customizing a theme for your
<br>
wiki, it's still best to choose one of the Custom options in the skin
<br>
chooser and use MediaWiki:Quartz.css or MediaWiki:Monaco.css to
<br>
specify the styles.
<br>
<br>
-Christian
<br>
_______________________________________________
<br>
Wikia-l mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Wikia-l@wikia.com">Wikia-l@wikia.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.wikia.com/mailman/listinfo/wikia-l">http://lists.wikia.com/mailman/listinfo/wikia-l</a>
<br>
<br>
<br>
</blockquote>
_______________________________________________
<br>
Wikia-l mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Wikia-l@wikia.com">Wikia-l@wikia.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.wikia.com/mailman/listinfo/wikia-l">http://lists.wikia.com/mailman/listinfo/wikia-l</a>
<br>
</blockquote>
<br>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Wikia-l mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Wikia-l@wikia.com">Wikia-l@wikia.com</a>
<a class="moz-txt-link-freetext" href="http://lists.wikia.com/mailman/listinfo/wikia-l">http://lists.wikia.com/mailman/listinfo/wikia-l</a>
</pre>
</blockquote>
</body>
</html>