[Mediawiki-l] Leading or trailing spaces in template parameters

Jean-Marc van Leerdam j.m.van.leerdam at gmail.com
Thu Apr 2 05:22:03 UTC 2009


Hi Kenneth,

On 02/04/2009, Kenneth Porter <shiva at sewingwitch.com> wrote:
> On Wednesday, April 01, 2009 9:49 PM +0200 Jean-Marc van Leerdam
> <j.m.van.leerdam at gmail.com> wrote:
>
>> The following did not work?:
>>
>> {{Guildbox
>>  | name =  &#32;M A&#32;
>
> 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
-- 
Regards,

Jean-Marc
--
       ___
  @@  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net



More information about the MediaWiki-l mailing list