ARK: Survival Evolved Wiki
(taken from terraria wiki)
 
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
-->|_langlist_nl|on<!-- Dutch
 
-->|_langlist_nl|on<!-- Dutch
 
-->|_langlist_sv|on<!-- Swedish
 
-->|_langlist_sv|on<!-- Swedish
  +
-->|_langlist_uk|on<!-- Ukrainian
 
-->|_langlist_zh|on<!-- Chinese
 
-->|_langlist_zh|on<!-- Chinese
   
Line 16: Line 17:
 
-->|_langlist_pt-br|off<!-- Portuguese
 
-->|_langlist_pt-br|off<!-- Portuguese
 
-->|_langlist_ru|off<!-- Russian
 
-->|_langlist_ru|off<!-- Russian
  +
-->|_langlist_th|off<!-- Thai
   
 
//isOffWiki
 
//isOffWiki
Line 31: Line 33:
   
 
//list: onWiki and offWiki (different suffix for all {{lang|}})
 
//list: onWiki and offWiki (different suffix for all {{lang|}})
-->|_langlist_onWiki_|ko, nl, sv, zh<!--
+
-->|_langlist_onWiki_|ko, nl, sv, uk, zh<!--
-->|_langlist_offWiki_|de, es, fr, it, ja, pl, pt-br, ru<!--
+
-->|_langlist_offWiki_|de, es, fr, it, ja, pl, pt-br, ru, th<!--
-->|_langlist_onWiki_on|ko, nl, sv, zh<!--
+
-->|_langlist_onWiki_on|ko, nl, sv, uk, zh<!--
-->|_langlist_offWiki_on|de, es, fr, it, ja, pl, pt-br, ru<!--
+
-->|_langlist_offWiki_on|de, es, fr, it, ja, pl, pt-br, ru, th<!--
-->|_langlist_onWiki_off|ko, nl, sv, zh<!--
+
-->|_langlist_onWiki_off|ko, nl, sv, uk, zh<!--
-->|_langlist_offWiki_off|de, es, fr, it, ja, pl, pt-br, ru<!--
+
-->|_langlist_offWiki_off|de, es, fr, it, ja, pl, pt-br, ru, th<!--
   
   

Latest revision as of 01:31, 14 April 2022

Template-info.png Documentation

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.

Usage

{{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 for which isOnWiki is true.
offWiki Lists all languages for which isOffWiki is true.
Second unnamed parameter

Language to operate on; is usually set to {{lang}}. Has no effect if the first unnamed parameter is set to onWiki or offWiki, and can be omitted in those cases.

Examples

Code Result
{{langList|isOffWiki|ko}}
{{langList|isOffWiki|fr}} yes
{{langList|isOffWiki|en}}
{{langList|isOnWiki|ko}} yes
{{langList|isOnWiki|fr}}
{{langList|isOnWiki|en}}
{{langList|isEn|en}} yes
{{langList|isEn|sv}}
{{langList|isEn|fr}}