[Mediawiki-l] urlencode template parameters

kent sin kentsin at gmail.com
Thu Jun 22 00:57:58 UTC 2006


Dear all,

Trying to use a template to convert a title to search for local opac,
I have make a template:

Template:Title

  [http://urltoopacsearch/{{{1}}} {{{1}}}]

The call of the template is like this:

  {{title|This is the title}}

However, the result is not very well: the space inside the title split
the url part and the display was incorrect.

I try many ways to encode the parameter in urlencode, but none
succeed. Some search point me to a bug report which state urlencode is
already in cvs, I install the newest release from mediawiki, but it
still not seems to work.

Could somebody help me on this?

Thank you.

-- 
Sin Hang Kin.



More information about the MediaWiki-l mailing list