Help:Extension:WikibaseCirrusSearch

WikibaseCirrusSearch is an  on top of , which enables some capabilities that are relevant for Wikibase.

Below are described keywords and capabilities unique to this extension.

Please see  for the rest of the syntax

haswbstatement
Returns the items that have specific value in statement with specific property.

The search is case-insensitive.

For example, for item with value of  in property  use:   and for item with value "113230702" in property  use <tvar|6> </>.

You can also make queries without a specified value, e.g. for all items with property <tvar|1></> (in main value) use <tvar|2> </>.

You can even leave out the property as well, and use <tvar|1> </> to search for pages with any statement at all.

To search for items that do not have a certain statement, add an <tvar|1>“exclude”</> modifier, for example <tvar|2> </>.

<tvar|1> </> will find items with no <tvar|2></> statement.

Statements with qualifiers can also be searched for by adding a qualifier statement in square brackets.

For example, to search for items that a  you can use <tvar|3> </> - and to further specify that the cat must have the   you can use <tvar|6> </>.

A wildcard can also be used when specifying qualifiers - to find all items that depict a cat of any color use <tvar|1> </>.

Statement searches can be combined using logical OR by using a pipe character e.g. <tvar|1> </> will find all items that depict a cat OR a dog.

Statements can be combined using logical AND by using two separate  queries, e.g. <tvar|1> </> will find all items that depict both a cat AND a dog.

On wikidata this currently works for all properties with <tvar|1>"external identifier"</>, <tvar|2>"string"</>, <tvar|3>"item"</>, <tvar|4>"property"</>, <tvar|5>"lexeme"</>, <tvar|6>"form"</> and <tvar|7>"sense"</> datatypes, except and, which are currently omitted for performance reasons.

inlabel/incaption
Allows the user to search for pages that have wikibase labels, optionally in user specified languages.

Example: <tvar|1> </> looks for items that have the word <tvar|2>"duck"</> in their English labels.

More than one language can be specified, separated by commas: </>.

If you append * to the language name, fallbacks to this language will also be searched.

If you append +, then 'en' (English) will be excluded from fallbacks: <tvar|1> </> searches for word <tvar|2>"gift"</> in language "de-at" and its fallback chain, not including English.

Language of <tvar|1>" "</> searches all labels using language-insensitive match (labels_all field) - it can only be specified on its own, not in combination with other languages.

Not specifying the language - <tvar|1> </> or <tvar|2> </> - will also search all labels.

If you need to search string with spaces, use quotes: <tvar|1> </>.

<tvar|1> </>is the alias for <tvar|2> </> and they work identically.

wbstatementquantity
Allows the user to search for pages/items that have wikibase statements associated with them, and specify quantities of those statements.

If an item has the statement <tvar|1> </> with the qualifier <tvar|2> </> (meaning "depicts human, quantity 5" in Wikidata), then it can be found using any of the following search queries: wbstatementquantity:P180=Q5<6 wbstatementquantity:P180=Q5<=5 wbstatementquantity:P180=Q5>=5 wbstatementquantity:P180=Q5>4 wbstatementquantity:P180=Q5=5

Statements can be combined using logical OR by separating them using a pipe, e.g. <tvar|1> </>.

Statements can be combined using logical AND by using two separate <tvar|1> </> queries, e.g. <tvar|2> </> (a range search) or <tvar|3> </>

Note that not all statements are indexed.

Searching for a statement about a property that has not been indexed will give an empty result.

hasdescription
Returns Wikibase items which have a description populated in the specified language.

For example, to search for items with a description in Japanese, use <tvar|1> .</>

Supports providing multiple language codes to support a search for items with a description in language X OR Y.

For example, <tvar|1> </> will return items with a description in Italian OR Hungarian.

It can also be used multiple times to impose multiple requirements on returned results.

For example, <tvar|1> </> will return items with descriptions in English AND German, and <tvar|2> </> will return items with a description in Spanish and without a description in French.

haslabel/hascaption
Same as <tvar|1> </>, but for labels (also known informally as captions).

<tvar|1> </> is provided as an alias, as with <tvar|2> </> above.