Template:Google Translations: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (tweaking trying to hide some languages)
m (tweaking)
Line 1: Line 1:
Google<span class="plainlinks">
Google<span class="plainlinks">
<span display:{{{ar|inline}}}>/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Car&hl=en&ie=UTF-8&oe=UTF-8 ar]</span>
<span display="{{{ar|inline}}}">/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Car&hl=en&ie=UTF-8&oe=UTF-8 ar]</span>
<span display:{{{de|inline}}}>/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cde&hl=en&ie=UTF-8&oe=UTF-8 de]</span>
<span display="{{{de|inline}}}">/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cde&hl=en&ie=UTF-8&oe=UTF-8 de]</span>
<span display:{{{es|inline}}}>/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ces&hl=en&ie=UTF-8&oe=UTF-8 es]</span>
<span display="{{{es|inline}}}">/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Ces&hl=en&ie=UTF-8&oe=UTF-8 es]</span>
<span display:{{{fr|inline}}}>/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfr&hl=en&ie=UTF-8&oe=UTF-8 fr]</span>
<span display="{{{fr|inline}}}">/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cfr&hl=en&ie=UTF-8&oe=UTF-8 fr]</span>
<span display:{{{it|inline}}}>/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cit&hl=en&ie=UTF-8&oe=UTF-8 it]</span>
<span display="{{{it|inline}}}">/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cit&hl=en&ie=UTF-8&oe=UTF-8 it]</span>
<span display:{{{ja|inline}}}>/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cja&hl=en&ie=UTF-8&oe=UTF-8 ja]</span>
<span display="{{{ja|inline}}}">/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cja&hl=en&ie=UTF-8&oe=UTF-8 ja]</span>
<span display:{{{ko|inline}}}>/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cko&hl=en&ie=UTF-8&oe=UTF-8 ko]</span>
<span display="{{{ko|inline}}}">/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cko&hl=en&ie=UTF-8&oe=UTF-8 ko]</span>
<span display:{{{pt|inline}}}>/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cpt&hl=en&ie=UTF-8&oe=UTF-8 pt]</span>
<span display="{{{pt|inline}}}">/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cpt&hl=en&ie=UTF-8&oe=UTF-8 pt]</span>
<span display:{{{ru|inline}}}>/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cru&hl=en&ie=UTF-8&oe=UTF-8 ru]</span>
<span display="{{{ru|inline}}}">/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Cru&hl=en&ie=UTF-8&oe=UTF-8 ru]</span>
<span display:{{{zh-CN|inline}}}>/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Czh-CN&hl=en&ie=UTF-8&oe=UTF-8 zh-CN]</span><noinclude>
<span display="{{{zh-CN|inline}}}">/[http://translate.google.com/translate?u={{fullurl:{{FULLPAGENAME}}}}&langpair=en%7Czh-CN&hl=en&ie=UTF-8&oe=UTF-8 zh-CN]</span><noinclude>


----
----
Line 29: Line 29:


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



Revision as of 14:34, 26 May 2007

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
   | 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

{{ Google Translations }}           # all languages included

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

{{ Google Translations | ar = none }}           # all languages included except ar (arabic)

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

{{ Google Translations | de = none | es = none }}           # all languages included except german and spanish

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