Difference between revisions of "Template:Userbox-lang/doc"
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= | + | {{UBX-lang|en|nocat=}} |
|- | |- | ||
| Advanced speaker of Spanish | | Advanced speaker of Spanish | ||
Line 34: | Line 34: | ||
</pre> | </pre> | ||
| | | | ||
− | {{UBX-lang|es|3|nocat= | + | {{UBX-lang|es|3|nocat=}} |
|- | |- | ||
| Basic speaker of Japanese | | Basic speaker of Japanese | ||
Line 42: | Line 42: | ||
</pre> | </pre> | ||
| | | | ||
− | {{Userbox-lang|ja|1|nocat= | + | {{Userbox-lang|ja|1|nocat=}} |
|} | |} | ||
Revision as of 06:23, 28 December 2010
![]() |
This is a documentation subpage for Template:Userbox-lang (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
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.
- The first unnamed parameter is a two-letter code according to the ISO 639-1 standard
- 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.
- basic
- intermediate
- advanced
- near-native
- 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}} |
| ||
Advanced speaker of Spanish |
{{UBX-lang|es|3}} |
| ||
Basic speaker of Japanese |
{{Userbox-lang|ja|1}} |
|