https://bugzilla.wikimedia.org/show_bug.cgi?id=25729

Krinkle <krinklem...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |krinklem...@gmail.com

--- Comment #12 from Krinkle <krinklem...@gmail.com> 2011-03-08 08:49:56 UTC ---
Suggesting LATER or WONTFIX per the mentioned problems and complexity with
parser cache and linking tables.

If the usecase is style, contact your wiki admin and ask him to add some
css-classes to MediaWiki:Common.css.

The root tag of all MediaWiki-pages contains (among others) a class for the
current skin.

<body class="mediawiki ltr ns-0 ns-subject page-Sandbox skin-vector">

so, something like the following should work fine if you really need something
in the wiki to be skin-dependend. Add the following to MediaWiki:Vector.css

/* Make the table of contents white-on-black in Monobook! */
#toc { background-color: black; color: white; }

or if you have several different colors for different skins, it may be easier
to keep them together, instead the following in MediaWiki:Common.css

/* Funky wikitables */
.mediawiki .wikitable td { background-color: black; /* default */ }
.skin-vector .wikitable td { background-color: #8da7d6 }
.skin-monobook .wikitable td { background-color: #00FF00 }

Or if you *really* need to switch the actual article contents (usecase
example?) even this would work:

Template:SkinSwitch

<div class="skinswitch skinswitch-vector">{{{vector|}}}</div>
<div class="skinswitch skinswitch-monobook">{{{monobook|}}}</div>
<div class="skinswitch skinswitch-default">{{{default|}}}</div>

MediaWiki:Common.css
.skinswitch { display: none; }
.skinswitch-default { display: block; }

.skin-vector .skinswitch-default,
.skin-monobook .skinswitch-default { display: none; }

.skin-vector .skinswitch-vector,
.skin-monobook .skinswitch-monobook { display: block; }

User:Example

{{SkinSwitch
|vector=Hello fellow Vectorians,
|monobook=Howdy Monobooky,
|default=Hi there,
}}

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to