Template:Lang

From Terraria Wiki
Jump to navigation Jump to search
Important.svg
CAUTION: Terraria Wiki code is complex!!!
If you want to use this code on another wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!
Remember that content on a wiki is more important than fancy formatting.
Template-info.svg Documentation The documentation below is transcluded from Template:Lang/doc. (edit | history)

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