https://bugzilla.wikimedia.org/show_bug.cgi?id=51308

--- Comment #6 from Krinkle <krinklem...@gmail.com> ---
(In reply to comment #1)
> It also kinda fails on all titles with a dot in it, due to themisguided "file
> extension" support it has…
> 
> >>> (new mw.Title( 'A.B' )).getNameText()
> "A"

This is imho irrelevant and expected behaviour. If you call #getNameText you're
explicitly asking to get the page title without any prefix it may have (which,
since extensions have little meaning in MediaWiki, can be in any namespace).

You're looking for mw.Title#getMainText  [1].



https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Title-method-getMainText

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to