[Mediawiki-l] Best way to IF(category) THEN (display something)

Michael Daly michael.daly at kayakwiki.org
Thu Aug 14 12:01:44 UTC 2008


Bjorn Kassoe Andersen wrote:

> I want specific words and graphics to be displayed in a templated box if a
> page belongs to a specific category (if the page does not belong to this
> category, a default text/graphic should be displayed).

I suppose if you create a magic word that returns true or false 
depending on the page's membership in a category, you could put this in 
a template using parser functions.

Magic word creation is documented at:
http://www.mediawiki.org/wiki/Manual:Magic_words

Mike







More information about the MediaWiki-l mailing list