Page MenuHomePhabricator

Editing "$wgNamespacesToBeSearchedDefault" at EO wiktionary
Closed, ResolvedPublic


We would like to edit the configuration file "$wgNamespacesToBeSearchedDefault" at EO wiktionary. Change needed:

remove all the obscure namespaces listed now ("File:", "Gadget-Talk:", ...) and add only following 2 instead: main (NS=0) and "Aldono:" (NS=102).

Local consensus not yet present but will be delivered if needed.$wgNamespacesToBeSearchedDefault

Event Timeline

Yeah consensus is really needed here. Other people may feel the present setting is OK?

DannyS712 changed the task status from Open to Stalled.Nov 9 2019, 9:28 AM

@Taylor: For future reference, see for information and actions required. And if you would like to make this configuration change yourself and edit some code, please see and give it a try.

I have sort of a consensus now (3 YES votes, one of them is mine after 5 days, started Nov-09):

About "information and actions required": is there something I had missed ?

About "give it a try": maybe I will ... but it looks complicated, I have a install GIT, acquire write access to it, ...

Taylor changed the task status from Stalled to Open.Nov 14 2019, 10:55 AM

Change 551793 had a related patch set uploaded (by MarcoAurelio; owner: MarcoAurelio):
[operations/mediawiki-config@master] Configure default search namespaces for eo.wikisource

Change 551793 merged by jenkins-bot:
[operations/mediawiki-config@master] Configure default search namespaces for eo.wikisource

Mentioned in SAL (#wikimedia-operations) [2019-11-19T18:09:02Z] <catrope@deploy1001> Synchronized wmf-config/InitialiseSettings.php: Configure default search namespaces for eowikisource (T237792) (duration: 00m 52s)

Done. I made a mistake in the commit message mentioning the change was for wikisource when in fact was for wiktionary; but the code is applied to eo.wiktionary as requested.

Thanks ... I see that the patch has already been applied and works. The namespace 102 has been added (the most important part of the request), the large amount of obscure namespaces (other than 0 and 102) have not been removed (the less important part).

Ammarpad reopened this task as Open.EditedNov 20 2019, 5:19 AM

@MarcoAurelio It appears this has not been fulfilled according to the request

Ok I am not sure; on search while logged out, only Aldono (ns:102) and "Cefa" (ns:0) are searched by default.

@ Taylor Do you mean, you want see this list of namespaces here to be hidden at all (apart from 102 and 0?

Screen Shot 2019-11-20 at 8.02.13 AM.png (703×829 px, 73 KB)

The patch is working as expected @Taylor - Special:Search is now configured to search on NS_MAIN and NS_102 as requested. You cannot remove from the search form the ability to search on other namespaces I'm afraid.

Rereading their comment, it seems that's what they want ... and yes it's not currently possible.

'''UPDATED''': Indeed now it works well if I AM NOT LOGGED IN ... only 0 and 102 are preselected. But when logged in still all namespaces are preselected. This does not happen on for example Swedish wiktionary. The request was not to completely remove the possibility to search in them, only to remove them from the preselection. And the patch added only 102 and did not remove the other ones. I don't know why they are preselected when I am logged in. No longer a major issue, but still strange.

When I go to Special:Search at eo.wiktionary while logged in I see:

Sin nombre.png (245×684 px, 26 KB)

I think this has to be something with your search preferences or the saved searches. Possible solutions:

  • In the "Search in" dropdown on Special:Search (cfr. image above), unfold it and see if "Default" is selected and if any other namespaces are selected too. Unselect them all, leave just "Default" and also click "Remember selection for future searches". Afterwards search something like "Foo bar" to save your new search settings.

I hope this is helpful. Regards.

FWIW, I see "Aldono", "(Main)", and "Kategorio" when logged in. As far as I recall, I have never selected namespaces to search on eo.wiktionary. But I could be wrong...

When not logged in, I see "Aldono" and "(Ĉefa)".

Edit: Oh, but I probably selected which namespaces to search in my preferences years ago, back when that was an option (now you just get to select the type of autocompletion you want and whether to suppress the advanced search interface). So, yeah... nevermind.

Sorry for the late answer. Indeed it works well and this "bug" can remain CLOSED.

See if in you have any custom

I had checked that place BEFORE whining here. No private search options were visible.

In the "Search in" dropdown on Special:Search (cfr. image above), unfold it and see


also click "Remember selection for future searches". Afterwards search something

Indeed those namespaces were hidden there. I must have activated them some centuries ago unaware that this would be so permanent. The search menu has changed the appearance several times (becoming more complicated and less useful) since but the "maximal search scope" remained.

Thanks again.