Predefinição:LangList
Saltar para a navegação
Saltar para a pesquisa
Documentação A documentação que segue é transcluída de Predefinição:LangList/doc. (editar | histórico)
[purgar]
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}}
|
ar, bg, cs, da, el, es, fi, hi, 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, es-formal FAIL! (expected: de, fr, hu, ko, ru, pl, pt, uk, zh ) |
{{#lstsep:{{langList|offWiki}}|,|*}}
|
de*fr*hu*ko*ru*pl*pt*uk*zh*es-formal FAIL! (expected: de*fr*hu*ko*ru*pl*pt*uk*zh ) |
Categorias:
- Templates with unit test failed
- Predefinições de dados