Jump to content

Template:Gtranslate: Difference between revisions

From Marxist Wiki
Created page with "<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>'..."
 
m Protected "Template:Gtranslate" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(No difference)

Latest revision as of 17:44, 14 March 2025

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)