Template:Google Translations

From OLPC
Revision as of 15:13, 26 May 2007 by Xavi (talk | contribs) (finished tweaking)
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; -->
   | pt = none     <!-- OPTIONAL -- hides link for portuguese 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), es (spanish), fr (french) nor it (italian)
{{ Google Translations | ar = none | de = none | es = none | fr = none | it = none }}

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

# all languages except ja (japanese), ko (korean), pt (portuguese), ru (russian) nor zh-CN (chinese simplified)
{{ Google Translations | ja = none | ko = none | pt = none | ru = none | zh-CN = none }}

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

# with title 'Automatic translations:' and all languages included 
{{ Google Translations | title = Automatic translations: }}

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

# No 'title' and all languages included
{{ Google Translations | title =}}

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