Template:Gtranslate: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
{{{1}}}<sup>([https://translate.google.com/translate?sl=auto&tl=en&u={{{1}}} Google translate], {{#if:{{{2}}}|from {{{2}}}}})</sup>
{{#if:{{{3|}}}|[{{{1}}} {{{3}}}]|{{{1}}}}}<sup>([https://translate.google.com/translate?sl=auto&tl=en&u={{{1}}} Google translate]{{#if:{{{2|}}}|, from {{{2}}}}})</sup>
 
<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>

Revision as of 11:34, 25 November 2020

{{{1}}}(Google translate)

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)