1

I'm trying to search for text on a category page of a MediaWiki website. But the search seems to only work on article pages. How can I also search on category (or all) pages on a MediaWiki website?

This question is similar to this one: Search within a category on a MediaWiki site

Therefore, I want to emphasize, that I am not asking about the search on article pages of a certain category, but about the search on category pages themselves, as the may contain text as well, allongside the listing of subcategories and articles.

2
  • Searching works fine on category pages. For a more useful answer, you'll need to share more details about what exactly you tried.
    – Tgr
    Aug 31 '21 at 20:19
  • @Tgr Thx for your pointer. I then managed to find it out by myself and added it as an answer below. Sep 1 '21 at 6:23
0

The MediaWiki search performs its search only on article pages by default. To extend the search, you have to add more namespaces to the search.

Depending on your MediaWiki version, you can add additional namespaces (e. g. "Category") by one of the following methods:

  • In older versions (e. g. 1.27.1), in your search results, click on the "Advanced" tab and select your desired additional namespaces.
  • In the current version (1.37.0), in your search results, under "Search in", click on "Add namespaces" and select your desired additional namespaces:enter image description here

Or you can prepend the namespace to your search query (e. g. for "Category")1:

Category:MySearchQuery

1 Contributed by Tgr through the comments.

2
  • 1
    You can also just prefix the search query with Category:, I think.
    – Tgr
    Sep 2 '21 at 5:08
  • @Tgr This seems to work, too! Sep 2 '21 at 5:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.