Calamity Mod Wiki
Advertisement
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.

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. See Extension:ParserPower for parser functions for handling this list.
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|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, fi, id, it, ja, lt, lv, nl, no, ro, sk, sv, th, tr, vi, yue, de, es, fr, hu, ko, ru, pl, pt, uk
{{langList|offWiki}} zh
Advertisement
https://calamitymod.fandom.com/wiki/Template:LangList
calamitymod.fandom.com
crawl=CC-MAIN-2022-33
257720
application/http; msgtype=response
sha1:3ZWZ5A7W2QQQPE6RDPCKVKPQUJITF3P7
<urn:uuid:a8787e75-22cf-424c-8dcf-cc4dca2a1889>
2022-08-16T15:22:27Z
151.101.64.194
text/html
sha1:4JJWI2JDW2ZBGI2CM3SYL3JYCUJPCAJP
<urn:uuid:65cc538d-dfcf-41f7-a66c-a6ec436302a8>
https://calamitymod.fandom.com/wiki/Template:LangList
response
<urn:uuid:ddbfe63f-ac7f-46e4-b7fb-2547597e2f5e>
isPartOf: CC-MAIN-2022-33
publisher: Common Crawl
description: Wide crawl of the web for August 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-76
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.4-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/