Permanently protected template

Template:link language

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

(in {{ISO 639 name {{{1}}}}})

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

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

The language code is usually an ISO 639 code, but it may be any code for which an {{ISO 639 name}} template has been created; see Category:ISO 639 name from code templates (1,098).

Note that language codes do not always coincide with country codes; see the list of ISO 3166-1 codes.

Examples

ISO 639-1 code for French:

  • Usage: {{link language|fr}}
  • Output: (in French)
  • The language name is defined in {{ISO 639 name fr}}: French

ISO 639-2 and ISO 639-3 code for Asturian:

  • Usage: {{link language|ast}}
  • Output: (in Asturian)
  • The language name is defined in {{ISO 639 name ast}}: Asturian

User-defined CSS

Logged in users can change the appearance of the template's output using CSS with the languageicon class. For example, edit Special:MyPage/common.css and add span.languageicon { font-weight: bold; }. That would result in {{link language|fr}} being displayed as (in French) instead of (in 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

Displays a language name based on an ISO 639 code, often used after a foreign language reference following the manual of style.

Template parameters

Parameter Description Type Status
language code 1

The ISO 639 language code, e.g. 'fr' for French

Default
empty
Example
empty
Auto value
empty
String required

See also

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Link_language&oldid=788232056"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Template:Link_language
This page is based on the copyrighted Wikipedia article "Template:link language"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA