Template:link language/doc

From WikiAlpha
< Template:Link language
Revision as of 08:47, 20 April 2017 by LuisAnton (Talk | contribs) (Created page with "{{lowercase}} {{High-risk|233,000+}} {{COinS_safe|n}} <noinclude>{{Documentation subpage}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> This template is us...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template is used to indicate to readers that an external link is in a foreign language.

It should generally be placed after the external link, although this is not set in stone; for more information, see the Manual of Style. English is the default language, and does not need to be noted using this template, unless there is a reason the reader would assume the link to be in a foreign language (e.g. a foreign title).

For citations, the |language= parameter of the various citation templates ({{cite web}}, {{cite news}}, {{cite journal}}, etc.) should be used instead.

Usage

{{link language|<language code>}}

Language codes: ISO 3166-1.

Example

Template:Tld produces: (French)

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for Link language

<templatedata>{

 "description": "Displays a language name based on an ISO code, often used after a foreign language reference following the manual of style.",
 "params": {
   "1": {
     "label": "language code",
     "description": "The ISO 639 language code, e.g. 'fr' for French",
     "type": "string",
     "required": true
   }
 }

}</templatedata>

See also