Template:Lang
Jump to navigation
Jump to search
Documentation The documentation below is transcluded from Template:Lang/doc. (edit | history)
[purge]
This template returns the current language setting, which is an important piece of information for the internationalization of the wiki. If it was not set manually before, it will be automatically detected based on the page name.
Languages are always represented by their official ISO 639-1 codes, or ISO 639-3 if no ISO 639-1 code exists. See Terraria Wiki:Projects § Translation projects for a list of all currently used languages and their codes.
Usage
{{ lang | }}
Note that the empty first unnamed parameter should always be included.
Examples
| Code | Result |
|---|---|
{{lang/set|es}} |
|
{{lang|}} |
es |
See also
- {{lang/set}}
- {{langList}}
- Module:Lang