If the user is editing a content namespace, the link dialog should search the current namespace first, then all other content namespaces, when looking for link targets.
Steps to reproduce
1. https://www.mediawiki.org/wiki/Manual:Page_table?veaction=edit
2. Write and select 'archive table'
3. Open link dialog
Expected results:
Link target 'manual:archive table' automatically found
Actual results:
Link target 'archive table' (new page) is automatically provided
The same is needed for Wikisource which has, e.g. an Author: content namespace.
Wikipedias with a content namespace listed in InitialiseSettings.php:
Arabic Wikipedia : bug 20623
https://ar.wikipedia.org/wiki/%D8%AE%D8%A7%D8%B5:%D9%81%D9%87%D8%B1%D8%B3_%D8%A8%D8%A7%D8%AF%D8%A6%D8%A9/%D9%85%D9%84%D8%AD%D9%82:
Spanish Wikipedia : bug 39866
https://es.wikipedia.org/wiki/Especial:P%C3%A1ginasPorPrefijo/Anexo:
North Frisian Wikipedia: bug 38023
(Wikisource inside Wikipedia)
Croatian Wikipedia: bug 40732
https://hr.wikipedia.org/wiki/Posebno:Prefiks_indeks/Dodatak:
Portuguese Wikipedia:
https://pt.wikipedia.org/wiki/Especial:%C3%8Dndice_por_prefixo/Anexo:
(and more potential ones listed at bug 39866)
As an aside, in 'Help' namespace, which isnt set as a content namespace, it would be nice to search within that namespace when linking, but that is a more blurry line.
--------------------------
**Version**: unspecified
**Severity**: enhancement