Template:Google translation named/doc: Difference between revisions
Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
(New page: {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This template is a metatemplate called by {{tl|Google translation}} to strip white space...) |
No edit summary |
||
| Line 4: | Line 4: | ||
This template is a metatemplate called by {{tl|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. | This template is a metatemplate called by {{tl|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 articles, you can use this template instead of {{tl|Google translation}}. | |||
Syntax: | |||
<nowiki>{{Google translation named|</nowiki>url=''<text>''|code=''<text>''<nowiki>}}</nowiki> | |||
For details on the parameters and how {{tl|Google translation}} works, see [[Template:Google translation/doc]] | |||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:{{SITENAME}} metatemplates|{{PAGENAME}}]] | [[Category:{{SITENAME}} metatemplates|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> | ||
Revision as of 12:21, 5 June 2008
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 articles, you can use this template instead of {{Google translation}}.
Syntax:
{{Google translation named|url=<text>|code=<text>}}
For details on the parameters and how {{Google translation}} works, see Template:Google translation/doc