Hi,
2009/3/31 Kenneth Porter shiva@sewingwitch.com:
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.
You are using a mediawiki wiki? This works just fine for me:
-- start WIKI text-- =Template testing=
Here is a [{{SP}}] space?
Through a template this looks like: {{Test| }}
Template template: {{Test|{{SP}}}}
Total: {{Test|{{SP}}M{{SP}}A{{SP}}}} -- end WIKI text -- start Result Template testing
Here is a [ ] space?
Through a template this looks like: Hi there, how are [ ] you?
Template template: Hi there, how are [ ] you?
Total: Hi there, how are [ M A ] you? -- end Result
Template:SP contains a single line:   Template:Test contains a single line: Hi there, how are [{{{1}}}] you?
Actually, calling {{Test| }} also correctly renders the space, so it's probably not the template parameter passing part that is causing your problem but the template code that processes the parameter value. Do you have more details about the template you are trying to use?
2009/3/31 Jean-Marc van Leerdam j.m.van.leerdam@gmail.com:
Hi,
2009/3/31 Kenneth Porter shiva@sewingwitch.com:
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.
You are using a mediawiki wiki? This works just fine for me:
-- start WIKI text-- =Template testing=
Here is a [{{SP}}] space?
Through a template this looks like: {{Test| }}
Template template: {{Test|{{SP}}}}
Total: {{Test|{{SP}}M{{SP}}A{{SP}}}} -- end WIKI text -- start Result Template testing
Here is a [ ] space?
Through a template this looks like: Hi there, how are [ ] you?
Template template: Hi there, how are [ ] you?
Total: Hi there, how are [ M A ] you? -- end Result
Template:SP contains a single line:   Template:Test contains a single line: Hi there, how are [{{{1}}}] you?
-- Regards,
Jean-Marc
___ @@ // \ "De Chelonian Mobile" (_,/ _/ \ TortoiseSVN \ _/__/> The coolest Interface to (Sub)Version Control /_/ _\ http://tortoisesvn.net
--On Tuesday, March 31, 2009 11:42 PM +0200 Jean-Marc van Leerdam j.m.van.leerdam@gmail.com wrote:
Actually, calling {{Test| }} also correctly renders the space, so it's probably not the template parameter passing part that is causing your problem but the template code that processes the parameter value. Do you have more details about the template you are trying to use?
The wiki is a public wiki hosted by Wikia.
From http://www.wowwiki.com/Special:Version it looks like they're running
MediaWiki 1.13.4.
The template can be found here:
http://www.wowwiki.com/Template:Guildbox
Here's the content (the armory link at the bottom is the one I want to get working):
{{Talkpagedoc}} [[Category:Infobox templates|{{PAGENAME}}]]
<includeonly><onlyinclude>{{Iconbox |icon = {{{{{faction|Neutral}}} Icon}} |name = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} |body = {{#if:{{{image|}}}|<div style="text-align: center; padding: 5px 0">[[Image:{{{image}}}|200x300px|Image of {{{name}}}]]</div>}} {{{!}} style="background-color: transparent; width: 100%" {{#if:{{{name|}}}| {{!}} style="font-weight: bold; vertical-align: top;" {{!}} Name {{!}} {{{name}}} }} {{!}}- {{#if:{{{server|}}}| {{!}} style="font-weight: bold; vertical-align: top;" {{!}} Server {{!}} [[Server:{{{server}}} {{{location}}}|{{{server}}} {{{location}}}]] }} {{!}}- {{#if:{{{leader|}}}| {{!}} style="font-weight: bold; vertical-align: top;" {{!}} Guild Leader {{!}} {{{leader}}} }} {{!}}- {{#if:{{{co-gm|}}}| {{!}} style="font-weight: bold; vertical-align: top;" {{!}} Co-GM {{!}} {{{co-gm}}} }} {{!}}- {{#if:{{{officers|}}}| {{!}} style="font-weight: bold; vertical-align: top;" {{!}} Guild Officers {{!}} {{{officers}}} }} {{!}}- {{#if:{{{level|}}}| {{!}} style="font-weight: bold; vertical-align: top;" {{!}} Levels {{!}} {{{level}}} }} {{!}}- {{#if:{{{type|}}}| {{!}} style="font-weight: bold; vertical-align: top;" {{!}} Type {{!}} {{#ifexist:{{{type}}}|[[{{{type}}}]]{{#if:{{{doc|}}}||{{#switch:{{lc:{{{type|-}}}}}|pve=[[Category:PvE guilds]]|pvp=[[Category:PvP guilds]]|rp=[[Category:RP guilds]]|-=}}}}|{{{type}}}}} }} {{!}}- {{#if:{{{accounts|}}}| {{!}} style="font-weight: bold; vertical-align: top;" {{!}} Accounts {{!}} {{{accounts}}} }} {{!}}- {{#if:{{{web|}}}| {{!}} style="font-weight: bold; vertical-align: top;" {{!}} Website {{!}} [{{{web}}} {{{name}}} Website] }} {{!}}- {{#ifeq:{{{location}}}|US |{{!}} style="font-weight: bold; vertical-align: top;" {{!}} Armory {{!}} [http://www.wowarmory.com/guild-info.xml?r=%7B%7Burlencode:%7B%7B%7Bserver%7D... {{{name}}} Armory] |{{!}} style="font-weight: bold; vertical-align: top;" {{!}} Armory {{!}} [http://eu.wowarmory.com/guild-info.xml?r=%7B%7Burlencode:%7B%7B%7Bserver%7D%... {{{name}}} Armory] }} {{!}}} }}{{#if:{{{doc|}}}||{{#switch:{{lc:{{{faction|-}}}}}|horde=[[Category:Horde guilds]]|alliance=[[Category:Alliance guilds]]|-=}}}}</onlyinclude></includeonly>
mediawiki-l@lists.wikimedia.org