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

Jean-Marc van Leerdam j.m.van.leerdam at gmail.com
Wed Apr 1 19:49:04 UTC 2009


Hi,

> [http://eu.wowarmory.com/guild-info.xml?r={{urlencode:{{{server}}}}}&n={{urlencode:{{{name}}}}}&p=1
> {{{name}}} Armory] }}

You first have to find out if the {{{name}}} actually contains the
leading and trailing space. If it does, then the urlencode is your
problem, otherwise the problem lies in passing leading/trailing spaces
to named template parameters.

The following did not work?:

{{Guildbox
 | name =   M A 
 | server = Bleeding Hollow
 | location = US
 | image =
 | leader = Deadhead {{RaceIcon|Human|Male|Small}}{{ClassIcon|Priest|Small}}
 | level = 1-80
 | type = PvP
 | faction = Alliance
 | accounts = 256
 | web = http://www.ma-wow.com/
 }}


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