MediaWiki User Guide/Search
MediaWiki offers various search capabilities.
Overview
editAt 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
- Search using regular expressions with "insource"
In source
editExamples:
- insource:{{template
- plain text search
- insource:/== Pronunciation/
- regular expression
- insource:/== Etymology.*Pronunciation/
- spans multiple rows
- insource:/\{\{template/
- escaped {
Links:
In title
editExamples:
- intitle:/mus.*rat/
- regular expression
- intitle:/mus.*rat$/
- does not work; $ not supported
Links:
In category
editExamples:
- incategory:"English adjectives" muskrat
Links:
Negation
editUsing 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.