Last modified: 2006-10-24 12:31:40 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 T9620, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7620 - Add {{urlencodenw:}} colon function
Add {{urlencodenw:}} colon function
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-18 08:59 UTC by Danny B.
Modified: 2006-10-24 12:31 UTC (History)
0 users

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


Attachments

Description Danny B. 2006-10-18 08:59:11 UTC
Since {{urlencode:}} & {{fullurl:}} do the encoding the way to comply MediaWiki
needs, there's a need for similar functions to do the "real" url encoding.

The difference is _ vs. + for space character.

{{urlencode:Lorem ipsum}} produces Lorem_ipsum
{{urlencodenw:Lorem ipsum}} should produce Lorem+ipsum
{{fullurlnw:}} should behave on the same principle

(I choose nw suffix like nowiki, but if you prefer another name, go for it...)

Thanks.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-10-19 02:07:47 UTC
Since fullurl is only relevant to MediaWiki sites, I can't see why it would need
a version for non-MediaWiki sites.
Comment 2 Danny B. 2006-10-19 17:09:23 UTC
(In reply to comment #1)

Oh, yes, you're right, of course. In fact I can't remember why I added it there. :-/

Anyway, the {{urlencodenw:}} is still needed though.

Changing the summary according to your suggestion.
Comment 3 Fyren 2006-10-24 12:28:40 UTC
{{urlencode:Lorem ipsum}} DOES produce Lorem+ipsum... so marking invalid.
Comment 4 Andrew Garrett 2006-10-24 12:31:19 UTC
Reopening to change to WORKSFORME
Comment 5 Andrew Garrett 2006-10-24 12:31:40 UTC
Reclosing as WORKSFORME

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


Navigation
Links