Template:Machine translate/doc

From blackwiki
< Template:Machine translate
Revision as of 19:33, 20 August 2016 by imported>SMcCandlish (doc update, clarification; replaced bad example (incorrectly gave title of site not of article as "title" parameter value); giving more examples; clarifications)
Jump to navigation Jump to search

Usage

Note: The lang and dlang parameters should be ISO 639-1 codes.

Required parameters

  • lang or 1 (or first unnamed, positional parameter): The source language's ISO 639-1 code.
  • url: URL of online item. Start the url with the communications protocol, e.g. http://.

Optional parameters

  • title: Title of specific online work being cited. This title will appear as the citation itself, hyperlinked to the URL. Quotation marks or italics (as appropriate for the source type, e.g. an article versus a book – see MOS:TITLES) must be manually included in the value you supply here. This parameter's content will not be displayed if |nolink=, below, is used.
  • nolink: If set to any non-empty value (e.g. nolink=y), the link to the URL will not be included (or will the value of |title=, if present). This can be used e.g. after a {{Cite web}} link.
  • dlang: The destination language's ISO 639-1 code, default en (English). This is not normally used on English Wikipedia, though it might have some application on talk pages, e.g. in discussion of translating an en.wiki page to another-language Wikipedia.

Examples

The code:

{{machine translate |lang=de |url=https://link.springer.com/article/10.1007/s00115-002-1345-9&}}

or simply:

{{machine translate |de |url=https://link.springer.com/article/10.1007/s00115-002-1345-9&}}

gives:
[1] (in German) (Translate: Google, Bing)


The code:

{{machine translate |de |url=https://link.springer.com/article/10.1007/s00115-002-1345-9 |title="Transthyretinassoziierte hereditäre Amyloidosen"}} 

gives:
"Transthyretinassoziierte hereditäre Amyloidosen" (in German) (Translate: Google, Bing)


The code:

{{machine translate |de |url=https://link.springer.com/article/10.1007/s00115-002-1345-9 |nolink=y}} 

gives:
(in German) (Translate: Google, Bing)

See also