Terraria Wiki
Advertisement
Terraria Wiki
1 064
páginas
Template-info.svg Documentação A documentação que segue é transcluída de Predefinição:LangList/doc. (editar | histórico)

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.

The templates furthermore provides some basic functions on these lists.

Usage

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

First unnamed parameter

One of the following functions:

isOffWiki Returns yes if the <target lang> is the language code of a completed project.
isOnWiki Returns yes if the <target lang> is the language code of an ongoing project.
onWiki Lists all languages which isOnWiki is true. Can be used to define array.
offWiki Lists all languages which isOffWiki is true. Can be used to define array.
Second unnamed parameter (optional)

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

Examples

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