follows the change on T432111: Show error when the entered title is invalid
Steps to reproduce problem
- https://test.wikipedia.org/wiki/Special:NewArticle?newarticletitle=KHK2017_165
- Select the first option
- In this case, you are shown a suggestion of KHK2017 165 (Astronomical object)
Environment
Wiki(s): https://test.wikipedia.org ArticleGuidance – (6e031c0) 12:37, 9 July 2026.
Screenshots
Design
It's due to the fact that we treat a Wikidata label and a Wikipedia page title as the same string.
They pick a subject whose Wikidata label is illegal
Direct Special:NewArticle still adopts the Wikidata label when it differs from what they typed. Keep that rule, but only adopt a legal label: strip # < > [ ] { } |. (DEV: T436341#12270300, use mw.Title instead)
- Type KHK2017, pick [KHK2017] 369 → page title is KHK2017 369 (keep the number; drop the brackets).
- Type KHK2017 369, pick [KHK2017] 369 → title stays KHK2017 369 (cleaned label matches typed).
- Do not send an illegal string to the “does this title exist?” check. invalid from the API is not “exists.”
- After pick, use the normal next step (subject already here, real title conflict, notability, or sources).










