Template:Google translation named/doc: Difference between revisions
Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
== Usage == | == Usage == | ||
If you prefer named parameters in your | If you prefer named parameters in your code, you can use this template instead of {{tl|Google translation}}. | ||
Syntax: | Syntax: | ||
| Line 11: | Line 11: | ||
<nowiki>{{Google translation named|</nowiki>url=''<text>''|code=''<text>''<nowiki>}}</nowiki> | <nowiki>{{Google translation named|</nowiki>url=''<text>''|code=''<text>''<nowiki>}}</nowiki> | ||
For details on the parameters and how {{tl|Google translation}} | For details on the parameters and how the template works, see {{tl|Google translation}}. | ||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:{{SITENAME}} metatemplates|{{PAGENAME}}]] | [[Category:{{SITENAME}} metatemplates|{{PAGENAME}}]] | ||
[[Category:Language templates]] | |||
[[Category:External link templates|{{PAGENAME}}]] | |||
[[Category:Typing-aid templates|{{PAGENAME}}]] | |||
</includeonly> | </includeonly> | ||
Revision as of 12:33, 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 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}}.