Jump to content

Template:Search inside category

From Wikimedia Commons, the free media repository
(Redirected from Template:Search in category)
Template documentationview · edit · history · purge ]

Produces a search box (using InputBox) to enable users to search inside the category's content using a keyword.

Usage

{{Search inside category |1= |namespaces= }}

The problem is that the deepcategory operator used here does not work in many categories, especially categories with many subcategories – this problem is tracked in the code issue linked on the right and discussed here

Template parameters

ParameterDescriptionDefaultStatus
1Custom nameOptionally define the category to be searched. Defaults to the current page.{{PAGENAME}}optional
namespacesNamespace search filterFilter search results by namespace. Defaults to file namespace.File**optional

Additional information

The template is intended to be used in the following namespaces: the Category namespace

The template is intended to be used by the following user groups: no user group specified

Relies on:
mw:Extension:InputBox

See also

Template:Search box inside category – template this template was forked from but using the incategory operator instead of the deepcategory operator and therefore only searches files directly in the category rather than also files in its subcategories, making is useless in most cases

Localization

To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)