Topic on Extension talk:InputBox

Jump to navigation Jump to search

How to select single namespace to search in

Erutuon (talkcontribs)

In Category:Wiktionary-namespace discussion pages on the English Wiktionary, I want to have the inputbox search only in the Wiktionary (Project) namespace, to override user preferences (because I didn't have the Wiktionary namespace selected and saw no results!) and maybe save server resources.

Adding searchfilter=Wiktionary: ... doesn't work, because the filter is placed at the end of the search query (that is, if you enter blah in the box, you get the query blah Wiktionary: ...) and then the namespace filter doesn't work. Adding namespaces=Wiktionary works, but it adds whitespace (a <br> tag) between the textbox and the button; maybe the extension tries to create checkboxes and fails because there's only one namespace.

Any non-buggy way to choose one namespace to search in?

Quiddity (WMF) (talkcontribs)

I believe the prefix=Wiktionary: parameter will give the same result as the namespaces=Wiktionary parameter.

Erutuon (talkcontribs)

Oh yes, that works. Thanks!

Reply to "How to select single namespace to search in"