Template:Userbox-lang/custom

From FamilySearch Wiki

(Difference between revisions)
(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…')
 
m
Line 29: Line 29:
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|nocat=}}
+
{{ {{BASEPAGENAME}}|nocat=}}
 
|-
 
|-
 
| Advanced speaker
 
| Advanced speaker
 
|
 
|
 
<pre>
 
<pre>
{{{{BASEPAGENAME}}|3}}  
+
{{ {{BASEPAGENAME}}|3}}  
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|3|nocat=}}
+
{{ {{BASEPAGENAME}}|3|nocat=}}
 
|-
 
|-
 
| Basic speaker
 
| Basic speaker
 
|
 
|
 
<pre>
 
<pre>
{{{{BASEPAGENAME}}|1}}  
+
{{ {{BASEPAGENAME}}|1}}  
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|1|nocat=}}
+
{{ {{BASEPAGENAME}}|1|nocat=}}
 
|}
 
|}
 
==== Using different ability levels ====
 
==== Using different ability levels ====
Line 57: Line 57:
 
|
 
|
 
<pre>
 
<pre>
{{{{BASEPAGENAME}}}}  
+
{{ {{BASEPAGENAME}}}}  
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|nocat=}}
+
{{ {{BASEPAGENAME}}|nocat=}}
 
|-
 
|-
 
| Professional ability
 
| Professional ability
 
|
 
|
 
<pre>
 
<pre>
{{{BASEPAGENAME}}|5}}  
+
{{ {{BASEPAGENAME}}|5}}  
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|5|nocat=}}
+
{{ {{BASEPAGENAME}}|5|nocat=}}
 
|-
 
|-
 
| Near-native ability
 
| Near-native ability
 
|
 
|
 
<pre>
 
<pre>
{{{{BASEPAGENAME}}|4}}  
+
{{ {{BASEPAGENAME}}|4}}  
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|4|nocat=}}
+
{{ {{BASEPAGENAME}}|4|nocat=}}
 
|-
 
|-
 
|  Advanced ability
 
|  Advanced ability
 
|
 
|
 
<pre>
 
<pre>
{{{{BASEPAGENAME}}|3}}  
+
{{ {{BASEPAGENAME}}|3}}  
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|3|nocat=}}
+
{{ {{BASEPAGENAME}}|3|nocat=}}
 
|-
 
|-
 
| Intermediate ability
 
| Intermediate ability
 
|
 
|
 
<pre>
 
<pre>
{{{{BASEPAGENAME}}|2}}  
+
{{ {{BASEPAGENAME}}|2}}  
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|2|nocat=}}
+
{{ {{BASEPAGENAME}}|2|nocat=}}
 
|-
 
|-
 
| Basic ability
 
| Basic ability
 
|
 
|
 
<pre>
 
<pre>
{{{{BASEPAGENAME}}|1}}  
+
{{ {{BASEPAGENAME}}|1}}  
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|1|nocat=}}
+
{{ {{BASEPAGENAME}}|1|nocat=}}
 
|-
 
|-
 
| Limited ability
 
| Limited ability
 
|
 
|
 
<pre>
 
<pre>
{{{{BASEPAGENAME}}|0}}  
+
{{ {{BASEPAGENAME}}|0}}  
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|0|nocat=}}
+
{{ {{BASEPAGENAME}}|0|nocat=}}
 
|}
 
|}
  
Line 120: Line 120:
 
|
 
|
 
<pre>
 
<pre>
{{{{BASEPAGENAME}}|2|skill=reader}}  
+
{{ {{BASEPAGENAME}}|2|skill=reader}}  
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|2|skill=reader|nocat=}}
+
{{ {{BASEPAGENAME}}|2|skill=reader|nocat=}}
 
|-
 
|-
 
| Professional reader and writer
 
| Professional reader and writer
 
|
 
|
 
<pre>
 
<pre>
{{{{BASEPAGENAME}}|5|skill=reader and writer}}  
+
{{ {{BASEPAGENAME}}|5|skill=reader and writer}}  
 
</pre>
 
</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>
 
<pre>
{{{{BASEPAGENAME}}|1
+
{{ {{BASEPAGENAME}}|1
 
|skill=reader, writer and speaker}}  
 
|skill=reader, writer and speaker}}  
 
</pre>
 
</pre>
 
|
 
|
{{{{BASEPAGENAME}}|1|skill=reader, writer and speaker|nocat=}}
+
{{ {{BASEPAGENAME}}|1|skill=reader, writer and speaker|nocat=}}
 
|}
 
|}
  

Revision as of 11:36, 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.

Contents

Parameters

The template has one unnamed parameter and one named parameter.

Unnamed parameters

  1. 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

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

Using different language codes

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

Situation You type You get
Native speaker
{{ {{BASEPAGENAME}}}}  
en This user is a native speaker of English
Advanced speaker
{{ {{BASEPAGENAME}}|3}} 
3 This user is a native speaker of [[Category:User 3|unknown ISO 639-1 code]]
Basic speaker
{{ {{BASEPAGENAME}}|1}} 
1 This user is a native speaker of [[Category:User 1|unknown ISO 639-1 code]]

Using 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
{{ {{BASEPAGENAME}}}} 
en This user is a native speaker of English
Professional ability
{{ {{BASEPAGENAME}}|5}} 
5 This user is a native speaker of [[Category:User 5|unknown ISO 639-1 code]]
Near-native ability
{{ {{BASEPAGENAME}}|4}} 
4 This user is a native speaker of [[Category:User 4|unknown ISO 639-1 code]]
Advanced ability
{{ {{BASEPAGENAME}}|3}} 
3 This user is a native speaker of [[Category:User 3|unknown ISO 639-1 code]]
Intermediate ability
{{ {{BASEPAGENAME}}|2}} 
2 This user is a native speaker of [[Category:User 2|unknown ISO 639-1 code]]
Basic ability
{{ {{BASEPAGENAME}}|1}} 
1 This user is a native speaker of [[Category:User 1|unknown ISO 639-1 code]]
Limited ability
{{ {{BASEPAGENAME}}|0}} 
0 This user is a native speaker of [[Category:User 0|unknown ISO 639-1 code]]

Using different skills

Situation You type You get
Intermediate reader speaker
{{ {{BASEPAGENAME}}|2|skill=reader}} 
2 This user is a native reader of [[Category:User 2|unknown ISO 639-1 code]]
Professional reader and writer
{{ {{BASEPAGENAME}}|5|skill=reader and writer}} 
5 This user is a native reader and writer of [[Category:User 5|unknown ISO 639-1 code]]
Basic reader, writer and speaker
{{ {{BASEPAGENAME}}|1
|skill=reader, writer and speaker}} 
1 This user is a native reader, writer and speaker of [[Category:User 1|unknown ISO 639-1 code]]