How can I search in transcluded categories?

Posted by Wikis on Server Fault See other posts from Server Fault or by Wikis
Published on 2012-04-06T09:05:09Z Indexed on 2012/04/06 11:33 UTC
Read the original article Hit count: 195

I want to add functionality to a MediaWiki wiki to search in specific categories:

  • Platform 1
  • Platform 2
  • etc.

So I created a template which, based on a certain field, assigns pages to those categories. The template was already included on most of these pages. So now most pages are in either:

  • Category:Platform 1 or
  • Category:Platform 2

Then I thought I just need to add incategory to the search and I'm done, as described on the Wikipedia page. But then I reread it and to my horror discovered:

incategory: – using the incategory: parameter returns pages in a given category (as long as the pages are directly categorized, and not transcluded through templates).

Eeeek! Is there any other way to search even in transcluded templates? Or any other way of resolving this?

© Server Fault or respective owner

Related posts about search

Related posts about mediawiki