Last modified: 2009-02-28 18:58:21 UTC
Sometimes we get parameter containing space character in their value. For example: MediaWiki:Sp-contributions-footer using $1 for the user name when this user name contain a space character. When this value need to be in an external link, there is no possibility to create the correct link : - using the wiki syntax [ ] the link is broken at the first space character - using the HTML a tag is not possible (displayed as raw text)
Use %20 like http://en.wikipedia.org/wiki/Wikimedia%20Foundation
It's not about literal links, but using $1 : example: [http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user=$1&dbname=frwikibooks_p Statistiques détaillées] where $1 is replaced by MediaWiki with the username, and this username contains a space character
There should be a URL-encoding parser function for this purpose, either {{urlencode}} or {{#urlencode}} (can't remember which).
I already tried {{urlencode:$1}} -> %241 and some other solutions, all failed. See the history of MediaWiki:Sp-contributions-footer [http://fr.wikibooks.org/w/index.php?title=MediaWiki:Sp-contributions-footer&action=history]
Fixed by tim in r31044.