Template:Lg/doc
Appearance
This is a documentation subpage for Template:Lg. It contains usage information, categories, and other content that is not part of the original template page. |
Usage
[edit]Displays full language name from its short code, in current page language.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Language code | 1 lang | Short language code (usually 2 or 3 letters) which represents the language to display the full name.
| String | required |
{{#language:{{{1|{{{lang}}}}}}|{{PAGELANGUAGE}}}}
Example
[edit]{{lg|en}}
will display “English” in a page in English, and “anglais” in page in French.
See also
[edit]- Template:LgT - same functionality but failsback to UI interface language
- Meta:Common messages
- Template:Country
- Template:DateT
- Template:Int string