Difference between revisions of "Template:Userbox-lang/doc"

From FamilySearch Wiki
Jump to navigation Jump to search
(Created page with '{{documentation subpage}} === Purpose === This template can be used to display the language and level of ability spoken by a contributor on their user page. === Parameters =…')
 
(→‎Example: fix nocat parameters in examples)
Line 26: Line 26:
 
</pre>
 
</pre>
 
|
 
|
{{UBX-lang|en|nocat=true}}
+
{{UBX-lang|en|nocat=}}
 
|-
 
|-
 
| Advanced speaker of Spanish
 
| Advanced speaker of Spanish
Line 34: Line 34:
 
</pre>
 
</pre>
 
|
 
|
{{UBX-lang|es|3|nocat=true}}
+
{{UBX-lang|es|3|nocat=}}
 
|-
 
|-
 
| Basic speaker of Japanese
 
| Basic speaker of Japanese
Line 42: Line 42:
 
</pre>
 
</pre>
 
|
 
|
{{Userbox-lang|ja|1|nocat=true}}
+
{{Userbox-lang|ja|1|nocat=}}
 
|}
 
|}
  

Revision as of 06:23, 28 December 2010

Purpose[edit source]

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

Parameters[edit source]

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

NOTE: The template can be called using {{Userbox-lang}} or {{Template:Userbox-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