[MediaWiki-l] skin indicator

classic Classic list List threaded Threaded
3 messages Options
Bri
Reply | Threaded
Open this post in threaded view
|

[MediaWiki-l] skin indicator

Bri
Quick question -- Is there a variable or magic word to indicate which
skin is being viewed?

I am wanting to use a grid-based skin, but allow for vector as well. I
would like to have a conditional transclusion based on the viewer's
skin. Something like:

{{#switch: SKINNAME
   Pivot {{page/p}}
   Vector {{page/v}}
   default {{page/p}}
}}

Thanks in advance,

   Bri





_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: skin indicator

Bartosz Dziewoński
No, there isn't.

However, if you install the TemplateStyles extension, you can write
different CSS styles for your content for each skin:
https://www.mediawiki.org/wiki/Help:TemplateStyles#How_can_I_target_specific_skins?

Hope that helps.

--
Bartosz Dziewoński

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Bri
Reply | Threaded
Open this post in threaded view
|

Re: skin indicator

Bri
Thank you Mr. Dzieworiski!

On 2019-09-18 15:51, Bartosz Dziewoński wrote:
> No, there isn't.
>
> However, if you install the TemplateStyles extension, you can write
> different CSS styles for your content for each skin:
> https://www.mediawiki.org/wiki/Help:TemplateStyles#How_can_I_target_specific_skins?
>
>
> Hope that helps.
>



_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l