සැකිල්ල:Link language
(ඉංග්රීසි බසින්)
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. |
Citation Style 1 සහCitation Style 2 වැනි උපහරණ සැකිලි වල මෙම සැකිල්ල භාවිතා නොකල යුතු වන්නේ, එය විසින් නිපැයෙන COinS පාරදත්ත දූෂණය කරන සලකුණු බස එය තුල අඩංගු වන බැවිනි; විකිපීඩියාව තුල COinS බලන්න. |
මෙම සැකිල්ල ලුවා භාවිතා කරයි: |
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 valid IETF language tag.
Note that language codes do not always coincide with country codes; see the list of ISO 3166-1 codes.
Examples
සංස්කරණය- Usage: {{link language|fr}}
- Output: (ප්රංශ බසින්)
ISO 639-2 and ISO 639-3 code for Asturian:
- Usage: {{link language|ast}}
- Output: (Asturian බසින්)
IETF language tag code for Brazilian Portuguese:
- Usage: {{link language|pt-BR}}
- Output: (Brazilian Portuguese බසින්)
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 (ප්රංශ බසින්) instead of (ප්රංශ බසින්).
TemplateData
සංස්කරණය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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
language code | 1 | The ISO 639 language code or IETF language tag, e.g. 'fr' for French, 'pt-BR' for Brazilian Portuguese | String | required |
See also
සංස්කරණය- Language icons in the form {{xx icon}} (e.g. {{de icon}}), descending from this one, are listed in Category:Language icon templates.
- Template:Link language/Notes. This has documentation for the codes listed on Category:Language icon templates, which can be updated easily.
- Language codes cross-reference: list of ISO 639 codes.