Page MenuHomePhabricator

Add {{urlencodenw:}} colon function
Closed, DeclinedPublic

Description

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.


Version: unspecified
Severity: enhancement

Details

Reference
bz7620

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:22 PM
bzimport set Reference to bz7620.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

Since fullurl is only relevant to MediaWiki sites, I can't see why it would need
a version for non-MediaWiki sites.

(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.

fyrenmoo wrote:

{{urlencode:Lorem ipsum}} DOES produce Lorem+ipsum... so marking invalid.

Reopening to change to WORKSFORME