Search code examples
footermediawikiwikiwikimedia

MediaWiki Wiki Custom footer depending on category


I was wondering if there was a way, to show certain parts of my footer, only when in certain categories.

E.g. a email link (mailto) only when in the Category:FAQ

I am using a custom Skin.


Solution

  • With help of this snippet a CSS class is added to your body tag for every category the current page belongs to. You could then display or hide certain elements with help of the corresponding class.