Hi,
2009/3/31 Kenneth Porter shiva@sewingwitch.com:
I want to pass an argument to a template that contains a leading and trailing space. It looks like the template parser is stripping these before evaluating the parameter. Is there a way to prevent that?
Here's an example page:
http://www.wowwiki.com/Guild:M_A_%28Bleeding_Hollow_US%29
I want to pass " M A " to the Guildbox template's name parameter. It will get expanded into a string to render in an off-site URL. Currently it gets rendered as "M+A", not "+M+A+", so the URL doesn't connect to the desired page.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Try using HTML escaped spaces:  
HTH
On Tuesday, March 31, 2009 8:43 PM +0200 Jean-Marc van Leerdam j.m.van.leerdam@gmail.com wrote:
Try using HTML escaped spaces:  
The resulting URL expanded to " M+A " and then got HTTP encoded to "%26%2332%3BM+A%26%2332%3B".
HTTP encoding has a similar problem. I also tried to quote the parameter and, while the spaces then make it in, the quotes also get included in the result, not what I want.
mediawiki-l@lists.wikimedia.org