Template:Google translation named: Difference between revisions
Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
No edit summary |
m (Undo revision 72326 by The Honorable (Talk) Testing incorrect line break.) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{url|}}}|{{#if:{{{code|}}}|[http://translate.google.com/translate?u={{urlencode:{{{url}}}}}&sl={{{code}}}&tl=en&hl=en&ie=UTF8 Google translation]}}}}</includeonly> | <includeonly>{{#if:{{{url|}}} | ||
|{{#if:{{{code|}}} | |||
<noinclude>{{documentation}}</noinclude> | |[http://translate.google.com/translate?u={{urlencode:{{{url}}}}}&sl={{{code}}}&tl=en&hl=en&ie=UTF8 Google translation] | ||
}} | |||
}}</includeonly><noinclude> | |||
{{documentation}} | |||
</noinclude> | |||
Latest revision as of 19:37, 18 August 2008
[edit]
Template documentation
This template is a metatemplate called by {{Google translation}} to strip white spaces, which is only possible with named parameters. Otherwise, white spaces would cause a link to break, because they would be considered part of the link.
Usage
If you prefer named parameters in your code, you can use this template instead of {{Google translation}}.
Syntax:
{{Google translation named|url=<text>|code=<text>}}
For details on the parameters and how the template works, see {{Google translation}}.