Template:Userbox-lang/doc: Difference between revisions
Luccagenes (talk | contribs) m (added link) |
(→Example: fix nocat parameters in examples) |
||
| (6 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
=== Purpose === | |||
This template can be used to display the language and level of ability spoken by a contributor on their [[user page]]. | This template can be used to display the language and level of ability spoken by a contributor on their [[user page]]. | ||
=== Parameters === | === Parameters === | ||
The template has two unnamed parameters | The template has two unnamed parameters. | ||
# The first unnamed parameter is a two-letter code according to the {{wpd|ISO 639-1}} standard | |||
# The first unnamed parameter is a two-letter code | |||
# 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. | # 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=== | ||
'''NOTE:''' The template can be called using {{tl|Userbox-lang}} or {{tl|UBX-lang}} | '''NOTE:''' The template can be called using {{tl|Userbox-lang}} or {{tl|UBX-lang}} | ||
{| cellspacing="0" border="1" | {| cellspacing="0" border="1" | ||
| Line 47: | Line 43: | ||
| | | | ||
{{Userbox-lang|ja|1|nocat=}} | {{Userbox-lang|ja|1|nocat=}} | ||
|} | |} | ||
<includeonly> | <includeonly> | ||
[[Category: | [[Category:Userboxes|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> | ||
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 {{UBX-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}}
|
|