Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Gtranslate: Difference between revisions

Template page
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{{1}}}<sup>([https://translate.google.com/translate?sl=auto&tl=en&u={{{1}}} Google translate], {{#if:{{{2}}}|from {{{2}}}}})</sup>
<includeonly>{{#if:{{{3|}}}|[{{{1}}} {{{3}}}]|{{{1}}}}}<sup>([https://translate.google.com/translate?sl=auto&tl=en&u={{{1}}} Google translate]{{#if:{{{2|}}}|, from {{{2}}}}})</sup></includeonly><noinclude>
<blockquote class="toccolours" style="padding:50px"><div style="font-size:200%">Usage:</div><br>
*<nowiki>{{gtranslate|link|language of origin|caption of link}}</nowiki><br><br>
i.e.<br><br>
'''<nowiki>{{gtranslate|https://pcb.org.br/|Portuguese|PCB website}}</nowiki>'''<br>
Produces:<br>
{{gtranslate|https://pcb.org.br/|Portuguese|PCB website}}<br><br>
Note that the last two parameters are optional:<br>
'''<nowiki>{{gtranslate|https://pcb.org.br/}}</nowiki>''', producing:<br>
{{gtranslate|https://pcb.org.br/}}
 
To put the caption in the link, but not its language of origin, you'll have to do this:<br>
'''<nowiki>{{gtranslate|https://pcb.org.br/|3=PCB website}}</nowiki>''', producing:<br>
{{gtranslate|https://pcb.org.br/|3=PCB website}}
</blockquote>
</noinclude>

Latest revision as of 13:11, 25 November 2020

Usage:


  • {{gtranslate|link|language of origin|caption of link}}

i.e.

{{gtranslate|https://pcb.org.br/|Portuguese|PCB website}}
Produces:
PCB website(Google translate, from Portuguese)

Note that the last two parameters are optional:
{{gtranslate|https://pcb.org.br/}}, producing:
https://pcb.org.br/(Google translate)

To put the caption in the link, but not its language of origin, you'll have to do this:
{{gtranslate|https://pcb.org.br/|3=PCB website}}, producing:
PCB website(Google translate)