Hi Kenneth,
On 02/04/2009, Kenneth Porter shiva@sewingwitch.com wrote:
On Wednesday, April 01, 2009 9:49 PM +0200 Jean-Marc van Leerdam j.m.van.leerdam@gmail.com wrote:
The following did not work?:
{{Guildbox | name =  M A 
No, that definitely failed, passing the encoding string (not actual spaces) to the template.
I'll try to bake up a test template to see what's going on with the parameter.
It's the {{urlencode: }} that strips the leading and trailing spaces, according to the mediawiki help at meta [1].
I don't see how you fix that easily, so you may have to use a custom template to get your preferred URL displayed.
[1]: http://meta.wikimedia.org/wiki/Help:Parser_function#URLENCODE
--On Thursday, April 02, 2009 8:22 AM +0200 Jean-Marc van Leerdam j.m.van.leerdam@gmail.com wrote:
It's the {{urlencode: }} that strips the leading and trailing spaces, according to the mediawiki help at meta [1].
Thanks for researching that. I guess I could go look at the source for that and see what the reasoning for the stripping is. Perhaps it will hint at an alternate solution, or perhaps a variant of urlencode that doesn't strip.
mediawiki-l@lists.wikimedia.org