Template:link language/doc
From WikiAlpha
The below content is licensed according to Creative Commons Attribution-ShareAlike License contrary to the public domain logo at the foot of the page. It originally appeared on http://en.wikipedia.org. The original article might still be accessible here. You may be able to find a list of the article's previous contributors on the talk page. |
This template is used on 233,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
Notice | This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see COinS in Wikipedia. |
This is a documentation subpage for Template:Link language. It contains usage information, categories and other content that is not part of the original template page. |
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.
Contents
Usage
{{link language|<language code>}}
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
- Language icons in the form Template:Tld, descending from this one, are listed in Category:Language icon templates.
- Language codes cross-reference: list of ISO 639 codes.
- Template:Link language/Notes. This has documentation for the codes listed on Category:Language icon templates, which can be updated easily.
- {{ISO 639 name}}