Template:Google Translations

From OLPC
Revision as of 14:56, 26 May 2007 by Xavi (talk | contribs) (tweak - finished?)
Jump to navigation Jump to search

Google /ar /de /es /fr /it /ja /ko /pt /ru /zh-CN


This template adds a series of automatic (machine) translation links to the including page. They use Google as the engine, and take English pages and translate it into:

Usage

In order to 'hide' some languages from the list (for example when there's a human translation available) you may specify for each language code "none" and will not be included.

{{ Google Translations
   | title =           <!-- OPTIONAL -- title (defaults to 'Google'; -->
   | ar = none     <!-- OPTIONAL -- hides link for arabic translation; -->
   | de = none     <!-- OPTIONAL -- hides link for german translation; -->
   | es = none     <!-- OPTIONAL -- hides link for spanish translation; -->
   | fr = none     <!-- OPTIONAL -- hides link for french translation; -->
   | it = none     <!-- OPTIONAL -- hides link for italian translation; -->
   | ja = none     <!-- OPTIONAL -- hides link for japanese translation; -->
   | ko = none     <!-- OPTIONAL -- hides link for korean translation; -->
   | ru = none     <!-- OPTIONAL -- hides link for russing translation; -->
   | zh-CN = none  <!-- OPTIONAL -- hides link for chinese (simplified) translation -->
}}

Sample

# all languages included
{{ Google Translations }}

Google /ar /de /es /fr /it /ja /ko /pt /ru /zh-CN

# all languages except ar (arabic), de (german) nor es (spanish)
{{ Google Translations | ar = none | de = none | es = none }}

Google /ar /de /es /fr /it /ja /ko /pt /ru /zh-CN

# all languages except fr (french), it (italian) nor ja (japanese)
{{ Google Translations | fr = none | it = none | ja = none }}

Google /ar /de /es /fr /it /ja /ko /pt /ru /zh-CN

# with title 'Via Google' and all languages except ko (korean), ru (russian) nor zh-CN (chinese simplified)
{{ Google Translations | title = Via Google | ko = none | ru = none | zh-CN = none }}

Via Google /ar /de /es /fr /it /ja /ko /pt /ru /zh-CN

# No 'title' and all languages except ar (arabic), fr (french) nor ko (korean)
{{ Google Translations | title =| ar = none | fr = none | ko = none }}

/ar /de /es /fr /it /ja /ko /pt /ru /zh-CN