Jump to content

Template:Userbox-lang/doc: Difference between revisions

→‎Parameters: add named parameter {{{skill}}}
(remove section heading)
(→‎Parameters: add named parameter {{{skill}}})
Line 3: Line 3:


=== Parameters ===
=== Parameters ===
The template has two unnamed parameters.
The template has two unnamed parameters and one named parameter.
==== 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 according to the {{wpd|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.
# 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.
Line 12: Line 13:
#* 4 =  near-native
#* 4 =  near-native
#* 5 =  professional
#* 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.


===Example of different language codes===
===Example of different language codes===
90,866

edits