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

--- Comment #4 from Conrad Irwin <[email protected]> 2010-04-08 18:09:34 
UTC ---
Not quite, though I appreciate the difference is confusing: FULLPAGENAMEE
validates its input for MediaWiki, urlencode does not. Perhaps "WIKI" was a
confusing choice of name, but this is really useful for other sites that use an
_ for encoding spaces (MediaWiki itself can understand |path}} encoding).

"{{urlencode:<b>|wiki}}" = "%3Cb%3E"
"{{FULLPAGENAMEE:<b>}}" = ""

"{{urlencode:&amp;|WIKI}}" = "%26amp;"
"{{FULLPAGENAMEE:&amp;}}" = "&"

Maybe, given that the difference is just how they encode spaces, it should be
|+}} |%}} and |_}} - but that seems a bit leet, and is inflexible if someone
wants to add other conventions.

It might also be nice to add a further flag for decoding HTML entities, and/or
%-escapes.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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

Reply via email to