From Terraria Wiki
Jump to: navigation, search
Template-info.svg Documentation The documentation below is transcluded from Template:LangList/doc. (edit | history)

This template stores two lists of language codes: One with all language projects that are ongoing, i.e. still on this wiki, and one with all completed language projects, i.e. languages with an own subdomain. In some i18n contexts, this information is relevant, e.g. the interwiki linking functionality of {{translation projects}}.


{{langList| <function> | <target lang> }}

First unnamed parameter

One of the following functions:

isOnWiki Returns yes if the <target lang> is the language code of an ongoing project.
isOffWiki Returns yes if the <target lang> is the language code of a completed project.
isEn Returns yes if the <target lang> is neither on-wiki nor off-wiki, i.e. English.
onWiki Lists all languages which isOnWiki is true. See Extension:ParserPower for parser functions for handling this list.
offWiki Lists all languages which isOffWiki is true.
Second unnamed parameter (optional)

Language to operate on; defaults to {{lang}}.


Code Result
{{langList|isOffWiki|zh}} yes
{{langList|isOnWiki|cs}} yes
{{langList|isEn|en}} yes
{{langList|onWiki}} bg, cs, da, el, es, fi, id, it, ja, lt, lv, nl, no, sk, sv, th, tr, vi
{{langList|offWiki}} de, fr, hu, ko, ru, pl, pt, uk, zh
{{#lstsep:{{langList|offWiki}}|,|*}} de*fr*hu*ko*ru*pl*pt*uk*zh