New template document |
m Added to Category:Language templates |
||
Line 32: | Line 32: | ||
} | } | ||
</templatedata> | </templatedata> | ||
<includeonly>[[Category:Language templates]]</includeonly> |
The purpose of this template is to indicate that a span of text belongs to a particular language.
{{lang|language tag|text}}
The language tag should consist of an ISO 639 language code.
The ISO 639 language code is a two- or three-letter abbreviation, in lowercase, of the language's name. Japanese, for example, has the code ja
:
{{lang|ja|蓬莱山輝夜}}
→ 蓬莱山輝夜Indicate that a given span of text belongs to a particular language. Allows browsers to correctly present and pronounce foreign languages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Language tag | 1 | A language tag, or an ISO 639 language code.
| String | required |
Text | 2 | The text belonging to the language specified.
| String | required |