UserLanguage – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add da & pl)
m (Add da & pl in description)
Line 47: Line 47:
== Usage ==
== Usage ==
{{<nowiki/>UserLanguage|'''''language'''''|'''''level'''''}}
{{<nowiki/>UserLanguage|'''''language'''''|'''''level'''''}}
* language: {{Wikipedia|ISO 639-1}} language code (full list available {{Wikipedia|List of ISO 639-1 codes|here}}). Supported so far: <tt>cs</tt>, <tt>de</tt>, <tt>el</tt>, <tt>en</tt>, <tt>fi</tt>, <tt>fr</tt>, <tt>it</tt>, <tt>ja</tt>, <tt>tr</tt>.
* language: {{Wikipedia|ISO 639-1}} language code (full list available {{Wikipedia|List of ISO 639-1 codes|here}}). Supported so far: <tt>cs</tt>, <tt>da</tt>, <tt>de</tt>, <tt>el</tt>, <tt>en</tt>, <tt>fi</tt>, <tt>fr</tt>, <tt>it</tt>, <tt>ja</tt>, <tt>pl</tt>, <tt>tr</tt>.


* level: (Optional, default 5) a number in range 1..6:
* level: (Optional, default 5) a number in range 1..6:

Revision as of 02:36, 26 December 2020

Usage

{{UserLanguage|language|level}}

  • language: ISO 639-1 language code (full list available here). Supported so far: cs, da, de, el, en, fi, fr, it, ja, pl, tr.
  • level: (Optional, default 5) a number in range 1..6:
    1. basic level
    2. intermediate level
    3. advanced level
    4. near-native level
    5. native level
    6. professional level
Examples
Code Result
{{UserLanguage}} -no language specified-
{{UserLanguage||2}} -no language specified-
{{UserLanguage|en}}
en-5 This user is able to contribute with a native level of English.
{{UserLanguage|en|2}}
en-2 This user is able to contribute with an intermediate level of English.