Template:Userbox-lang/doc

From FamilySearch Wiki

(Difference between revisions)
(Example: fix nocat parameters in examples)
(Example of different ability levels)
Line 13: Line 13:
 
## professional
 
## professional
  
===Example===
+
===Example of different language codes===
 
'''NOTE:''' The template can be called using {{tl|Userbox-lang}} or {{tl|UBX-lang}}
 
'''NOTE:''' The template can be called using {{tl|Userbox-lang}} or {{tl|UBX-lang}}
 
{| cellspacing="0" border="1"
 
{| cellspacing="0" border="1"
Line 44: Line 44:
 
{{Userbox-lang|ja|1|nocat=}}
 
{{Userbox-lang|ja|1|nocat=}}
 
|}
 
|}
 +
=== Example of different ability levels ===
 +
Using English as an example the following shows the range of abilities that can be choosen.
 +
{| cellspacing="0" border="1"
 +
!style="width:33%"|Ability
 +
!style="width:33%"|You type
 +
!style="width:33%"|You get
 +
|-
 +
| Native ability
 +
|
 +
<pre>
 +
{{UBX-lang|en}}
 +
</pre>
 +
|
 +
{{UBX-lang|en|nocat=}}
 +
|-
 +
| Professional ability
 +
|
 +
<pre>
 +
{{UBX-lang|en|5}}
 +
</pre>
 +
|
 +
{{UBX-lang|en|5|nocat=}}
 +
|-
 +
| Near-native ability
 +
|
 +
<pre>
 +
{{Userbox-lang|en|4}}
 +
</pre>
 +
|
 +
{{Userbox-lang|en|4|nocat=}}
 +
|-
 +
|  Advanced ability
 +
|
 +
<pre>
 +
{{Userbox-lang|en|3}}
 +
</pre>
 +
|
 +
{{Userbox-lang|en|3|nocat=}}
 +
|-
 +
| Intermediate ability
 +
|
 +
<pre>
 +
{{Userbox-lang|en|2}}
 +
</pre>
 +
|
 +
{{Userbox-lang|en|2|nocat=}}
 +
|-
 +
| Basic ability
 +
|
 +
<pre>
 +
{{Userbox-lang|en|1}}
 +
</pre>
 +
|
 +
{{Userbox-lang|en|1|nocat=}}
 +
|-
 +
| Limited ability
 +
|
 +
<pre>
 +
{{Userbox-lang|en|0}}
 +
</pre>
 +
|
 +
{{Userbox-lang|en|0|nocat=}}
 +
|}
 +
  
 
<includeonly>
 
<includeonly>
 
[[Category:Userboxes|{{PAGENAME}}]]
 
[[Category:Userboxes|{{PAGENAME}}]]
 
</includeonly>
 
</includeonly>

Revision as of 13:28, 28 December 2010

Contents

Purpose

This template can be used to display the language and level of ability spoken by a contributor on their user page.

Parameters

The template has two unnamed parameters.

  1. The first unnamed parameter is a two-letter code according to the ISO 639-1 standard
  2. The second (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.
    1. basic
    2. intermediate
    3. advanced
    4. near-native
    5. professional

Example of different language codes

NOTE: The template can be called using {{Userbox-lang}} or {{UBX-lang}}

Situation You type You get
Native speaker of English
{{UBX-lang|en}} 
en This user is a native speaker of English
Advanced speaker of Spanish
{{UBX-lang|es|3}} 
es-3 This user is an advanced speaker of Spanish
Basic speaker of Japanese
{{Userbox-lang|ja|1}} 
ja-1 This user is a basic speaker of Japanese

Example of different ability levels

Using English as an example the following shows the range of abilities that can be choosen.

Ability You type You get
Native ability
{{UBX-lang|en}} 
en This user is a native speaker of English
Professional ability
{{UBX-lang|en|5}} 
en-5 This user is a professional speaker of English
Near-native ability
{{Userbox-lang|en|4}} 
en-4 This user is a near-native speaker of English
Advanced ability
{{Userbox-lang|en|3}} 
en-3 This user is an advanced speaker of English
Intermediate ability
{{Userbox-lang|en|2}} 
en-2 This user is an intermediate speaker of English
Basic ability
{{Userbox-lang|en|1}} 
en-1 This user is a basic speaker of English
Limited ability
{{Userbox-lang|en|0}} 
en-0 This user does not understand English (or understands it with considerable difficulty).