Template:Userbox-lang/custom: Difference between revisions

From FamilySearch Wiki
m (added category)
(add <nowiki> tags)
(4 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 a contributor's '''{{ISO 639-1|{{#sub:{{BASEPAGENAME}}|-2}}}} language''' skill and level of ability on their [[user page]]. For userboxes for different languages see [[:Category:Language Userboxes]] or use the {{tl|Userbox-lang}}.


=== 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
|
<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 26: Line 50:
| Native ability
| Native ability
|
|
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki>
<pre>
{{ {{BASEPAGENAME}}}}  
</pre>
|
|
{{ {{BASEPAGENAME}}|nocat=}}
{{ {{BASEPAGENAME}}|nocat=}}
Line 32: Line 58:
| Professional ability
| Professional ability
|
|
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|5}}</nowiki>
<pre>
{{ {{BASEPAGENAME}}|5}}  
</pre>
|
|
{{ {{BASEPAGENAME}}|5|nocat=}}
{{ {{BASEPAGENAME}}|5|nocat=}}
Line 38: Line 66:
| Near-native ability
| Near-native ability
|
|
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|4}}</nowiki>
<pre>
{{ {{BASEPAGENAME}}|4}}  
</pre>
|
|
{{ {{BASEPAGENAME}}|4|nocat=}}
{{ {{BASEPAGENAME}}|4|nocat=}}
Line 44: Line 74:
|  Advanced ability
|  Advanced ability
|
|
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|3}}</nowiki>
<pre>
{{ {{BASEPAGENAME}}|3}}  
</pre>
|
|
{{ {{BASEPAGENAME}}|3|nocat=}}
{{ {{BASEPAGENAME}}|3|nocat=}}
Line 50: Line 82:
| Intermediate ability
| Intermediate ability
|
|
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2}}</nowiki>
<pre>
{{ {{BASEPAGENAME}}|2}}  
</pre>
|
|
{{ {{BASEPAGENAME}}|2|nocat=}}
{{ {{BASEPAGENAME}}|2|nocat=}}
Line 56: Line 90:
| Basic ability
| Basic ability
|
|
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1}}</nowiki>
<pre>
{{ {{BASEPAGENAME}}|1}}  
</pre>
|
|
{{ {{BASEPAGENAME}}|1|nocat=}}
{{ {{BASEPAGENAME}}|1|nocat=}}
Line 62: Line 98:
| Limited ability
| Limited ability
|
|
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|0}}</nowiki>
<pre>
{{ {{BASEPAGENAME}}|0}}  
</pre>
|
|
{{ {{BASEPAGENAME}}|0|nocat=}}
{{ {{BASEPAGENAME}}|0|nocat=}}
Line 75: Line 113:
| Intermediate reader speaker
| Intermediate reader speaker
|
|
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2|skill=reader}}</nowiki>
<pre>
{{ {{BASEPAGENAME}}|2|skill=reader}}  
</pre>
|
|
{{ {{BASEPAGENAME}}|2|skill=reader|nocat=}}
{{ {{BASEPAGENAME}}|2|skill=reader|nocat=}}
Line 81: Line 121:
| Professional reader and writer
| Professional reader and writer
|
|
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|5|skill=reader and writer}}</nowiki>  
<pre>
{{ {{BASEPAGENAME}}|5|skill=reader and writer}}  
</pre>
|
|
{{ {{BASEPAGENAME}}|5|skill=reader and writer|nocat=}}
{{ {{BASEPAGENAME}}|5|skill=reader and writer|nocat=}}
Line 87: Line 129:
| Basic reader, writer and speaker
| Basic reader, writer and speaker
|
|
<nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1|skill=reader, writer and speaker}}</nowiki>
<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=}}
Line 93: Line 138:


<includeonly>
<includeonly>
[[Category:Language Userboxes|{{PAGENAME}}]]
[[Category:Userboxes|{{PAGENAME}}]]
</includeonly>
</includeonly>
<noinclude>
[[Category: Userboxes]]
</noinclude>

Revision as of 04:39, 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]

  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[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

{{Userbox-lang}}

en This user is a native speaker of English
Advanced speaker

{{Userbox-lang|3}}

3 This user is a native speaker of [[:Category:User 3|unknown ISO 639-1 code]]
Basic speaker

{{Userbox-lang|1}}

1 This user is a native speaker of [[:Category:User 1|unknown ISO 639-1 code]]

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}}}} 
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[edit source]

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]]