https://bugzilla.wikimedia.org/show_bug.cgi?id=56217
Web browser: ---
Bug ID: 56217
Summary: Scribunto: Title object namespace text should use
spaces rather than underscores
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Scribunto
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
The Lua code:
mw.title.new('Wikipedia talk:Articles for deletion').prefixedText
Gives the result:
"Wikipedia_talk:Articles for deletion"
Most users will be expecting spaces rather than underscores, as that is what is
normally used in wikilinks on Wikipedia. Using underscores also causes problems
if you try to test for equality between title.nsText and
mw.site.namespaces[namespace].name:
mw.title.new('Wikipedia talk:Articles for deletion').nsText -->
"Wikipedia_talk"
mw.site.namespaces['Wikipedia_talk'].name --> "Wikipedia talk"
Having these two commands produce different text seems counterintuitive to me.
I've posted a related issue at Bug 56216.
--
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l