UserLanguage – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add Czech, Fix Greek/Hellenic)
m (Add da & pl)
Line 10: Line 10:
{{!}} style="font-size: 1.5em; min-height: 2em; min-width: 3em; padding: 0.5em; text-align:center" {{!}} '''{{#switch:{{lc:{{{1|}}}}}
{{!}} style="font-size: 1.5em; min-height: 2em; min-width: 3em; padding: 0.5em; text-align:center" {{!}} '''{{#switch:{{lc:{{{1|}}}}}
| cs = {{Wikipedia|Czech language|cs-{{#sub:{{{2|5}}}|0|1}}}}
| cs = {{Wikipedia|Czech language|cs-{{#sub:{{{2|5}}}|0|1}}}}
| da = {{Wikipedia|Danish language|da-{{#sub:{{{2|5}}}|0|1}}}}
| de = {{Wikipedia|German language|de-{{#sub:{{{2|5}}}|0|1}}}}
| de = {{Wikipedia|German language|de-{{#sub:{{{2|5}}}|0|1}}}}
| el = {{Wikipedia|Greek language|el-{{#sub:{{{2|5}}}|0|1}}}}
| el = {{Wikipedia|Greek language|el-{{#sub:{{{2|5}}}|0|1}}}}
Line 17: Line 18:
| it = {{Wikipedia|Italian language|it-{{#sub:{{{2|5}}}|0|1}}}}
| it = {{Wikipedia|Italian language|it-{{#sub:{{{2|5}}}|0|1}}}}
| ja = {{Wikipedia|Japanese language|ja-{{#sub:{{{2|5}}}|0|1}}}}
| ja = {{Wikipedia|Japanese language|ja-{{#sub:{{{2|5}}}|0|1}}}}
| pl = {{Wikipedia|Polish language|pl-{{#sub:{{{2|5}}}|0|1}}}}
| tr = {{Wikipedia|Turkish language|tr-{{#sub:{{{2|5}}}|0|1}}}}
| tr = {{Wikipedia|Turkish language|tr-{{#sub:{{{2|5}}}|0|1}}}}
|      {{#sub:{{lc:{{{1}}}}}|0|2}}-{{#sub:{{{2|5}}}|0|1}}
|      {{#sub:{{lc:{{{1}}}}}|0|2}}-{{#sub:{{{2|5}}}|0|1}}
Line 29: Line 31:
}} level of '''{{#switch:{{lc:{{{1}}}}}
}} level of '''{{#switch:{{lc:{{{1}}}}}
| cs = Czech
| cs = Czech
| da = Danish
| de = German
| de = German
| el = Greek
| el = Greek
Line 36: Line 39:
| it = Italian
| it = Italian
| ja = Japanese
| ja = Japanese
| pl = Polish
| tr = Turkish
| tr = Turkish
|      {{uc:{{#sub:{{{1}}}|0|2}}}}
|      {{uc:{{#sub:{{{1}}}|0|2}}}}

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, de, el, en, fi, fr, it, ja, 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.