Last modified: 2009-08-02 18:17:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T14920, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 12920 - add URL-friendly function as a complement of {{ns:namespace}}
add URL-friendly function as a complement of {{ns:namespace}}
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.12.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://meta.wikimedia.org/wiki/Help:P...
: easy, need-parsertest
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-05 12:28 UTC by Anon Sricharoenchai
Modified: 2009-08-02 18:17 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Anon Sricharoenchai 2008-02-05 12:28:18 UTC
Should add a new function {{nss:namespace name}}, so that,
{{nss:user_talk}} will yield "User_talk" (the URL-friendly percent encoded like {{NAMESPACEE}}, especially, when the namespace name is in UTF-8)

According to its complement function,
then {{ns:user_talk}} should yield "User talk" (rather than "User_talk").
Comment 1 Danny B. 2008-02-05 13:38:22 UTC
Suggesting {{nse:...}} since -e suffix is used to mark _e_ncoded.
Comment 2 Anon Sricharoenchai 2008-02-05 14:49:50 UTC
I prefer {{ns:user_talk}} to be "User talk" (no underscore),
so {{nse:...}} is introduced for the case that underscore is really needed.

Another reason for this is that, the current behavior of {{ns:...}} is inconsistent with either {{NAMESPACE}} or {{NAMESPACEE}}.
Since,
* {{NAMESPACE}}: no underscore, no % encoded
* {{NAMESPACEE}}: has underscore, has % encoded
while,
* {{ns:...}}: has underscore, but no % encoded
so, theoretically, {{ns:...}} cannot be used in the either the context that {{NAMESPACE}} or {{NAMESPACEE}} can be used.
Comment 3 Anon Sricharoenchai 2008-02-05 14:59:51 UTC
So, theoretically, {{ns:...}} cannot be used in either the context that {{NAMESPACE}} or {{NAMESPACEE}} can be used.

(fix typo in previous comment)
Comment 4 Church of emacs 2009-08-02 18:17:31 UTC
Done in r54220

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links