Jump to content

MediaWiki User Guide/Search

From Wikibooks, open books for an open world

MediaWiki offers various search capabilities.

Overview

[edit | edit source]

At a glance:

  • Plain text search
  • If CirrusSearch is enabled:
    • Search using regular expressions with "insource"
      • insource:/regexp/
      • insource:/regexp/i -- case insensitive
    • Search incategory:
    • Search deepcat:
    • Search intitle:
    • And more

In source

[edit | edit source]

Examples:

  • insource:{{template
    plain text search
  • insource:/== Pronunciation/
    regular expression
  • insource:/== Etymology.*Pronunciation/
    spans multiple rows
  • insource:/\{\{template/
    escaped {

Links:

In title

[edit | edit source]

Examples:

  • intitle:/mus.*rat/
    regular expression
  • intitle:/mus.*rat$/
    does not work; $ not supported

Links:

In category

[edit | edit source]

Examples:

  • incategory:"English adjectives" muskrat

Links:

Negation

[edit | edit source]

Using minus ("-").

Examples:

  • incategory:"English adjectives" -muskrat

(The example is not particularly meaningul; better find a better one.)

Note: This seems to work at least in some setups or for some versions but there is apparently no mention of it in mw:Help:CirrusSearch.

In other books

[edit | edit source]
[edit | edit source]