Template:Userbox-lang/custom: Difference between revisions
m (added category) |
(Created page with '{{documentation subpage}} This '''{{tl|{{BASEPAGENAME}}}}''' template can be used to display {{ISO 639-1|en}} language skill and level of ability of a contributor on their [[use…') |
||
| (6 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
This '''{{tl|{{BASEPAGENAME}}}}''' template can be used to display {{ISO 639-1|en}} language skill and level of ability of a contributor on their [[user page]]. | |||
This '''{{tl|{{BASEPAGENAME}}}}''' template can be used to display | |||
=== Parameters === | === Parameters === | ||
| Line 17: | Line 16: | ||
===Examples === | ===Examples === | ||
==== Using different language codes ==== | |||
'''NOTE:''' The template can be called using {{tl|Userbox-lang}} or {{tl|UBX-lang}} | |||
{| cellspacing="0" border="1" | |||
!style="width:33%"|Situation | |||
!style="width:33%"|You type | |||
!style="width:33%"|You get | |||
|- | |||
| Native speaker | |||
| | |||
<pre> | |||
{{ {{BASEPAGENAME}}}} | |||
</pre> | |||
| | |||
{{{{BASEPAGENAME}}|nocat=}} | |||
|- | |||
| Advanced speaker | |||
| | |||
<pre> | |||
{{{{BASEPAGENAME}}|3}} | |||
</pre> | |||
| | |||
{{{{BASEPAGENAME}}|3|nocat=}} | |||
|- | |||
| Basic speaker | |||
| | |||
<pre> | |||
{{{{BASEPAGENAME}}|1}} | |||
</pre> | |||
| | |||
{{{{BASEPAGENAME}}|1|nocat=}} | |||
|} | |||
==== Using different ability levels ==== | ==== Using different ability levels ==== | ||
Using English as an example the following shows the range of abilities that can be choosen. | Using English as an example the following shows the range of abilities that can be choosen. | ||
| Line 26: | Line 56: | ||
| Native ability | | Native ability | ||
| | | | ||
< | <pre> | ||
{{{{BASEPAGENAME}}}} | |||
</pre> | |||
| | | | ||
{{ {{BASEPAGENAME}}|nocat=}} | {{{{BASEPAGENAME}}|nocat=}} | ||
|- | |- | ||
| Professional ability | | Professional ability | ||
| | | | ||
< | <pre> | ||
{{{BASEPAGENAME}}|5}} | |||
</pre> | |||
| | | | ||
{{ {{BASEPAGENAME}}|5|nocat=}} | {{{{BASEPAGENAME}}|5|nocat=}} | ||
|- | |- | ||
| Near-native ability | | Near-native ability | ||
| | | | ||
< | <pre> | ||
{{{{BASEPAGENAME}}|4}} | |||
</pre> | |||
| | | | ||
{{ {{BASEPAGENAME}}|4|nocat=}} | {{{{BASEPAGENAME}}|4|nocat=}} | ||
|- | |- | ||
| Advanced ability | | Advanced ability | ||
| | | | ||
< | <pre> | ||
{{{{BASEPAGENAME}}|3}} | |||
</pre> | |||
| | | | ||
{{ {{BASEPAGENAME}}|3|nocat=}} | {{{{BASEPAGENAME}}|3|nocat=}} | ||
|- | |- | ||
| Intermediate ability | | Intermediate ability | ||
| | | | ||
< | <pre> | ||
{{{{BASEPAGENAME}}|2}} | |||
</pre> | |||
| | | | ||
{{ {{BASEPAGENAME}}|2|nocat=}} | {{{{BASEPAGENAME}}|2|nocat=}} | ||
|- | |- | ||
| Basic ability | | Basic ability | ||
| | | | ||
< | <pre> | ||
{{{{BASEPAGENAME}}|1}} | |||
</pre> | |||
| | | | ||
{{ {{BASEPAGENAME}}|1|nocat=}} | {{{{BASEPAGENAME}}|1|nocat=}} | ||
|- | |- | ||
| Limited ability | | Limited ability | ||
| | | | ||
< | <pre> | ||
{{{{BASEPAGENAME}}|0}} | |||
</pre> | |||
| | | | ||
{{ {{BASEPAGENAME}}|0|nocat=}} | {{{{BASEPAGENAME}}|0|nocat=}} | ||
|} | |} | ||
| Line 75: | Line 119: | ||
| Intermediate reader speaker | | Intermediate reader speaker | ||
| | | | ||
< | <pre> | ||
{{{{BASEPAGENAME}}|2|skill=reader}} | |||
</pre> | |||
| | | | ||
{{ {{BASEPAGENAME}}|2|skill=reader|nocat=}} | {{{{BASEPAGENAME}}|2|skill=reader|nocat=}} | ||
|- | |- | ||
| Professional reader and writer | | Professional reader and writer | ||
| | | | ||
< | <pre> | ||
{{{{BASEPAGENAME}}|5|skill=reader and writer}} | |||
</pre> | |||
| | | | ||
{{ {{BASEPAGENAME}}|5|skill=reader and writer|nocat=}} | {{{{BASEPAGENAME}}|5|skill=reader and writer|nocat=}} | ||
|- | |- | ||
| Basic reader, writer and speaker | | Basic reader, writer and speaker | ||
| | | | ||
< | <pre> | ||
{{{{BASEPAGENAME}}|1 | |||
|skill=reader, writer and speaker}} | |||
</pre> | |||
| | | | ||
{{ {{BASEPAGENAME}}|1|skill=reader, writer and speaker|nocat=}} | {{{{BASEPAGENAME}}|1|skill=reader, writer and speaker|nocat=}} | ||
|} | |} | ||
<includeonly> | <includeonly> | ||
[[Category: | [[Category:Userboxes|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> | ||
Revision as of 04:35, 5 February 2011
This {{Userbox-lang}} template can be used to display English language skill and level of ability of a contributor on their user page.
Parameters[edit source]
The template has one unnamed parameter and one named parameter.
Unnamed parameters[edit source]
- The (optional) unnamed parameter is a number to indicate the level of ability in this language. If this parameter is omitted the wording for native speaker will be displayed.
- 0 = limited or no ability
- 1 = basic
- 2 = intermediate
- 3 = advanced
- 4 = near-native
- 5 = professional
Named parameters[edit source]
- skill
- This (optional) parameter can be used to define a skill other than speaking, for example reading or writing. If omitted the default is speaking.
Examples[edit source]
Using different language codes[edit source]
NOTE: The template can be called using {{Userbox-lang}} or {{UBX-lang}}
| Situation | You type | You get | ||
|---|---|---|---|---|
| Native speaker |
{{ {{BASEPAGENAME}}}}
|
| ||
| Advanced speaker |
{{{{BASEPAGENAME}}|3}}
|
| ||
| Basic speaker |
{{{{BASEPAGENAME}}|1}}
|
|
Using different ability levels[edit source]
Using English as an example the following shows the range of abilities that can be choosen.
| Ability | You type | You get | ||
|---|---|---|---|---|
| Native ability |
{{{{BASEPAGENAME}}}}
|
| ||
| Professional ability |
{{{BASEPAGENAME}}|5}}
|
| ||
| Near-native ability |
{{{{BASEPAGENAME}}|4}}
|
| ||
| Advanced ability |
{{{{BASEPAGENAME}}|3}}
|
| ||
| Intermediate ability |
{{{{BASEPAGENAME}}|2}}
|
| ||
| Basic ability |
{{{{BASEPAGENAME}}|1}}
|
| ||
| Limited ability |
{{{{BASEPAGENAME}}|0}}
|
|
Using different skills[edit source]
| Situation | You type | You get | ||
|---|---|---|---|---|
| Intermediate reader speaker |
{{{{BASEPAGENAME}}|2|skill=reader}}
|
| ||
| Professional reader and writer |
{{{{BASEPAGENAME}}|5|skill=reader and writer}}
|
| ||
| Basic reader, writer and speaker |
{{{{BASEPAGENAME}}|1
|skill=reader, writer and speaker}}
|
|