Template:Userbox-lang/custom

From FamilySearch Wiki

(Difference between revisions)
(add <nowiki> tags)
(remove redundant section, use <nowiki> tags)
Line 16: 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
 
|
 
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki> 
 
|
 
{{ {{BASEPAGENAME}}|nocat=}}
 
|-
 
| Advanced speaker
 
|
 
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|3}}</nowiki>
 
|
 
{{ {{BASEPAGENAME}}|3|nocat=}}
 
|-
 
| Basic speaker
 
|
 
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1}}</nowiki>
 
|
 
{{ {{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 50: Line 25:
 
| Native ability
 
| Native ability
 
|
 
|
<pre>
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki>
{{ {{BASEPAGENAME}}}}  
+
</pre>
+
 
|
 
|
 
{{ {{BASEPAGENAME}}|nocat=}}
 
{{ {{BASEPAGENAME}}|nocat=}}
Line 58: Line 31:
 
| Professional ability
 
| Professional ability
 
|
 
|
<pre>
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|5}}</nowiki>
{{ {{BASEPAGENAME}}|5}}  
+
</pre>
+
 
|
 
|
 
{{ {{BASEPAGENAME}}|5|nocat=}}
 
{{ {{BASEPAGENAME}}|5|nocat=}}
Line 66: Line 37:
 
| Near-native ability
 
| Near-native ability
 
|
 
|
<pre>
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|4}}</nowiki>
{{ {{BASEPAGENAME}}|4}}  
+
</pre>
+
 
|
 
|
 
{{ {{BASEPAGENAME}}|4|nocat=}}
 
{{ {{BASEPAGENAME}}|4|nocat=}}
Line 74: Line 43:
 
|  Advanced ability
 
|  Advanced ability
 
|
 
|
<pre>
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|3}}</nowiki>
{{ {{BASEPAGENAME}}|3}}  
+
</pre>
+
 
|
 
|
 
{{ {{BASEPAGENAME}}|3|nocat=}}
 
{{ {{BASEPAGENAME}}|3|nocat=}}
Line 82: Line 49:
 
| Intermediate ability
 
| Intermediate ability
 
|
 
|
<pre>
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2}}</nowiki>
{{ {{BASEPAGENAME}}|2}}  
+
</pre>
+
 
|
 
|
 
{{ {{BASEPAGENAME}}|2|nocat=}}
 
{{ {{BASEPAGENAME}}|2|nocat=}}
Line 90: Line 55:
 
| Basic ability
 
| Basic ability
 
|
 
|
<pre>
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1}}</nowiki>
{{ {{BASEPAGENAME}}|1}}  
+
</pre>
+
 
|
 
|
 
{{ {{BASEPAGENAME}}|1|nocat=}}
 
{{ {{BASEPAGENAME}}|1|nocat=}}
Line 98: Line 61:
 
| Limited ability
 
| Limited ability
 
|
 
|
<pre>
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|0}}</nowiki>
{{ {{BASEPAGENAME}}|0}}  
+
</pre>
+
 
|
 
|
 
{{ {{BASEPAGENAME}}|0|nocat=}}
 
{{ {{BASEPAGENAME}}|0|nocat=}}
Line 113: Line 74:
 
| Intermediate reader speaker
 
| Intermediate reader speaker
 
|
 
|
<pre>
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2|skill=reader}}</nowiki>
{{ {{BASEPAGENAME}}|2|skill=reader}}  
+
</pre>
+
 
|
 
|
 
{{ {{BASEPAGENAME}}|2|skill=reader|nocat=}}
 
{{ {{BASEPAGENAME}}|2|skill=reader|nocat=}}
Line 121: Line 80:
 
| Professional reader and writer
 
| Professional reader and writer
 
|
 
|
<pre>
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|5|skill=reader and writer}}</nowiki>  
{{ {{BASEPAGENAME}}|5|skill=reader and writer}}  
+
</pre>
+
 
|
 
|
 
{{ {{BASEPAGENAME}}|5|skill=reader and writer|nocat=}}
 
{{ {{BASEPAGENAME}}|5|skill=reader and writer|nocat=}}
Line 129: Line 86:
 
| Basic reader, writer and speaker
 
| Basic reader, writer and speaker
 
|
 
|
<pre>
+
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1
{{ {{BASEPAGENAME}}|1
+
|skill=reader, writer and speaker}}</nowiki>
|skill=reader, writer and speaker}}  
+
</pre>
+
 
|
 
|
 
{{ {{BASEPAGENAME}}|1|skill=reader, writer and speaker|nocat=}}
 
{{ {{BASEPAGENAME}}|1|skill=reader, writer and speaker|nocat=}}

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

{{Userbox-lang}}

en This user is a native speaker of English
Professional ability

{{Userbox-lang|5}}

Near-native ability

{{Userbox-lang|4}}

Advanced ability

{{Userbox-lang|3}}

Intermediate ability

{{Userbox-lang|2}}

Basic ability

{{Userbox-lang|1}}

Limited ability

{{Userbox-lang|0}}

Using different skills

Situation You type You get
Intermediate reader speaker

{{Userbox-lang|2|skill=reader}}

Professional reader and writer

{{Userbox-lang|5|skill=reader and writer}}

Basic reader, writer and speaker

{{Userbox-lang|1 |skill=reader, writer and speaker}}

1 This user is a native reader, writer and speaker of unknown [http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1 code]