UserLanguage – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}") |
Lou Montana (talk | contribs) m (Fix Wikipedia link) |
||
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 = {{ | | cs = {{Link|https://en.wikipedia.org/wiki/Czech_language|cs-{{#sub:{{{2|5}}}|0|1}}}} | ||
| da = {{ | | da = {{Link|https://en.wikipedia.org/wiki/Danish_language|da-{{#sub:{{{2|5}}}|0|1}}}} | ||
| de = {{ | | de = {{Link|https://en.wikipedia.org/wiki/German_language|de-{{#sub:{{{2|5}}}|0|1}}}} | ||
| el = {{ | | el = {{Link|https://en.wikipedia.org/wiki/Greek_language|el-{{#sub:{{{2|5}}}|0|1}}}} | ||
| en = {{ | | en = {{Link|https://en.wikipedia.org/wiki/English_language|en-{{#sub:{{{2|5}}}|0|1}}}} | ||
| fi = {{ | | fi = {{Link|https://en.wikipedia.org/wiki/Finnish_language|fi-{{#sub:{{{2|5}}}|0|1}}}} | ||
| fr = {{ | | fr = {{Link|https://en.wikipedia.org/wiki/French_language|fr-{{#sub:{{{2|5}}}|0|1}}}} | ||
| it = {{ | | it = {{Link|https://en.wikipedia.org/wiki/Italian_language|it-{{#sub:{{{2|5}}}|0|1}}}} | ||
| ja = {{ | | ja = {{Link|https://en.wikipedia.org/wiki/Japanese_language|ja-{{#sub:{{{2|5}}}|0|1}}}} | ||
| pl = {{ | | pl = {{Link|https://en.wikipedia.org/wiki/Polish_language|pl-{{#sub:{{{2|5}}}|0|1}}}} | ||
| sk = {{ | | sk = {{Link|https://en.wikipedia.org/wiki/Slovak_language|sk-{{#sub:{{{2|5}}}|0|1}}}} | ||
| sl = {{ | | sl = {{Link|https://en.wikipedia.org/wiki/Slovene_language|sl-{{#sub:{{{2|5}}}|0|1}}}} | ||
| tr = {{ | | tr = {{Link|https://en.wikipedia.org/wiki/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 52: | Line 52: | ||
== Usage == | == Usage == | ||
{{<nowiki/>UserLanguage|'''''language'''''|'''''level'''''}} | {{<nowiki/>UserLanguage|'''''language'''''|'''''level'''''}} | ||
* language: {{ | * language: {{Link|https://en.wikipedia.org/wiki/ISO_639-1}} language code (full list available {{Link|https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes|here}}). Supported so far: {{hl|cs}}, {{hl|da}}, {{hl|de}}, {{hl|el}}, {{hl|en}}, {{hl|fi}}, {{hl|fr}}, {{hl|it}}, {{hl|ja}}, {{hl|pl}}, {{hl|sk}}, {{hl|sl}}, {{hl|tr}}. | ||
* level: (Optional, default 5) a number in range 1..6: | * level: (Optional, default 5) a number in range 1..6: |
Revision as of 00:22, 24 February 2023
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, sk, sl, tr.
- level: (Optional, default 5) a number in range 1..6:
- basic level
- intermediate level
- advanced level
- near-native level
- native level
- professional level
Code | Result | ||
---|---|---|---|
{{UserLanguage}} | -no language specified- | ||
{{UserLanguage||2}} | -no language specified- | ||
{{UserLanguage|en}} |
| ||
Below are all levels of language | |||
{{UserLanguage|en|1}} |
| ||
{{UserLanguage|en|2}} |
| ||
{{UserLanguage|en|3}} |
| ||
{{UserLanguage|en|4}} |
| ||
{{UserLanguage|en|5}} |
| ||
{{UserLanguage|en|6}} |
| ||
Below are all supported languages | |||
{{UserLanguage|cs}} |
| ||
{{UserLanguage|da}} |
| ||
{{UserLanguage|de}} |
| ||
{{UserLanguage|el}} |
| ||
{{UserLanguage|en}} |
| ||
{{UserLanguage|fi}} |
| ||
{{UserLanguage|fr}} |
| ||
{{UserLanguage|it}} |
| ||
{{UserLanguage|ja}} |
| ||
{{UserLanguage|pl}} |
| ||
{{UserLanguage|sk}} |
| ||
{{UserLanguage|sl}} |
| ||
{{UserLanguage|tr}} |
|