[Mediawiki-l] Can I use ampersand and question sign in parameter of template?

Tels nospam-abuse at bloodgate.com
Sun Feb 19 19:36:30 UTC 2006


Moin,

On Sunday 19 February 2006 19:58, Iliya Kuznetsov wrote:
> Hello.
>
> I use MW 1.5.6
>
> My template AAA contains only:
>
> == {{{1}}}   {{{2}}} {{{3}}} ==
> {{{4}}}<br/>
> {{{5}}}
>
> After using {{AAA|1|2|3|[http://com.com]|5}} I got right answer, but
> after {{AAA|1|2|3|[http://com.com?action=edit&action=talk wwwwww]|5}}
> got:
>
> == 1 2 3 ==
> 5<br/>
> {{{5}}}
>
> Why I wrong? What should I use for getting:
>
> == 1 2 3 ==
> [http://com.com?action=edit&action=talk wwwwww]<br/>
> 5

That sounds like a bug. If your param 4 is always an URL, you can work 
around that like so:


== {{{1}}}   {{{2}}} {{{3}}} ==
[{{{4}}}]<br/>
{{{5}}}

And use it

{{AAA|1|2|3|http://com.com|5}}
{{AAA|1|2|3|http://com.com test|5}}

Hope this helps,

Tels

-- 
 Signed on Sun Feb 19 20:35:30 2006 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 This email violates U.S. patent #5,546,528 and EU patent EP0689133:
 
   ________________________________________
   | Header | Body | Attachements |	  |
   |--------+	   +----------------------|
   |					  |
   ~					  ~

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20060219/c9b7b1d8/attachment.pgp 


More information about the MediaWiki-l mailing list