Difference between revisions of "Template:Import"

From blackwiki
Jump to navigation Jump to search
imported>Impsswoon
imported>Elegie
(Use HTTPS for the Google Translate link and have Google Translate retrieve the article to be translated via an HTTPS URL)
Line 6: Line 6:
 
}}<br />
 
}}<br />
 
{{#switch: {{Lang2iso|{{{1|}}}}} <!--all languages with google translate-->|af |ar |az |be |bg |bn |ca |cs |cy |da |de |el |en |eo |es |et |eu |fa |fi |fr |ga |gl |gu |he |hi |hr |ht |hu |hy |id |is |it |ja |ka |kn |ko |la |lt |lv| mk |ml |mt |nl |no |pl |pt |ro |ru |sh |sk |sl |sq |sr |sv |sw |ta |te |th |tl |tr |uk |ur |vi |yi |zh =  
 
{{#switch: {{Lang2iso|{{{1|}}}}} <!--all languages with google translate-->|af |ar |az |be |bg |bn |ca |cs |cy |da |de |el |en |eo |es |et |eu |fa |fi |fr |ga |gl |gu |he |hi |hr |ht |hu |hy |id |is |it |ja |ka |kn |ko |la |lt |lv| mk |ml |mt |nl |no |pl |pt |ro |ru |sh |sk |sl |sq |sr |sv |sw |ta |te |th |tl |tr |uk |ur |vi |yi |zh =  
{{#if:{{{article|}}}|Don't speak {{{1|}}}? Click [http://translate.google.com/translate?&u=http%3A%2F%2F{{Lang2iso|{{{1|}}}}}.wikipedia.org%2Fwiki%2F{{urlencode:{{{article}}}}}&sl={{{googlelangcode|{{Lang2iso|{{{1|}}}}}}}}&tl=en here] to read a machine-translated version of the {{{1|}}} article.|}}|#default =  }}
+
{{#if:{{{article|}}}|Don't speak {{{1|}}}? Click [https://translate.google.com/translate?&u=https%3A%2F%2F{{Lang2iso|{{{1|}}}}}.wikipedia.org%2Fwiki%2F{{urlencode:{{{article}}}}}&sl={{{googlelangcode|{{Lang2iso|{{{1|}}}}}}}}&tl=en here] to read a machine-translated version of the {{{1|}}} article.|}}|#default =  }}
 
{{hidden
 
{{hidden
 
| 1 = Click [show] on the right to review important translation instructions before translating.
 
| 1 = Click [show] on the right to review important translation instructions before translating.

Revision as of 09:58, 12 June 2017

Template documentation[view] [edit] [history] [purge]

Background

This template is used to mark articles that are better in a foreign-language Wikipedia than in English Wikipedia, and thus should be translated from that language into English.

Usage

To mark an article, tag it with {{Import|language}}.

For example, {{Import|French}} generates:

A bot will be along shortly to add the correct interwiki link to the template, which will also add a Google translation link if Google is able to translate the relevant language. If you'd like to speed the process up, you can tag the article with {{Translate|language|article=articletitle}} instead. After the article parameter is added, the template will look like:

This template places articles in the relevant subcategory of Category:Articles needing translation from foreign-language Wikipedias.

Optional parameters

FA marking

Foreign language featured articles can be marked using fa=yes, as in {{Import|French|fa=yes}}.

Topic sorting

For languages with over 200 translation requests (currently Chinese, Czech, Danish, Dutch, Finnish, French, German, Hungarian, Italian, Japanese, Lithuanian, Polish, Portuguese, Russian, Spanish, Swedish), the topic= parameter may be used to sort into a variety of standard categories:

  • topic=bio → Biography
  • topic=geo → Geography
  • topic=gov → Government and politics
  • topic=culture → Culture
  • topic=hist → History
  • topic=sci → Science and technology
  • topic=sport → Sports
  • topic=transport → Transport
  • topic=struct → Building and structure

Custom categories may also be added on a per-language basis as needed.

See also