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
- https://www.mediawiki.org/wiki/Manual:Page_table?veaction=edit
- Write and select 'archive table'
- 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 : T22623
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 : T41866
https://es.wikipedia.org/wiki/Especial:P%C3%A1ginasPorPrefijo/Anexo:
North Frisian Wikipedia: T40023
(Wikisource inside Wikipedia)
Croatian Wikipedia: T42732
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 T41866)
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
See Also:
T71780: If there is a page with the exact name, it should appear first in the link auto-complete list
T57390: VisualEditor: The link suggestor should suggest links from the current namespace ahead of named links
T64917: Give exact match when looking for a specific file
T71716: Search results (for links, redirects, categories…) should select the exact match by default