Besides using a template for adding a category to a page I would like to add
the very same category name as a class to the page's body tag like so:

  $('body').addClass('myCategory')

This would enable category based styling using CSS as suggested at
http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Css_for_categories

Is this a feasible option?
-- 
View this message in context: 
http://old.nabble.com/JavaScript-within-templates--tp32503809p32503809.html
Sent from the WikiMedia General mailing list archive at Nabble.com.


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to