Template talk:Google translation/doc#I cannot get the old example to work

{{talkheader}}

I cannot get the old example to work

The document page for {{Tl|Google translation}} showed an example which does not appear to actually work:

Example : {{Google translation|en|zh-CN|http://www.changdu.gov.cn/pic_list.php?id=2050}} gives

[http://translate.google.com/translate?hl=en&sl=zh-CN&u=http://www.changdu.gov.cn/pic_list.php?id=2050&sa=X&oi=translate&resnum=1&ct=result Google translation]

The example cheats by not actually using {{Tl|Google translation}} to display the link. When I tried using the template code in a table of examples I'm editing for Template:Google translation/doc, the example did not work. Here it is:

  • {{Google translation|en|zh-CN|http://www.changdu.gov.cn/pic_list.php?id=2050}}

By playing around a bit, I found that the template tries to work if I remove the "?" character from the URL of the page to translate, but then we are not translating the page at the original URL:

  • {{Google translation|en|zh-CN|http://www.changdu.gov.cn/pic_list.php}}

I tried adding a {{urlencode: }} around the URL argument in the template, but that made no difference so I removed my change. Since I cannot see how to get the example to work, I did not use it in the table of examples I'm editing for Template:Google translation/doc. --Teratornis (talk) 04:03, 5 March 2008 (UTC)

:I know this is an old question, but try specifying the "3" parameter explicitly, i.e.,

::{{Google translation|en|zh-CN|3=http://www.changdu.gov.cn/pic_list.php?id=2050}}

:which results in

::{{Google translation|en|zh-CN|3=http://www.changdu.gov.cn/pic_list.php?id=2050}}. TJRC (talk) 01:05, 9 February 2010 (UTC)