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

Jean-Marc van Leerdam j.m.van.leerdam at gmail.com
Tue Mar 31 18:43:37 UTC 2009


Hi,

2009/3/31 Kenneth Porter <shiva at 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 at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>

Try using HTML escaped spaces: &#32;

HTH

-- 
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